dml-js-generatordeprecated

A vanilla JS generator from D-Mobile Lab

Usage no npm install needed!

<script type="module">
  import dmlJsGenerator from 'https://cdn.skypack.dev/dml-js-generator';
</script>

README

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!