generator-npmsb

Generator for yeoman for npm scripts build workflow with coffeescript, karma, svg symbols and stuff

Usage no npm install needed!

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

README

Web app generator

Yeoman generator that scaffolds out a front-end web app using npm-scripts for the build process

Features

  • SCSS preprocessing with node-sass
  • CoffeeScript preprocessing with browserify + coffeify || es6 with browserify + babelify
  • Built-in preview server with browser-sync
  • Image optimization with image-min
  • SVG symbols workflow with svg-sprite
  • Testing workflow with karma and jasmine

Available options

  • --karma to, actually, add karma and jasmine stuff.
  • --es6 to use es6 via babelify instead of coffeescript.
  • --svg to add svg symbols stuff.