Skip to content

Commit

Permalink
add a factorymaker module in order to be able to overload the rules o…
Browse files Browse the repository at this point in the history
…utside the dash.js : it's neccessary when the different modules are used instead of the dash.all.
  • Loading branch information
nicosang committed Jul 10, 2017
1 parent 9757951 commit d6d6ffa
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ module.exports = function (grunt) {
}
},

build_factorymaker: {
options: {
sourceMapIn: 'build/temp/dash.factorymaker.debug.js.map'
},
files: {
'build/temp/dash.factorymaker.min.js': 'build/temp/dash.factorymaker.debug.js'
}
},

build_reporting: {
options: {
sourceMapIn: 'build/temp/dash.reporting.debug.js.map'
Expand Down Expand Up @@ -103,6 +112,7 @@ module.exports = function (grunt) {
'dash.mss.min.js', 'dash.mss.min.js.map',
'dash.mediaplayer.debug.js', 'dash.mediaplayer.debug.js.map',
'dash.protection.debug.js', 'dash.protection.debug.js.map',
'dash.factorymaker.debug.js', 'dash.factorymaker.debug.js.map',
'dash.reporting.debug.js', 'dash.reporting.debug.js.map',
'dash.mss.debug.js', 'dash.mss.debug.js.map'
],
Expand Down Expand Up @@ -149,6 +159,12 @@ module.exports = function (grunt) {
'build/temp/dash.reporting.debug.js.map': ['build/temp/dash.reporting.debug.js']
}
},
factorymaker: {
options: {},
files: {
'build/temp/dash.factorymaker.debug.js.map': ['build/temp/dash.factorymaker.debug.js']
}
},
mss: {
options: {},
files: {
Expand Down Expand Up @@ -216,6 +232,21 @@ module.exports = function (grunt) {
transform: ['babelify']
}
},
factorymaker: {
files: {
'build/temp/dash.factorymaker.debug.js': ['src/core/FactoryMaker.js']
},
options: {
browserifyOptions: {
debug: true,
standalone: 'dashjs.FactoryMaker'
},
plugin: [
'browserify-derequire', 'bundle-collapser/plugin'
],
transform: ['babelify']
}
},
all: {
files: {
'build/temp/dash.all.debug.js': ['index.js']
Expand Down Expand Up @@ -299,7 +330,7 @@ module.exports = function (grunt) {

require('load-grunt-tasks')(grunt);
grunt.registerTask('default', ['dist', 'test']);
grunt.registerTask('dist', ['clean', 'jshint', 'jscs', 'browserify:mediaplayer', 'browserify:protection', 'browserify:reporting', 'browserify:mss', 'browserify:all', 'babel:es5', 'minimize', 'copy:dist']);
grunt.registerTask('dist', ['clean', 'jshint', 'jscs', 'browserify:mediaplayer', 'browserify:factorymaker', 'browserify:protection', 'browserify:reporting', 'browserify:mss', 'browserify:all', 'babel:es5', 'minimize', 'copy:dist']);
grunt.registerTask('minimize', ['exorcise', 'githash', 'uglify']);
grunt.registerTask('test', ['mocha_istanbul:test']);
grunt.registerTask('watch', ['browserify:watch']);
Expand Down

0 comments on commit d6d6ffa

Please sign in to comment.