From d3f78e9349f735e6064b0fef606e407120301f9d Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sun, 3 Apr 2016 20:00:10 -0700 Subject: [PATCH] Update circle.ci to install grunt --- Gruntfile.coffee | 6 ++++-- circle.yml | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index b15e45c6c..b930d253f 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -159,9 +159,9 @@ module.exports = (grunt)-> grunt.registerTask 'default', ['clean', 'start'] - grunt.registerTask 'deploy:prod', ['dist', 'script:deploy:prod'] + grunt.registerTask 'deploy:prod', ['script:deploy:prod'] - grunt.registerTask 'deploy:staging', ['dist', 'script:deploy:staging'] + grunt.registerTask 'deploy:staging', ['script:deploy:staging'] grunt.registerTask 'dist', ['build', 'uglify', 'copy:build_to_dist', 'compress'] @@ -171,6 +171,8 @@ module.exports = (grunt)-> grunt.registerTask 'test', ['mochaTest'] + grunt.registerTask 'upload', ['dist', 'script:s3_upload'] + # Code Tasks ####################################################################################################### grunt.registerTask 'browserify:external', "Bundle 3rd-party libraries used in the app", -> diff --git a/circle.yml b/circle.yml index 7993b9897..8efca9612 100644 --- a/circle.yml +++ b/circle.yml @@ -1,12 +1,13 @@ dependencies: pre: - gem install sass --version ">= 3.4" + - npm install -g grunt-cli deployment: staging: - branch: master + branch: staging commands: - - ./scripts/deploy --staging + - grunt deploy:staging production: branch: production commands: - - ./scripts/deploy --production + - grunt deploy:prod