Skip to content

Latest commit

 

History

History
124 lines (72 loc) · 2.5 KB

README.md

File metadata and controls

124 lines (72 loc) · 2.5 KB

Twitch Giveaways

Comfortable giveaways system for Twitch.tv channels.

Screenshot

Installation

Technologies used

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.

Development environment

You need to have nodejs installed.

Gulp:

npm install -g gulp-cli

Gulp tasks dependencies:

npm install

Gulp tasks

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.

default

Runs build & watch.

Default task can be run simply by:

gulp

assets

Copies static assets like images and manifest into build/ directory.

build

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

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

clean

Deletes the build/ directory.

icons

Builds the icons.svg sprite from src/icon/ icons into build/ directory.

package

Will package the production version of the app into a zip file.

release

Will bump the manifest.json version and package the app into a zip file.

Accepts bump arguments.

scripts

Builds scripts into build/ directory.

styles

Builds styles into build/ directory.

watch

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.