abpetkov/switchery — pull request #3 by vesln (2013-12-27 09:56:16+00:00)
Title: Fix stand-alone build & add minified versions

• The standalone build was done wrong, it exposed a global `require` function which will override existing ones, meaning require.js, component's require etc. will break. The correct way to build a stand-alone version is by passing `--standalone ` or `-s ` to `component-build`.

• Added package.json so you can specify your development dependencies. This way you don't have to tell your contributors to install component globally, etc. However, this means once you clone the project you need to perform `$ npm install`.

• Added minified versions.

• Added a couple of new Makefile commands:

`install` - will install the Node.js modules, components etc.

`standalone` - will create stand-alone & minified versions and move them to `standalone/`.

• Just an advice - rename the `standalone` folder to `dist` since this is a widely accepted convention (see jQuery etc.). However, this pull request doesn't address this since it's a matter of personal preference.