-
-
Save fareesh/51188bcae63dd4964658 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (grunt) -> | |
# configuration | |
grunt.initConfig | |
# grunt sass | |
sass: | |
compile: | |
options: | |
style: 'expanded' | |
files: [ | |
expand: true | |
src: ['**/*.sass', '**/*.scss'] | |
dest: 'css' | |
ext: '.css' | |
] | |
# grunt coffee | |
coffee: | |
compile: | |
expand: true | |
src: ['**/*.coffee'] | |
dest: 'js' | |
ext: '.js' | |
options: | |
bare: true | |
preserve_dirs: true | |
# grunt slim | |
slim: | |
dist: | |
files: [{ | |
expand: true | |
src: ['**/*.slim'] | |
dest: '.' | |
ext: '.html' | |
}] | |
# grunt watch (or simply grunt) | |
watch: | |
html: | |
files: ['**/*.html'] | |
sass: | |
files: ['**/*.scss'] | |
tasks: ['sass'] | |
coffee: | |
files: ['**/*.coffee'] | |
tasks: ['coffee'] | |
slim: | |
files: ['**/*.slim'] | |
tasks: ['slim'] | |
options: | |
livereload: true | |
# grunt connect | |
connect: | |
server: | |
options: | |
open: true | |
# load plugins | |
grunt.loadNpmTasks 'grunt-contrib-sass' | |
grunt.loadNpmTasks 'grunt-contrib-coffee' | |
grunt.loadNpmTasks 'grunt-contrib-watch' | |
grunt.loadNpmTasks 'grunt-slim' | |
grunt.loadNpmTasks 'grunt-contrib-connect' | |
# tasks | |
grunt.registerTask 'default', ['sass', 'coffee', 'slim', 'connect', 'watch'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "PROJECT_NAME", | |
"description": "PROJECT_DESCRIPTION", | |
"author": "YOUR_NAME <[email protected]>", | |
"version": "0.1.0", | |
"devDependencies": { | |
"coffee-script": "~1.7.1", | |
"grunt": "~0.4.2", | |
"grunt-contrib-coffee": "~0.10.1", | |
"grunt-contrib-connect": "^0.7.1", | |
"grunt-contrib-sass": "~0.7.2", | |
"grunt-contrib-watch": "~0.5.3", | |
"grunt-slim": "^0.1.0" | |
}, | |
"license": "MIT" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment