From 41f8c6831bb91c0b0be1219b1566e59e48673465 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Nov 2015 23:57:34 -0800 Subject: Use bower, grunt and browserify instead of connect-assets --- Gruntfile.coffee | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'Gruntfile.coffee') 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') -- cgit v1.2.3