summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js32
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