From 2fa26d3dba35dad21ff78b5bfef31adf97c20b8d Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 26 Nov 2014 09:20:36 -0400 Subject: [PATCH] Improve build system and CLI integration Omit specs from build Commit build directory and add bin entry point --- .gitignore | 1 - bin/resin | 2 ++ gulpfile.coffee | 2 +- package.json | 7 +++++-- 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100755 bin/resin diff --git a/.gitignore b/.gitignore index 0e012120..c7905891 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/bin/resin b/bin/resin new file mode 100755 index 00000000..299240c0 --- /dev/null +++ b/bin/resin @@ -0,0 +1,2 @@ +#!/usr/bin/env node +require('../build/app'); diff --git a/gulpfile.coffee b/gulpfile.coffee index df989b3b..50a3b6b4 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -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: diff --git a/package.json b/package.json index 386f2822..f79856c2 100644 --- a/package.json +++ b/package.json @@ -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",