A generic frontend Pixi.js project boiler plate in TypeScript with source map support.
Main features:
- Source Map support
- Incremental Build
- Unit tests
- Browser auto-refresh
Main dependencies:
- Application Server: Node
- Compiler: TypeScript
- Linter: TSLint
- Task Runner: Gulp
- JavaScript File Bundler: Browserify
- Code Minifier: Uglify
- HTTP Server: BrowserSync
- Unit Test Runner: Tape
- Pixi.js: Pixi.js
Node, TypeScript and TSLint should be installed globally.
$> git clone https://github.com/yahiko00/PixiProject.git <new folder>
$> cd <new folder>
$> git init
$> npm install
Project settings are defined in package.json
, settings
section. Inside this section, set debug
to true
to debug the project with source maps, or set debug
to false
to build the project in the release mode.
Tasks are defined in the gulpfile.js
script.
Commands should be run under a bash shell.
The following command builds the project, runs unit tests, and opens the browser. If any change happens, it builds the project again and refreshes the browser.
$> npm run watchRefresh
For more predefined commands, see package.json
, item scripts
.
Unit tests are logged in the tests/
folder, file tape.log
.
yahiko
MIT