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 ++++++++++++- package.json | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) 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']); }; diff --git a/package.json b/package.json index 12ea325..4640550 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ }, "devDependencies": { "grunt": "~0.4.2", + "grunt-contrib-commands": "^0.1.6", "grunt-contrib-copy": "^0.5.0", "grunt-contrib-sass": "^0.7.3", "grunt-contrib-watch": "~0.5.3", -- cgit v1.2.3