README instructions for using browser snowflake

This commit is contained in:
Serene Han 2016-01-13 11:25:08 -08:00
parent 487dfe697a
commit 17f30d1091
2 changed files with 50 additions and 12 deletions

View file

@ -2,7 +2,7 @@ fs = require 'fs'
{exec} = require 'child_process'
task 'test', 'snowflake unit tests', () ->
task 'test', 'snowflake unit tests', ->
testFile = 'test/snowflake.bundle.coffee'
exec 'cat snowflake.coffee snowflake_test.coffee | cat > ' + testFile, (err, stdout, stderr) ->
throw err if err
@ -10,3 +10,8 @@ task 'test', 'snowflake unit tests', () ->
exec 'coffee ' + testFile + ' -v', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
task 'build', 'build the snowflake proxy', ->
exec 'coffee -o build -c snowflake.coffee', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr