summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2014-06-27 16:24:47 +0200
committerVictor Häggqvist <[email protected]>2014-06-27 16:24:47 +0200
commit86ea72c5acc96870bb2f9fac753d75307caf4d6e (patch)
tree8a709109ac22e7c4e21bf33e0e5b5582402a626e
parent3df10d731dbdac3618359b1562776b71dbf34de9 (diff)
simplify build
-rw-r--r--Gruntfile.js13
-rw-r--r--package.json1
2 files changed, 13 insertions, 1 deletions
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",