A web builder for downloading browser wrapup'd JavaScript
npm install wrapup-webbuilderWrapup WebBuilder
=================
WebBuilder is an experimental builder, which lets you download wrapup'd
JavaScript files. See also wrapup why you
should use wrapup and Node-style Modules for browser JavaScript Code.
The idea is that the user will see an JavaScript Editor field (CodeMirror)
where he or she can customize the main.js file, using require() calls,
export it on global, or don't export at all.
With a simple interface with buttons and select fields, a main.js file
can be generated in the Editor. By giving the user access to the editor adds
extra power for advanced users.
- Add checkboxes to help the user include several packages or not by commenting
or uncommenting lines in the editor.
- Select which packages and which versions the build should include.
- Download several packages from NPM. It could build a packages.json which
defines the packages and versions.
- Node.js
- Express.js
- Jade
- Stylus
- Wrapup
- CodeMirror
```
git clone git://github.com/arian/wrapup-webbuilder.git
cd wrapup-webbuilder
npm install
git submodule init
node ./bin/createBaseModules.js
node index.js
In package.json there is a field modules. This are npm package names andmodules
their versions from npm. These are the packages and versions a user can
download. Before they can be downloaded however, the packages have to be
downloaded locally to the directory. This can be done with the
following command.
node ./bin/createBaseModules.js
The modules folder will now contain folders like prime@0.0.5 orelements@0.0.7`. These are the packages the download will symlink to and
create a build with wrapup.