From 81940860b5415cba330005227dc35349a383ba65 Mon Sep 17 00:00:00 2001 From: "Mr. Hyde" Date: Sun, 26 Apr 2015 15:33:13 +0200 Subject: [PATCH] - [grunt] introduce shell:duo task to workflow --- .gitignore | 3 ++- gruntfile.coffee | 2 ++ package.json | 2 ++ source/layouts/_scripts.nj | 8 ++------ source/scripts/main.js | 5 +++++ tasks/grunt-shell.coffee | 12 ++++++++++++ 6 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 source/scripts/main.js create mode 100644 tasks/grunt-shell.coffee diff --git a/.gitignore b/.gitignore index d0dc0514..078b0d98 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,5 @@ npm-debug.log build ## Temporary folder -temp \ No newline at end of file +temp +components \ No newline at end of file diff --git a/gruntfile.coffee b/gruntfile.coffee index 29da77cd..822d3737 100644 --- a/gruntfile.coffee +++ b/gruntfile.coffee @@ -102,6 +102,7 @@ module.exports = (grunt) -> 'webfont' 'sass' 'autoprefixer' + 'shell:duo' 'responsive_images:thumbnails' 'browserSync' 'watch' @@ -120,6 +121,7 @@ module.exports = (grunt) -> 'autoprefixer:build' 'uncss:build' 'csso:build' + 'shell:duo' 'clean:styles' 'clean:temp' 'processhtml:build' diff --git a/package.json b/package.json index 7ce2eec0..9202f3b7 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "author": "LotusTM", "private": true, "devDependencies": { + "duo": "^0.11.2", "gmsmith": "^0.5.0", "grunt": "^0.4.5", "grunt-autoprefixer": "^3.0.0", @@ -21,6 +22,7 @@ "grunt-processhtml": "^0.3.7", "grunt-responsive-images": "^0.1.6", "grunt-scss-lint": "^0.3.6", + "grunt-shell": "^1.1.2", "grunt-size-report": "^0.1.1", "grunt-spritesmith": "^4.5.1", "grunt-tinypng": "^0.5.3", diff --git a/source/layouts/_scripts.nj b/source/layouts/_scripts.nj index f14aa073..5d90faf1 100644 --- a/source/layouts/_scripts.nj +++ b/source/layouts/_scripts.nj @@ -1,9 +1,5 @@ -{# - - #} - -{# - #} + + {#