Skip to content
This repository was archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
add stylus
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 24, 2015
1 parent 84d4bf8 commit d0ac920
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
26 changes: 22 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = function(grunt) {
'!stubmodule/**',
'!util/**'
],
deployDir = 'wwwroot/SGID',
deployDir = 'wwwroot/ugschemistry',
secrets,
sauceConfig = {
urls: ['http://127.0.0.1:8000/_SpecRunner.html'],
Expand Down Expand Up @@ -350,16 +350,33 @@ module.exports = function(grunt) {
}
}
},
stylus: {
main: {
options: {
compress: false
},
files: [{
expand: true,
cwd: 'src/',
src: ['app/**/*.styl'],
dest: 'src/',
ext: '.css'
}]
}
},
watch: {
jshint: {
files: jshintFiles,
tasks: ['newer:jshint:main', 'jasmine:main:build']
},
src: {
files: jshintFiles.concat(otherFiles),
options: {
livereload: true
}
options: { livereload: true }
},
stylus: {
files: 'src/app/**/*.styl',
tasks: ['stylus'],
options: { livereload: true }
}
}
});
Expand All @@ -377,6 +394,7 @@ module.exports = function(grunt) {
'newer:jshint:main',
'if-missing:esri_slurp:dev',
'connect',
'stylus',
'watch'
]);
grunt.registerTask('build-prod', [
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"grunt-contrib-imagemin": "^0",
"grunt-contrib-jasmine": "^0",
"grunt-contrib-jshint": "^0",
"grunt-contrib-stylus": "^0.21.0",
"grunt-contrib-watch": "^0",
"grunt-dojo": "^0",
"grunt-dojo": "^1.0.1",
"grunt-esri-slurp": "^1.4.3",
"grunt-if-missing": "^1",
"grunt-newer": "^0",
"grunt-newer": "^1.1.0",
"grunt-processhtml": "^0",
"grunt-saucelabs": "^8",
"grunt-ssh": "^0",
Expand Down

0 comments on commit d0ac920

Please sign in to comment.