diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:00:22 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:00:22 -0700 |
commit | 1f3f06284193fa6da12629966e0438f5a1f75bf6 (patch) | |
tree | 89d128bd5c06e12f7ce9e3c999021cc94adc98ad /Gruntfile.js | |
parent | 0af1886358e79b5e9f84fcdeb7017edbc185d3c7 (diff) | |
download | gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.zip gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.tar.gz gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.tar.bz2 |
Add base for generation
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..a00e2f3 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,32 @@ +module.exports = function (grunt) { + var path = require("path"); + + // Load NPM tasks + grunt.loadNpmTasks('grunt-contrib-less'); + + // Init GRUNT configuraton + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + less: { + development: { + options: { + compress: true, + yuicompress: true, + optimization: 2 + }, + files: { + "public/static/style.css": "public/stylesheets/main.less" + } + } + } + }); + + // Build + grunt.registerTask('build', [ + 'less' + ]); + + grunt.registerTask('default', [ + 'build' + ]); +};
\ No newline at end of file |