Skip to content

Commit 13690c2

Browse files
committed
Building The Production Bundle
1 parent 9198af9 commit 13690c2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules/
22
.DS_Store
3+
myangular.js
4+
myangular.min.js

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
"karma-jshint-preprocessor": "0.0.6",
1212
"karma-phantomjs-launcher": "^0.2.1",
1313
"phantomjs": "^1.9.18",
14-
"sinon": "^1.17.2"
14+
"sinon": "^1.17.2",
15+
"uglifyjs": "^2.4.10"
1516
},
1617
"dependencies": {
1718
"jquery": "^2.1.4",
1819
"lodash": "^3.10.1"
1920
},
2021
"scripts": {
2122
"lint": "jshint src test",
22-
"test": "karma start"
23+
"test": "karma start",
24+
"build": "browserify src/bootstrap.js > myangular.js",
25+
"build:minified": "browserify src/bootstrap.js | uglifyjs -mc > myangular.min.js"
2326
}
2427
}

0 commit comments

Comments
 (0)