Created
March 4, 2017 19:31
-
-
Save aficiomaquinas/0b6ec2994b8526df8d522e759a0271dc 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 = function(grunt) { | |
grunt.initConfig({ | |
compass: { | |
options: { | |
sassDir: "src/sass", | |
cssDir: "src/css", | |
imagesDir: "src/img", | |
fontsDir: "src/fonts", | |
javascriptsDir: "src/js" | |
}, | |
dev: { | |
options: { | |
relativeAssets: true | |
} | |
} | |
}, | |
jshint: { | |
all: { | |
options: { | |
curly: false, | |
undef: true, | |
browser: true | |
}, | |
files: { | |
src: ["src/js/**/*.js"] | |
} | |
} | |
}, | |
watch: { | |
sass: { | |
files: "src/sass/**/*.{sass,scss}", | |
tasks: ["compass:dev"] | |
}, | |
js: { | |
files: "src/js/**/*.js", | |
tasks: ["jshint:all"] | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-compass'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.registerTask('default', ["compass:dev", "jshint:all"]); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment