generator-rblb-es6

3.1.1 • Public • Published

generator-rblb-es6

Yeoman generator for developing your own ES6 nodejs modules (without transpilation). Based on generator-npm-es6 by sohamkamani

Installation and usage

  • Install previous dependencies if you haven't already (npm install -g yo mocha).
  • Install the generator (npm install -g generator-rblb-babel)
  • Run the generator (yo rblb-es6)

Development Workflow

the folder tree structure after running the generator and running npm run build will look something like this:

.  
├── .gitignore  
├── .jshintrc  
├── README.md   
├── package.json  
├── src  
│   └── index.js  
└── test  
    └── index.spec.js

  • Everything inside the source and test folder should be written exactly as supported by nodejs. There is no transpilation.
  • All the tests reside inside the test folder and will be run using mocha.

npm scripts

  • npm test - Run all tests and jshint. Also watches files for changes.

source

The source folder is where all the source code files go. The index.js file inside this folder will be the entry point to the node module, i.e. the node module will export whatever source/index.js exports.

test

The test folder contains all the tests for the source files. Tests are run using mocha.

License

MIT © perchten

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i generator-rblb-es6

    Weekly Downloads

    1

    Version

    3.1.1

    License

    MIT

    Unpacked Size

    6.69 kB

    Total Files

    11

    Last publish

    Collaborators

    • builtbybrayne