aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-07-15 00:44:25 -0700
committerAdam Soltys <[email protected]>2014-07-15 00:44:25 -0700
commit5255f026a68be987dbccc191900752d7e9daf1af (patch)
tree62e17454a7d364b39d9a7adca27fcfec32bd4a78 /Gruntfile.coffee
parent3b565f4f4dcea55779e00493e7cf507cf8392010 (diff)
downloadcoinos-server-5255f026a68be987dbccc191900752d7e9daf1af.tar.gz
coinos-server-5255f026a68be987dbccc191900752d7e9daf1af.zip
Add menu, change view engine, use Grunt
Diffstat (limited to 'Gruntfile.coffee')
-rw-r--r--Gruntfile.coffee34
1 files changed, 34 insertions, 0 deletions
diff --git a/Gruntfile.coffee b/Gruntfile.coffee
new file mode 100644
index 00000000..530fdb6a
--- /dev/null
+++ b/Gruntfile.coffee
@@ -0,0 +1,34 @@
+module.exports = (grunt) ->
+ grunt.initConfig(
+ pkg: grunt.file.readJSON('package.json')
+ less:
+ css:
+ options:
+ paths: ["public/css"]
+ files: [
+ expand: true
+ cwd: 'public/css'
+ src: ['*.less']
+ dest: 'public/css'
+ ext: '.css'
+ ]
+ coffee:
+ glob_to_multiple:
+ expand: true
+ cwd: 'public/js'
+ src: '**/*.coffee'
+ dest: 'public/js'
+ ext: '.js'
+ watch:
+ less:
+ files: ['public/css/**/*.less']
+ tasks: ['less']
+ coffee:
+ files: ['public/js/**/*.coffee']
+ tasks: ['coffee']
+ )
+
+ grunt.loadNpmTasks('grunt-contrib-coffee')
+ grunt.loadNpmTasks('grunt-contrib-less')
+ grunt.loadNpmTasks('grunt-contrib-watch')
+ grunt.registerTask('default', ['less', 'coffee']);