Remove needless deploy commands from build script

This commit is contained in:
Andrew Miner
2016-04-04 19:50:04 -07:00
parent 9a4d85d98b
commit 4b76163e8e
2 changed files with 4 additions and 18 deletions
+3 -17
View File
@@ -18,17 +18,17 @@ module.exports = (grunt)->
options: options:
mode: 'gzip' mode: 'gzip'
files: [ files: [
{expand: true, cwd:'./data', src:'**/*.cg', dest:'./dist/'} {expand: true, cwd:'./data', src:'**/*.cg', dest:'./dist/data'}
] ]
copy: copy:
data: data:
files: [ files: [
{expand:true, cwd:'./data/', src:'**/*', dest:'./build/'} {expand:true, cwd:'./data', src:'**/*', dest:'./build/data'}
] ]
build_to_dist: build_to_dist:
files: [ files: [
{expand:true, cwd:'./build/', src:'**/*', dest:'./dist/'} {expand:true, cwd:'./build', src:'**/*', dest:'./dist'}
] ]
clean: clean:
@@ -60,12 +60,6 @@ module.exports = (grunt)->
grunt.registerTask 'default', 'run tests to verify data files', grunt.registerTask 'default', 'run tests to verify data files',
['test'] ['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', grunt.registerTask 'dist', 'build the project to be run from Amazon S3',
['build', 'copy:build_to_dist', 'compress'] ['build', 'copy:build_to_dist', 'compress']
@@ -89,14 +83,6 @@ module.exports = (grunt)->
# Script Tasks ##################################################################################################### # 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', -> grunt.registerTask 'script:s3_upload:prod', 'uploads all static content to S3', ->
done = this.async() done = this.async()
grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error) grunt.util.spawn cmd:'./scripts/s3_upload', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)
+1 -1
View File
@@ -28,7 +28,7 @@
"backbone": "^1.1.2", "backbone": "^1.1.2",
"chai": "^2.2.0", "chai": "^2.2.0",
"coffee-script": "^1.9.2", "coffee-script": "^1.9.2",
"crafting-guide": "^1.0.2", "crafting-guide": "^3.0.0",
"crafting-guide-common": "^1.3.0", "crafting-guide-common": "^1.3.0",
"grunt": "^0.4.5", "grunt": "^0.4.5",
"grunt-contrib-clean": "^1.0.0", "grunt-contrib-clean": "^1.0.0",