Skip to content

Instantly share code, notes, and snippets.

@ryanhallcs
Last active March 15, 2017 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanhallcs/2e56a68797984cd90a643b6ff605d8ca to your computer and use it in GitHub Desktop.
Save ryanhallcs/2e56a68797984cd90a643b6ff605d8ca to your computer and use it in GitHub Desktop.
Setup Phaser, NPM, git and Typescript
# 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