Skip to content

Commit

Permalink
feat(grunt): update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Jun 3, 2016
1 parent 3493955 commit a519d61
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@ module.exports = (grunt) ->
"bump-commit"
]

grunt.registerTask "deploy-rsync", "Deploy to remote server via rsync", [
"shell:amsf__deploy__rsync"
]

grunt.registerTask "deploy-sparanoid", "Deploy to remote server (for sparanoid.com)", ->
if grunt.option("no-commit")
grunt.task.run [
Expand All @@ -642,17 +646,12 @@ module.exports = (grunt) ->
"shell:amsf__deploy__sparanoid__auto_commit"
]

grunt.registerTask "deploy", "Deploy to remote server", (type) ->
grunt.task.run [
"deploy-#{type or 'rsync'}"
]

grunt.registerTask "default", "Default task aka. build task", ->
grunt.task.run [
"build"
]

# Deploy options
if grunt.option("deploy") is "rsync"
grunt.task.run [
"shell:amsf__deploy__rsync"
]
else if grunt.option("deploy") is "sparanoid"
grunt.task.run [
"deploy-sparanoid"
]

0 comments on commit a519d61

Please sign in to comment.