Created
September 20, 2013 01:30
-
-
Save tcql/6632200 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
git clone https://github.com/tchannel/phaser-coffeescript.git | |
cd phaser-coffeescript | |
# The branch i'm testing on. The phaser dependency | |
# Is pointing at a fork I made of phaser (tchannel/phaser) | |
# Where i setup the sourcemap and build tasks | |
git checkout origin/test-phaser-sourcemap | |
npm install | |
# I haven't made a task or anything for this yet... | |
# Also, grand scheme, coffee support doesn't matter. | |
# but for now, you have to do it | |
./node_modules/coffee-script/bin/coffee -bo build -c src | |
node server.js | |
# Now visit localhost:8080/index.html | |
# you should get the 'hello phaser' example running. | |
# If you pull up the browser's console and (at least in chrome...) | |
# Go to the "Sources" tab, and expand the sources list in the top left | |
# corner, you'll see a folder for "node_modules/Phaser/build | |
# and underneath that, "../src", which contains all the source files. | |
# If an error occurs in the code, the line number and file referenced | |
# in the console should point at the source file, not some annoying spot | |
# in the min.js | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment