generator-ots-module

Yeoman generator for ots modules

Usage no npm install needed!

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

README

OTS Module Generator

Generates the scaffolding for for front end modules which can both be stand-alone and required as bower components


The stack assumes:

  • [CommonJS] - modular js convention
  • Backbone - MVC event bus
  • Webpack - JS bundler

To use:

mkdir some-module && cd $_
yo ots-module

Right away you will see the example page and very basic unit test have been created for you. While continuing to build, run:

webpack --watch

Changes will be automaticaly bundled for you on saves.


Once running the generator, by going into the example direcotry, you can view the premade unit test ( test.html ) and the basic boilerplate module ( index.html ), by opening them in your browser.