From a28531d3cfefc14766b38bf2e2a06bf9f8ebbc00 Mon Sep 17 00:00:00 2001 From: tomgreenfield Date: Thu, 16 Jun 2016 11:04:54 +0100 Subject: [PATCH 1/2] Fix schema-defaults Grunt task --- grunt/tasks/schema-defaults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grunt/tasks/schema-defaults.js b/grunt/tasks/schema-defaults.js index e71e07054..d7fd91722 100644 --- a/grunt/tasks/schema-defaults.js +++ b/grunt/tasks/schema-defaults.js @@ -25,7 +25,7 @@ module.exports = function(grunt) { var currentPluginPath = path; // if specific plugin has been specified with grunt.option, don't carry on - if(Helpers.isPluginIncluded(path, path)) return; + if (!Helpers.isPluginIncluded(path)) return; var currentSchemaPath = currentPluginPath + "/" + "properties.schema"; var currentBowerPath = currentPluginPath + "/" + "bower.json"; From e55df394de7e01694133ae43b55d89484437fdc8 Mon Sep 17 00:00:00 2001 From: tomgreenfield Date: Tue, 21 Jun 2016 11:17:11 +0100 Subject: [PATCH 2/2] Add schema-defaults to watch --- grunt/config/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grunt/config/watch.js b/grunt/config/watch.js index 2d1b85283..1cc5f8e1a 100644 --- a/grunt/config/watch.js +++ b/grunt/config/watch.js @@ -10,7 +10,7 @@ module.exports = { }, courseJson: { files: ['<%= sourcedir %>course/**/*.json'], - tasks : ['jsonlint', 'check-json', 'copy:courseJson'] + tasks : ['jsonlint', 'check-json', 'copy:courseJson', 'schema-defaults'] }, courseAssets: { files: ['<%= sourcedir %>course/**/*', '!<%= sourcedir %>course/**/*.json'],