Skip to content

Commit

Permalink
Add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbuck committed Nov 21, 2015
1 parent c38798c commit e1fbaa1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
npm-debug.log
chrome/app.js
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@
"bootstrap": "./scripts/bootstrap",
"lint": "./scripts/lint",
"test": "./scripts/test",
"watch-test": "./scripts/test --no-single-run --auto-watch"
"watch-test": "./scripts/test --no-single-run --auto-watch",
"build": "./scripts/build",
"watch-build": "./scripts/watch-build"
},
"dependencies": {
"@githublinker/filetype": "^0.1.0",
"jquery": "^2.1.4"
},
"devDependencies": {
"babel-eslint": "^4.1.3",
"babelify": "^6.3.0",
"babelify": "^6.4.0",
"browserify": "^12.0.1",
"eslint": "^1.5.0",
"eslint-config-airbnb": "0.0.9",
"karma-browserify": "^4.3.0",
"karma-fixture": "^0.2.5",
"karma-html2js-preprocessor": "^0.1.0",
"karma-mocha": "^0.2.0",
"karma-mocha-reporter": "^1.1.1",
"karma-phantomjs-launcher": "^0.2.1"
"karma-phantomjs-launcher": "^0.2.1",
"watchify": "^3.5.0"
},
"private": true
}
7 changes: 7 additions & 0 deletions scripts/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e

NPM_BIN="$(npm bin)";
cd "$(dirname "$0")/.."

"$NPM_BIN/browserify" ./src/github-linker.js -t babelify --outfile ./chrome/app.js
7 changes: 7 additions & 0 deletions scripts/watch-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e

NPM_BIN="$(npm bin)";
cd "$(dirname "$0")/.."

"$NPM_BIN/watchify" ./src/github-linker.js -t babelify --outfile ./chrome/app.js

0 comments on commit e1fbaa1

Please sign in to comment.