Improve build system and CLI integration

Omit specs from build

Commit build directory and add bin entry point
This commit is contained in:
Juan Cruz Viotti 2014-11-26 09:20:36 -04:00
parent 76e92fea22
commit 2fa26d3dba
4 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@ -26,4 +26,3 @@ build/Release
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
build

2
bin/resin Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../build/app');

View File

@ -12,7 +12,7 @@ OPTIONS =
coffeelint: path.join(__dirname, 'coffeelint.json')
files:
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
app: [ 'lib/**/*.coffee' ]
app: [ 'lib/**/*.coffee', '!lib/**/*.spec.coffee' ]
tests: 'lib/**/*.spec.coffee'
json: 'lib/**/*.json'
dirs:

View File

@ -2,7 +2,10 @@
"name": "resin",
"version": "0.0.1",
"description": "Git Push to your devices",
"main": "bin/resin",
"main": "./lib/app.js",
"bin": {
"resin": "./bin/resin"
},
"scripts": {
"test": "cult test"
},
@ -38,7 +41,7 @@
"rimraf": "~2.2.8",
"commander": "~2.5.0",
"mkdirp": "~0.5.0",
"resin-platform-api": "git+ssh://git@bitbucket.org/rulemotion/resin-platform-api.git#master",
"resin-platform-api": "git+ssh://git@bitbucket.org/rulemotion/resin-platform-api.git#6dbc6de",
"bluebird": "~2.3.11",
"open": "0.0.5",
"inquirer": "~0.8.0",