set up the build system

This commit is contained in:
Enrico Fasoli 2015-03-13 11:56:27 +01:00
parent 8efd9c2cfa
commit 063fa2121a
5 changed files with 17 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
node_modules/
bin/

2
.npmignore Normal file
View File

@ -0,0 +1,2 @@
src/
build.sh

4
build.sh Executable file
View File

@ -0,0 +1,4 @@
mkdir -p bin
echo '#!/usr/bin/env node' > bin/pert
coffee -b -c --no-header -p src/pert.coffee >> bin/pert
chmod +x bin/pert

View File

@ -3,8 +3,12 @@
"version": "0.0.1",
"description": "pert diagram calculator",
"main": "pert.coffee",
"bin": {
"pert": "./bin/pert"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"prepublish": "./build.sh",
"build": "./build.sh"
},
"repository": {
"type": "git",
@ -17,6 +21,10 @@
},
"homepage": "https://github.com/fazo96/pert",
"dependencies": {
"chalk": "^1.0.0"
"chalk": "^1.0.0",
"commander": "^2.6.0"
},
"devDependencies": {
"coffee-script": "^1.9.1"
}
}