Comfortable giveaways system for Twitch.tv channels.
component(1) - Opinionated package manager & builder made for the front end world.
Mithril - Fast and simple immediate mode framework.
Gulp - Streams oriented build system.
... and lots of small libraries listed in component.json.
You need to have nodejs installed.
Gulp:
npm install -g gulp-cli
Gulp tasks dependencies:
npm install
To run any of the tasks below, write gulp taskname
into your console.
In general, you should be interested only in build, serve, and watch tasks.
Runs build & watch.
Default task can be run simply by:
gulp
Copies static assets like images and manifest into build/
directory.
Builds the whole app into the build/
directory.
Available arguments:
-P --production
- Build a production version that minifies resources and doesn't include sourcemaps.
Example:
gulp build -P
gulp build -production
Bump the manifest.json
version.
Available arguments:
-t --type=[name]
- Pick which semantic version should be bumped. Can be: patch (default), minor, major, or a direct version.
Example:
-> version: 1.0.0
gulp bump
-> version: 1.0.1
gulp bump -t patch
-> version: 1.0.2
gulp bump -t minor
-> version: 1.1.0
gulp bump -t 2.2.2
-> version: 2.2.2
Deletes the build/
directory.
Builds the icons.svg
sprite from src/icon/
icons into build/
directory.
Will package the production version of the app into a zip file.
Will bump the manifest.json
version and package the app into a zip file.
Accepts bump arguments.
Builds scripts into build/
directory.
Builds styles into build/
directory.
Starts watching scripts, styles, and assets for changes, and builds what is necessary.
On script changes, you need to reload the extension via chrome Extensions Developmer mode. On style & asset changes, just F5 the twitch chat.