From 4b76163e8ec2a6fa703caeae2c53f2421b3a7f42 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Mon, 4 Apr 2016 19:50:04 -0700 Subject: [PATCH] Remove needless deploy commands from build script --- Gruntfile.coffee | 20 +++----------------- package.json | 2 +- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index c3ffe333..27234a10 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -18,17 +18,17 @@ module.exports = (grunt)-> options: mode: 'gzip' files: [ - {expand: true, cwd:'./data', src:'**/*.cg', dest:'./dist/'} + {expand: true, cwd:'./data', src:'**/*.cg', dest:'./dist/data'} ] copy: data: files: [ - {expand:true, cwd:'./data/', src:'**/*', dest:'./build/'} + {expand:true, cwd:'./data', src:'**/*', dest:'./build/data'} ] build_to_dist: files: [ - {expand:true, cwd:'./build/', src:'**/*', dest:'./dist/'} + {expand:true, cwd:'./build', src:'**/*', dest:'./dist'} ] clean: @@ -60,12 +60,6 @@ module.exports = (grunt)-> grunt.registerTask 'default', 'run tests to verify data files', ['test'] - grunt.registerTask 'deploy:prod', 'deploy the project to production via CircleCI', - ['script:deploy:prod'] - - grunt.registerTask 'deploy:staging', 'deploy the project to staging via CircleCI', - ['script:deploy:staging'] - grunt.registerTask 'dist', 'build the project to be run from Amazon S3', ['build', 'copy:build_to_dist', 'compress'] @@ -89,14 +83,6 @@ module.exports = (grunt)-> # Script Tasks ##################################################################################################### - grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", -> - done = this.async() - grunt.util.spawn cmd:'./scripts/deploy', args:['--production'], opts:{stdio:'inherit'}, (error)-> done(error) - - grunt.registerTask 'script:deploy:staging', "deploy code by copying to the staging branch", -> - done = this.async() - grunt.util.spawn cmd:'./scripts/deploy', args:['--staging'], opts:{stdio:'inherit'}, (error)-> done(error) - grunt.registerTask 'script:s3_upload:prod', 'uploads all static content to S3', -> done = this.async() grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error) diff --git a/package.json b/package.json index 0fed9f06..7dede420 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "backbone": "^1.1.2", "chai": "^2.2.0", "coffee-script": "^1.9.2", - "crafting-guide": "^1.0.2", + "crafting-guide": "^3.0.0", "crafting-guide-common": "^1.3.0", "grunt": "^0.4.5", "grunt-contrib-clean": "^1.0.0",