Skip to content

Commit

Permalink
new buildsystem
Browse files Browse the repository at this point in the history
compile on pre-publish
  • Loading branch information
dodo committed Jan 5, 2012
1 parent cc06e87 commit 38b5644
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*~
*.swp
.lock-wscript
build/*
lib/*
node_modules/*
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cakefile
src/
13 changes: 13 additions & 0 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
path = require 'path'
{ run, compileScript } = require 'muffin'


task 'build', 'compile coffeescript → javascript', (options) ->
run
options:options
files:[
"./src/**/*.coffee"
]
map:
'src/(.+).coffee': (m) ->
compileScript m[0], path.join("lib" ,"#{m[1]}.js"), options
2 changes: 1 addition & 1 deletion node-raphael.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

module.exports = require('./build/default/svg')
module.exports = require('./lib/svg')
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
"node": ">= 0.4.x"
},
"scripts": {
"preinstall": "#preinstall DO NOTHING",
"install": "node-waf configure build",
"update": "node-waf build"
"pre-publish": "cake build"
},
"dependencies": {
"jsdom": ">= 0.0.1",
"raphael": ">= 1.4.7-14-gdbe241f",
"coffee-script": ">= 1.1.1"
"raphael": ">= 1.4.7-14-gdbe241f"
},
"devDependencies": {
"coffee-script": ">= 1.2.0",
"muffin": ">= 0.2.6"
}
}
28 changes: 0 additions & 28 deletions wscript

This file was deleted.

0 comments on commit 38b5644

Please sign in to comment.