Added command to generate example HTML file to pick from JS test suite
Change-Id: Ifc3595736cef16eba19014e42e7195d6611ebb38
(cherry picked from commit 754e1c2c8294e91543a37db84ea0f7508cbac55c)
diff --git a/Gruntfile.js b/Gruntfile.js
index a6cfb95..2577394 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -155,6 +155,17 @@
spawn: false
}
}
+ },
+ shell: {
+ options: {
+ stderr: false
+ },
+ makeDir: {
+ command : 'mkdir -p ./dev/js/spec/src'
+ },
+ createPage: {
+ command : 'perl script/kalamar get / > ./dev/js/spec/src/page.html'
+ }
}
});
@@ -162,6 +173,7 @@
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-uglify-es');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.registerTask('img', ['imagemin','copy']);
@@ -169,6 +181,6 @@
grunt.registerTask('css', ['sass']);
grunt.registerTask(
'default',
- ['requirejs', 'uglify', 'imagemin', 'copy', 'sass']
+ ['requirejs', 'uglify', 'imagemin', 'copy', 'sass','shell:makeDir', 'shell:createPage']
);
};