Skip to content

Commit

Permalink
new build system
Browse files Browse the repository at this point in the history
compile at pre-publish
  • Loading branch information
dodo committed Jan 5, 2012
1 parent 001f5be commit 4214f36
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*~
*.swp
build/*
lib/*
.lock-wscript
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
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
, "engines": {"node": ">= 0.4.x"}
, "keywords": ["slugify", "slug", "string", "utf8", "utf-8", "unicode", "url"]
, "scripts": {
"preinstall": "#preinstall DO NOTHING",
"install": "node-waf configure build",
"update": "node-waf build"}
"pre-publish": "cake build"}
, "dependencies": {
"unicode": ">= 0.2.1",
"unicode": ">= 0.2.1"}
, "devDependencies": {
"muffin": ">= 0.2.6",
"coffee-script": ">= 1.1.2"}
}
2 changes: 1 addition & 1 deletion slug.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

module.exports = require('./build/default/slug')
module.exports = require('./lib/slug')
28 changes: 0 additions & 28 deletions wscript

This file was deleted.

0 comments on commit 4214f36

Please sign in to comment.