1.6.3 • Published 5 years ago
dml-js-generator v1.6.3
JS Boilerplate Generator
!!! This repository has been deprecated, we suggest to use https://github.com/docomodigital/pdor instead
With this generator, you can create a new Javascript library, using this boilerplate.
Generate a new library
- Install generator globally
npm install -g dml-js-generator
- Generate a new library, replacing library-name with the name of your new library
dml-js-generator library-name
- Go to new directory and install node modules
cd library-name
npm install
- Boilerplate uses Browserify to make a build. Parameters of Browserify are saved in package.json, in browserify field. Browserify a global module called "Animals", you can edit it.
"browserify": {
"src": "main.js",
"dist": "dist.js",
"global": "Animals"
},
Now the first version of your library is ready!
You can read the instructions to develop it here.
Good luck!