aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2015-11-28 23:57:34 -0800
committerAdam Soltys <[email protected]>2015-11-30 21:10:59 -0800
commit41f8c6831bb91c0b0be1219b1566e59e48673465 (patch)
tree39626cf1a8fe7b8d73f750ccaf433bfa8c425d6b /Gruntfile.coffee
parentf2bff842cbe16c18923b905f70ed168096648727 (diff)
downloadcoinos-server-41f8c6831bb91c0b0be1219b1566e59e48673465.tar.gz
coinos-server-41f8c6831bb91c0b0be1219b1566e59e48673465.zip
Use bower, grunt and browserify instead of connect-assets
Diffstat (limited to 'Gruntfile.coffee')
-rw-r--r--Gruntfile.coffee25
1 files changed, 23 insertions, 2 deletions
diff --git a/Gruntfile.coffee b/Gruntfile.coffee
index 977b25e5..66f35542 100644
--- a/Gruntfile.coffee
+++ b/Gruntfile.coffee
@@ -1,6 +1,13 @@
module.exports = (grunt) ->
grunt.initConfig(
pkg: grunt.file.readJSON('package.json')
+ coffeeify:
+ src:
+ expand: true
+ cwd: 'public/js'
+ src: ['*.coffee']
+ dest: 'public/js'
+ ext: '.js'
coffee:
server:
expand: true
@@ -8,12 +15,26 @@ module.exports = (grunt) ->
src: '**/*.coffee'
dest: '.'
ext: '.js'
+ less:
+ options:
+ paths: ["public/css"]
+ src:
+ expand: true
+ cwd: "public/css"
+ src: "*.less"
+ dest: 'public/css'
+ ext: ".css"
watch:
+ less:
+ files: ['public/css/*.less']
+ tasks: ['less']
coffee:
files: ['**/*.coffee']
- tasks: ['coffee']
+ tasks: ['coffee', 'coffeeify']
)
+ grunt.loadNpmTasks('grunt-coffeeify')
+ grunt.loadNpmTasks('grunt-contrib-less')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-watch')
- grunt.registerTask('default', ['coffee']);
+ grunt.registerTask('default', 'watch')