Gulp tasks for fibres (your modules)
What is this?
Gulp is a great build tool and we wanted to have a nice place where all our gulp tasks could live happily.
- Linting with eslint and scss-lint
- Testing with jasmine and karma
- Full support for ES6 using babel and isparta
- Bump'n'tag'n'push (no, that's not an R Kelly song)
- Build for web and node using webpack
- And more to come in the future...
Rather than use the specific plugin tasks individually we use a grouped set to speed things up:
Starts all the linters (eslint and scss-lint) and all the tests (jasmine for node and karma for web).
Starts all the linters (eslint and scss-lint) and runs karma tests.
Starts eslint and runs the jasmine tests.
package.json|component.json (config can be found in the
config.js), git commits, tags and pushes said tag to your current remote and branch.
Tests and builds your fibre (module) for web and node; web output is webpacked and named
package.name + [chunkhash].js, uglified and placed in
dist/ (all can be set in
config.js), and node output is babel'd and placed in
Test and build your fibre (module) for the web.
Test and build your fibre (module) for node.
In addition to the standard
gulp karma the
:debug flag keeps karma alive so you can debug it using the open browser; all the code uses sourcemaps so if you're using ES6 you should see some nice code.
The MIT License (MIT)