Skip to content

Commit

Permalink
Uglify Release JavaScript for performance and better github stats
Browse files Browse the repository at this point in the history
  • Loading branch information
j1n6 committed Sep 2, 2014
1 parent b5f448d commit 4bec129
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 50,641 deletions.
7 changes: 4 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module.exports = function (grunt) {
dest: "<%= distDir %>/main-libs.js",
options: {
alias: libAlias,
shim: commonShims
shim: commonShims,
transform: ["uglifyify"]
}
},

Expand All @@ -40,9 +41,9 @@ module.exports = function (grunt) {
options: {
alias: libAlias,
external: libSource,
transform: ["partialify"],
transform: ["partialify", "uglifyify"],
bundleOptions: {
debug: true
debug: false
}
}
},
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"devDependencies": {
"browserify": "~3.38.0",
"expect.js": "^0.3.1",
"grunt": "~0.4.4",
"grunt-browserify": "~2.0.8",
"grunt-contrib-copy": "~0.5.0",
Expand All @@ -22,8 +23,8 @@
"mocha": "~1.18.2",
"napa": "~0.4.1",
"partialify": "*",
"watchify": "^0.8.2",
"expect.js": "^0.3.1"
"uglifyify": "^2.5.0",
"watchify": "^0.8.2"
},
"script": {
"install": "napa"
Expand Down
4 changes: 2 additions & 2 deletions webapp/app/routes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function ($stateProvider, $urlRouterProvider) {
module.exports = ["$stateProvider", "$urlRouterProvider", function ($stateProvider, $urlRouterProvider) {

$stateProvider
.state("main", {
Expand All @@ -7,4 +7,4 @@ module.exports = function ($stateProvider, $urlRouterProvider) {
});

$urlRouterProvider.otherwise("/main");
}
}];
Empty file removed webapp/dist/.gitkeep
Empty file.
Loading

0 comments on commit 4bec129

Please sign in to comment.