Last active
March 15, 2017 15:58
-
-
Save ryanhallcs/2e56a68797984cd90a643b6ff605d8ca to your computer and use it in GitHub Desktop.
Setup Phaser, NPM, git and Typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup folders | |
mkdir gitlab-game-demo | |
cd gitlab-game-demo | |
mkdir src | |
mkdir assets | |
# Just select defaults for git and npm | |
git init | |
npm init -y | |
# Install libraries and typings | |
npm i -g typescript typings | |
npm i -S phaser-ce | |
typings install github:photonstorm/phaser-ce/typescript/typings.json -GD | |
tsc --init | |
npm i -D browser-sync browserify del gulp gulp-typescript gulp-uglify tsify typescript vinyl-source-stream | |
# Install global typings | |
typings install github:photonstorm/phaser-ce/typescript/typings.json -GD | |
# Copy necessary js vendor files | |
cp -Path node_modules/phaser-ce/build/*.min.js -Destination vendor/phaser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment