Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on May 03, 2013
@jobara VP-310: Added minification
Using uglify to minify the concatenated file. Also changed the build task to build-src.
d5cccdf
@jobara VP-310: Fixed a pathing issue
The concat task was point at "videoPlayer/js/..." but should have been "js/..."
07a18e9
Showing with 27 additions and 14 deletions.
  1. +25 −13 GruntFile.js
  2. +2 −1  package.json
View
38 GruntFile.js
@@ -10,26 +10,38 @@ module.exports = function (grunt) {
"lib/jqeury-ui/js/jquery.ui.button.js",
"lib/captionator/js/captionator.js",
"lib/mediaelement.js",
- "videoPlayer/js/VideoPlayer_framework.js",
- "videoPlayer/js/VideoPlayer_showHide.js",
- "videoPlayer/js/VideoPlayer.js",
- "videoPlayer/js/VideoPlayer_html5Captionator.js",
- "videoPlayer/js/VideoPlayer_controllers.js",
- "videoPlayer/js/ToggleButton.js",
- "videoPlayer/js/MenuButton.js",
- "videoPlayer/js/VideoPlayer_media.js",
- "videoPlayer/js/VideoPlayer_trascript.js",
- "videoPlayer/js/VideoPlayer_intervalEventsConductor.js",
- "videoPlayer/js/VideoPlayer_uiOptions.js"
+ "js/VideoPlayer_framework.js",
+ "js/VideoPlayer_showHide.js",
+ "js/VideoPlayer.js",
+ "js/VideoPlayer_html5Captionator.js",
+ "js/VideoPlayer_controllers.js",
+ "js/ToggleButton.js",
+ "js/MenuButton.js",
+ "js/VideoPlayer_media.js",
+ "js/VideoPlayer_trascript.js",
+ "js/VideoPlayer_intervalEventsConductor.js",
+ "js/VideoPlayer_uiOptions.js"
],
dest: "build/videoPlayer-all.js"
}
+ },
+ uglify: {
+ options: {
+ mangle: false
+ },
+ my_target: {
+ files: {
+ "build/videoPlayer-all-min.js": ["build/videoPlayer-all.js"]
+ }
+ }
}
});
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-concat");
+ grunt.loadNpmTasks("grunt-contrib-uglify");
- grunt.registerTask("build", ["clean", "concat"]);
- grunt.registerTask("default", ["build"]);
+ grunt.registerTask("build-src", ["clean", "concat"]);
+ grunt.registerTask("build-min", ["build-src", "uglify"]);
+ grunt.registerTask("default", ["build-min"]);
};
View
3  package.json
@@ -30,6 +30,7 @@
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.4.1",
- "grunt-contrib-concat": "~0.3.0"
+ "grunt-contrib-concat": "~0.3.0",
+ "grunt-contrib-uglify": "~0.2.0"
}
}

No commit comments for this range

Something went wrong with that request. Please try again.