Skip to content

Commit

Permalink
Updated npm stuff, resolves #115
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewJA committed Jun 19, 2015
1 parent f91681e commit e209a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{exec} = require 'child_process'

task 'configure', 'Set up working directory to compile Coffeequate', ->
exec 'npm install requirejs coffee-script almond', (err, stdout, stderr) ->
throw err if err
console.log stdout + stderr

task 'build', 'Build project from src/*.coffee to lib/*.js', ->
exec 'coffee --compile --output lib/ src/', (err, stdout, stderr) ->
throw err if err
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"author": "MatthewJA <[email protected]> (http://matthewja.com)",
"main": "coffeequate.min.js",
"scripts": {
"postinstall": "cake all"
"prepublish": "cake all"
},
"dependencies": {
"files": ["coffeequate.min.js"],
"devDependencies": {
"coffee-script": "^1.9.2",
"requirejs": "^2.1.17",
"almond": "^0.3.1"
Expand Down

0 comments on commit e209a99

Please sign in to comment.