Skip to content

Commit

Permalink
Adding grunt and a task to compile stylus files
Browse files Browse the repository at this point in the history
  • Loading branch information
jeduan committed Feb 4, 2014
1 parent a6e05cb commit b6cb190
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = function(grunt) {
grunt.initConfig({
stylus: {
dev: {
files: {
'public/css/main.css': 'public/stylus/main.styl',
'public/css/admin.css': 'public/stylus/admin.styl',
}
}
},
watch: {
options: {
livereload: true
},
stylus: {
files: ['public/stylus/**/*.styl'],
tasks: ['stylus:dev']
}
}
})
grunt.loadNpmTasks('grunt-contrib-stylus')
grunt.loadNpmTasks('grunt-contrib-watch')

grunt.registerTask('styles', ['stylus:dev', 'watch'])
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
},
"engines": {
"node": "0.10.x"
},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-stylus": "~0.11.0",
"grunt-contrib-watch": "~0.5.3"
}
}

0 comments on commit b6cb190

Please sign in to comment.