Skip to content
This repository has been archived by the owner on Feb 12, 2018. It is now read-only.

Commit

Permalink
Trying to compile coffeescript files from sharejs module on Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfrancisco committed Jul 7, 2011
1 parent de3c4b5 commit 31ec93f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
{exec} = require 'child_process'

task 'build', 'Build the .js files', (options) ->
exec "coffee --compile --bare --output node_modules/share/lib/ node_modules/share/src/", (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr

exec "coffee -c web.coffee editor/index.coffee", (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: node web.js
web: cake build && node web.js
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "escrito",
"version": "0.0.1",
"dependencies": {
"share": "~0.1.1",
"connect": "~1.5.1",
"share": ">= 0.1.1",
"connect": "~1.1.1",
"coffee-script": "~1.0.0",
"redis": "*",
"websocket-client": ">= 1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion web.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Run "cake build" and "foreman start" or "node web.js"
# Run "npm install", "cake build" and "foreman start" or "node web.js"

# require.paths.push '/usr/local/node/lib/node_modules'
#!/usr/bin/env coffee
Expand Down

0 comments on commit 31ec93f

Please sign in to comment.