Skip to content

Commit

Permalink
add bin to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Aug 7, 2016
1 parent 73e9224 commit f43ebac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Gruntfile.coffee
Expand Up @@ -4,6 +4,9 @@ module.exports = (grunt) ->
pkg: require './package'
coffee:
src:
options:
bare: true
noHeader: true
expand: true
cwd: 'src'
src: '**/*.coffee'
Expand All @@ -21,6 +24,8 @@ module.exports = (grunt) ->
options:
indentation:
level: 'ignore'
no_backticks:
level: 'ignore'
src:
src: '<%= coffee.src.cwd %>/<%= coffee.src.src %>'
index:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -9,6 +9,9 @@
"logcat",
"monkey"
],
"bin": {
"adbkit": "./lib/cli.js"
},
"bugs": {
"url": "https://github.com/CyberAgent/adbkit/issues"
},
Expand Down
4 changes: 3 additions & 1 deletion src/cli.coffee
@@ -1,5 +1,7 @@
fs = require 'fs'
`#!/usr/bin/env node
`

fs = require 'fs'
program = require 'commander'
Promise = require 'bluebird'
forge = require 'node-forge'
Expand Down

0 comments on commit f43ebac

Please sign in to comment.