Skip to content

Latest commit

 

History

History
50 lines (26 loc) · 1.13 KB

gulpfile.md

File metadata and controls

50 lines (26 loc) · 1.13 KB

Modifying gulpfile.js 🙌

There are seven variables that you can modify in order to easily adapt the behaviour of the Gulp file to your own needs.

Constants

PHASER_PATH path to the Phaser build folder, change if using Bower or other package managers.

Default: ./node_modules/phaser/build/


BUILD_PATH your build folder's path, change it if you wish to rename the default folder.

Default: ./build/


SCRIPTS_PATH should be contained inside the build folder, used to store Javascript files.

Default: BUILD_PATH + '/scripts'


SOURCE_PATH your source code folder's path (the place where all your ES6 files are located).

Default: ./src


STATIC_PATH your static files folder's path (the place where all your HTML and CSS is located).

Default: ./static


ENTRY_FILE the main source file, by convention named index.js.

Default: SOURCE_PATH + '/index.js'


OUTPUT_FILE the name of the output transpiled file.

Default: game.js


Any other modification must be done manually to the correct Task.