From 86ea72c5acc96870bb2f9fac753d75307caf4d6e Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Fri, 27 Jun 2014 16:24:47 +0200 Subject: simplify build --- Gruntfile.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 82a32c5..ddf8578 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -67,6 +67,16 @@ module.exports = function(grunt) { dest: './', filter: 'isFile' } + }, + command : { + make_images_md: { + type: 'shell', + cmd: 'php images.php md' + }, + make_index_html: { + type: 'shell', + cmd: 'php index.php > index.html' + } } }); @@ -74,8 +84,9 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-sass'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-responsive-images'); + grunt.loadNpmTasks('grunt-contrib-commands'); // Default task. - grunt.registerTask('default', ['responsive_images', 'sass', 'copy']); + grunt.registerTask('default', ['responsive_images', 'sass', 'copy', 'command']); }; -- cgit v1.2.3