Permalink
Browse files

VP-310: started Gruntfile with basic tasks

Added a GruntFile.js with some basic clean and concat tasks. It will create a concatenated version of all the js files and put it into a build directory. There is a clean task to remove this, which is also performed before any new builds.
  • Loading branch information...
1 parent 007720f commit 70b3afd0ee45154d0b1da26cf5e9ff5acb33e4bf @jobara committed May 3, 2013
Showing with 71 additions and 27 deletions.
  1. +4 −0 .gitignore
  2. +35 −0 GruntFile.js
  3. +32 −27 package.json
View
@@ -1,3 +1,7 @@
html/video.mov
html/test.php
+
+# build resources to ignore
+node_modules
+build
View
@@ -0,0 +1,35 @@
+module.exports = function (grunt) {
+ grunt.initConfig({
+ clean: {
+ build: "build"
+ },
+ concat: {
+ all: {
+ src: [
+ "lib/infusion/MyInfusion.js",
+ "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"
+ ],
+ dest: "build/videoPlayer-all.js"
+ }
+ }
+ });
+
+ grunt.loadNpmTasks("grunt-contrib-clean");
+ grunt.loadNpmTasks("grunt-contrib-concat");
+
+ grunt.registerTask("build", ["clean", "concat"]);
+ grunt.registerTask("default", ["build"]);
+};
View
@@ -1,30 +1,35 @@
{
- "name": "fluid-videoPlayer",
- "version": "0.1.0",
- "description": "HTML5 video player built atop Fluid Infusion",
- "repository": {
- "type": "git",
- "url": "git@github.com:fluid-project/videoPlayer.git"
+ "name": "fluid-videoPlayer",
+ "version": "0.1.0",
+ "description": "HTML5 video player built atop Fluid Infusion",
+ "repository": {
+ "type": "git",
+ "url": "git@github.com:fluid-project/videoPlayer.git"
+ },
+ "keywords": [
+ "HTML5",
+ "video",
+ "player",
+ "infusion",
+ "transcripts",
+ "captions",
+ "video"
+ ],
+ "author": "Fluid Project",
+ "license": [
+ {
+ "type": "BSD-3-Clause",
+ "url": "http://www.opensource.org/licenses/BSD-3-Clause"
},
- "keywords": [
- "HTML5",
- "video",
- "player",
- "infusion",
- "transcripts",
- "captions",
- "video"
- ],
- "author": "Fluid Project",
- "license": [
- {
- "type": "BSD-3-Clause",
- "url": "http://www.opensource.org/licenses/BSD-3-Clause"
- },
- {
- "type": "ECL-2.0",
- "url": "http://www.opensource.org/licenses/ECL-2.0"
- }
- ],
- "readmeFilename": "README.txt"
+ {
+ "type": "ECL-2.0",
+ "url": "http://www.opensource.org/licenses/ECL-2.0"
+ }
+ ],
+ "readmeFilename": "README.txt",
+ "devDependencies": {
+ "grunt": "~0.4.1",
+ "grunt-contrib-clean": "~0.4.1",
+ "grunt-contrib-concat": "~0.3.0"
+ }
}

0 comments on commit 70b3afd

Please sign in to comment.