Created
October 31, 2013 15:09
-
-
Save nocksock/7251333 to your computer and use it in GitHub Desktop.
Grunt-Template for HTML and CSS-Stuff.
This file contains hidden or 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({ | |
pkg: grunt.file.readJSON('package.json'), | |
compass: { | |
dev: { | |
options: { | |
sassDir: 'sass', | |
cssDir: '.', | |
} | |
} | |
}, | |
autoprefixer: { | |
options: { | |
// default: | |
// browsers: ['> 1%', 'last 2 versions', 'ff 17', 'opera 12.1'] | |
}, | |
css: { | |
src: 'style.css' | |
} | |
}, | |
watch: { | |
compass: { | |
files: ['sass/*.scss'], | |
tasks: ['compass', 'autoprefixer'], | |
options: { | |
livereload: true | |
} | |
}, | |
livereload: { | |
options: { | |
livereload: true, | |
}, | |
files: [ | |
'js/*.js', | |
'**/*.php' | |
], | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-autoprefixer'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-contrib-compass'); | |
}; |
This file contains hidden or 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": "application-name", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "grunt watch" | |
}, | |
"dependencies": { | |
"node-compass": "~0.2.3", | |
"compass": "~0.1.0", | |
"grunt-contrib-compass": "~0.6.0", | |
"grunt": "~0.4.1", | |
"grunt-contrib-watch": "~0.5.3", | |
"grunt-express-server": "~0.4.5", | |
"grunt-autoprefixer": "~0.4.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment