Skip to content

Commit

Permalink
issue-1233: added grunt diff (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Mar 7, 2017
1 parent def800c commit 059c26a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions grunt/config/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ module.exports = function (grunt, options) {
generateSourceMaps: true,
preserveLicenseComments:false,
optimize: 'none'
},
//newer configuration
files: {
'<%= outputdir %>adapt/js/adapt.min.js': [
'<%= sourcedir %>/**/*.js'
]
}
},
compile: {
Expand Down
6 changes: 6 additions & 0 deletions grunt/config/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ module.exports = function (grunt, options) {
filter: function(filepath) {
return grunt.config('helpers').includedFilter(filepath);
}
},
//newer configuration
files: {
'<%= outputdir %>adapt/css/adapt.css': [
'<%= sourcedir %>/**/*.less'
]
}
},
compile: {
Expand Down
17 changes: 17 additions & 0 deletions grunt/tasks/diff.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* For development
*/
module.exports = function(grunt) {
grunt.registerTask('diff', 'Differential compile on a developer-friendly build of the course', [
'_log-vars',
'check-json',
'copy',
'newer:handlebars:compile',
'create-json-config',
'schema-defaults',
'tracking-insert',
'newer:javascript:dev',
'newer:less:dev',
'replace'
]);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"grunt-contrib-watch": "~1.0.0",
"grunt-jscs": "~2.8.0",
"grunt-jsonlint": "~1.0.7",
"grunt-newer": "^1.2.0",
"grunt-open": "~0.2.3",
"grunt-replace": "~1.0.1",
"jit-grunt": "~0.10.0",
Expand Down

0 comments on commit 059c26a

Please sign in to comment.