use grunt to make compiles and cache dirs

This commit is contained in:
Henry Oswald
2017-08-07 16:21:37 +01:00
parent fdc22c9cd2
commit 7cd81ac3df
2 changed files with 16 additions and 9 deletions

View File

@@ -46,6 +46,11 @@ module.exports = (grunt) ->
app:
src: "app.js"
mkdir:
all:
options:
create: ["cache", "compiles"]
mochaTest:
unit:
options:
@@ -70,6 +75,7 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-shell'
grunt.loadNpmTasks 'grunt-execute'
grunt.loadNpmTasks 'grunt-bunyan'
grunt.loadNpmTasks 'grunt-mkdir'
grunt.registerTask 'compile:bin', () ->
callback = @async()
@@ -93,6 +99,6 @@ module.exports = (grunt) ->
grunt.registerTask 'install', 'compile:app'
grunt.registerTask 'default', ['run']
grunt.registerTask 'default', ['mkdir', 'run']