generator-es6-script
v1.3.1
Published
Yeoman generator for general purpose node scripts compiled from es6.
Downloads
9
Readme
ES6 Script Generator
Yeoman generator for general purpose node scripts compiled from es6. ES6 is compiled using babel
into the dist
directory. Support for sourcemaps is turned on.
Usage
- Make sure a npm project has been initialized (generator installs npm modules).
- Make sure you have the following dependencies installed:
- yeoman:
npm install -g yo
- gulp:
npm install -g gulp
- yeoman:
- Install using npm
npm install generator-es6-script
. cd
to the target directory and runyo es6-script
.- To include sublime text project files, use the
--sublime
flag.
- To include sublime text project files, use the
- Compile ES6 source with
gulp compile:source
. Watch for changes withgulp watch:source
. - Compile tests with
gulp compile:tests
. Watch for changes withgulp watch:tests
. Run tests withgulp run:tests
.
Details
This generator adds the following files to the target directory:
|
|- Gulpfile.js
|- index.js
|- .gitignore
|- src/
| -- main.js
|- tasks/
| -- source.js
| -- tests.js
|- tests/
| -- sample.js
|- tools/
| -- gulp-run-task.js
|
To just get the source files, see here.