3.1.1 • Published 6 years ago

generator-rblb-es6 v3.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.4.0

7 years ago

2.3.3

7 years ago

2.3.1

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago