Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
- [grunt] introduce shell:duo task to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Apr 26, 2015
1 parent 7ca66b4 commit 8194086
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ npm-debug.log
build

## Temporary folder
temp
temp
components
2 changes: 2 additions & 0 deletions gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ module.exports = (grunt) ->
'webfont'
'sass'
'autoprefixer'
'shell:duo'
'responsive_images:thumbnails'
'browserSync'
'watch'
Expand All @@ -120,6 +121,7 @@ module.exports = (grunt) ->
'autoprefixer:build'
'uncss:build'
'csso:build'
'shell:duo'
'clean:styles'
'clean:temp'
'processhtml:build'
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
8 changes: 2 additions & 6 deletions source/layouts/_scripts.nj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{# <!-- jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ path.scripts }}/vendor/jquery-1.11.1.min.js"><\/script>')</script> #}

{# <!-- Site-specific -->
<script src="{{ path.scripts }}/main.js"></script> #}
<!-- Main site logic -->
<script src="{{ path.scripts }}/main.js"></script>

{# <!-- Google Analytics -->
<script>
Expand Down
5 changes: 5 additions & 0 deletions source/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var $ = require('components/jquery');

$(function() {
console.log('jQuery version is: ' + $().jquery);
});
12 changes: 12 additions & 0 deletions tasks/grunt-shell.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
###
Shell
https://github.com/sindresorhus/grunt-shell
Run shell commands
###
module.exports = ->
@config 'shell',
duo:
command: 'duo
-r <%= path.source.scripts %>
-o ./../../<%= path.build.scripts %>
main.js'

0 comments on commit 8194086

Please sign in to comment.