Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Moved all compile targets to package.json and add preinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
mhart committed Jun 8, 2013
1 parent 1872e43 commit f15805e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 62 deletions.
2 changes: 0 additions & 2 deletions .npmignore
@@ -1,5 +1,3 @@
src/
test/
.git*
Rakefile
utils/
56 changes: 0 additions & 56 deletions Rakefile

This file was deleted.

12 changes: 8 additions & 4 deletions package.json
Expand Up @@ -26,9 +26,13 @@
"url": "http://github.com/clutchski/coffeelint/raw/master/LICENSE"
}],
"scripts": {
"pretest": "rake compile",
"test": "node_modules/.bin/vows --spec test/*.coffee",
"posttest": "./bin/coffeelint -f test/fixtures/coffeelint.json src/*.coffee test/*.coffee",
"prepublish": "rake compile"
"test": "vows --spec test/*.coffee",
"posttest": "npm run lint",
"prepublish": "npm run compile",
"preinstall": "[ -e bin/coffeelint ] || npm run compile",
"lint": "npm run compile && ./bin/coffeelint -f test/fixtures/coffeelint.json src/*.coffee test/*.coffee",
"lint-csv": "npm run compile && ./bin/coffeelint --csv -f test/fixtures/coffeelint.json src/*.coffee test/*.coffee",
"lint-jslint": "npm run compile && ./bin/coffeelint --jslint -f test/fixtures/coffeelint.json src/*.coffee test/*.coffee",
"compile": "coffee -c -o lib src && mkdir -p bin && echo '#!/usr/bin/env node' | cat - lib/commandline.js > bin/coffeelint && chmod +x bin/coffeelint && rm lib/commandline.js"
}
}

0 comments on commit f15805e

Please sign in to comment.