diff options
| author | Adam Soltys <[email protected]> | 2014-07-20 11:24:09 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2014-07-20 11:40:36 -0700 |
| commit | 51daca704f27e59462c6d8b1731867007c8fd273 (patch) | |
| tree | e573e97c4704710ff1fd8dbd5ff033504847890a /Gruntfile.js | |
| parent | 9b8d66d8a7c9417132358ac2b0f0dbfa4fcd9fcd (diff) | |
| download | coinos-server-51daca704f27e59462c6d8b1731867007c8fd273.tar.gz coinos-server-51daca704f27e59462c6d8b1731867007c8fd273.zip | |
Precompile all coffeescript
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 00000000..a7a54128 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,47 @@ +(function() { + module.exports = function(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: '.', + src: '**/*.coffee', + dest: '.', + ext: '.js' + } + }, + watch: { + less: { + files: ['public/css/**/*.less'], + tasks: ['less'] + }, + coffee: { + files: ['**/*.coffee'], + tasks: ['coffee'] + } + } + }); + grunt.loadNpmTasks('grunt-contrib-coffee'); + grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-watch'); + return grunt.registerTask('default', ['less', 'coffee']); + }; + +}).call(this); |
