Skip to content

Commit 1f4cae4

Browse files
committed
Building The Production Bundle
1 parent c16b36f commit 1f4cae4

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
@@ -12,14 +12,17 @@
1212
"karma-phantomjs-launcher": "^1.0.0",
1313
"phantomjs-prebuilt": "^2.1.7",
1414
"sinon": "^1.17.2",
15-
"watchify": "^3.7.0"
15+
"watchify": "^3.7.0",
16+
"uglifyjs": "^2.4.10"
1617
},
1718
"dependencies": {
1819
"jquery": "^2.1.4",
1920
"lodash": "^4.11.1"
2021
},
2122
"scripts": {
2223
"lint": "jshint src test",
23-
"test": "karma start"
24+
"test": "karma start",
25+
"build": "browserify src/bootstrap.js > myangular.js",
26+
"build:minified": "browserify src/bootstrap.js | uglifyjs -mc > myangular.min.js"
2427
}
2528
}

0 commit comments

Comments
 (0)