Skip to content

Commit

Permalink
Update to allow install as global NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-fryslie committed Apr 1, 2016
1 parent 128cea2 commit 07389be
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
node_modules
npm-debug.log
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.npmignore
.test
coffeelint.json
etc/dep-graph
21 changes: 10 additions & 11 deletions bin/stacker
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env coffee
require('es6-promise').polyfill()
require 'colors'
_ = require 'lodash'
stacker = require '../lib/stacker_lib'
#!/usr/bin/env node
require('coffee-script/register');
require('es6-promise').polyfill();
require('colors');

process.on 'uncaughtException', (error) ->
console.log 'unhandled exception!'.red
console.log error
console.log error.stack
process.on('uncaughtException', function(error) {
console.log('unhandled exception!'.red);
console.log(error);
console.log(error.stack);
});

# DO IT!
stacker.boot()
require('../lib/stacker_lib').boot();
2 changes: 1 addition & 1 deletion lib/arg_lib.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ argv = replace_keys argv, /-/g, '_'

# we omit these keys and all aliases from the stacker state
aliases = _(cli_options).map('alias').compact().value()
argv.stacker_state = _.omit argv, ['_', '$0', 'h', 'help'].concat aliases
argv.stacker_state = _.omit argv, ['_', '$0', 'h', 'help', 'repl'].concat aliases

# TODO: use task_cli_options to group the command line args

Expand Down
20 changes: 15 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
{
"name": "stacker",
"name": "boot-stacker",
"version": "0.1.0",
"description": "Boot your stack",
"main": "stacker.js",
"description": "Boot your stack. Simple, flexible, magical manager for running tasks and applications of all sorts.",
"keywords": ["stacker", "cli", "task-runner"],
"bin": {
"stacker": "bin/stacker"
},
"scripts": {
"test": "mocha --compilers coffee:coffee-script/register"
},
"author": "Brandon Fryslie",
"license": "ISC",
"private": true,
"engine": "node 0.10.0",
"repository": {
"type": "git",
"url": "https://github.com/brandon-fryslie/stacker.git"
},
"engines": {
"node": ">= 0.10.0"
},
"dependencies": {
"coffee-script": "^1.10.0",
"colors": "^1.0.3",
"es6-promise": "^3.1.2",
"lodash": "^4.6.1",
"ps-tree": "^1.0.1",
"yargs": "^4.3.2"
},
"preferGlobal": true,
"yargs": {
"camel-case-expansion": false
}
Expand Down

0 comments on commit 07389be

Please sign in to comment.