Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aficiomaquinas/0b6ec2994b8526df8d522e759a0271dc to your computer and use it in GitHub Desktop.
Save aficiomaquinas/0b6ec2994b8526df8d522e759a0271dc to your computer and use it in GitHub Desktop.
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