where he or she can customize the
main.js file, using
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.jsonwhich defines the packages and versions.
git clone git://github.com/arian/wrapup-webbuilder.gitcd wrapup-webbuildernpm installgit submodule initnode ./bin/createBaseModules.jsnode index.js
package.json there is a field
modules. This are npm package names and
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
modules directory. This can be done with the
modules folder will now contain folders like
email@example.com. These are the packages the download will symlink to and
create a build with wrapup.