Skip to content

Commit

Permalink
feat(grunt): add project specific deploy task
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Jun 1, 2016
1 parent 1934283 commit 69766fb
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ module.exports = (grunt) ->
"cleanempty"
]

# Release new version
grunt.registerTask "release", "Build, bump and commit", (type) ->
grunt.task.run [
"bump-only:#{type or 'patch'}"
Expand All @@ -632,6 +631,17 @@ module.exports = (grunt) ->
"bump-commit"
]

grunt.registerTask "deploy-sparanoid", "Deploy to remote server (for sparanoid.com)", ->
if grunt.option("no-commit")
grunt.task.run [
"shell:amsf__deploy__sparanoid__copy_to_local"
]
else
grunt.task.run [
"shell:amsf__deploy__sparanoid__copy_to_local"
"shell:amsf__deploy__sparanoid__auto_commit"
]

grunt.registerTask "default", "Default task aka. build task", ->
grunt.task.run [
"build"
Expand All @@ -643,12 +653,6 @@ module.exports = (grunt) ->
"shell:amsf__deploy__rsync"
]
else if grunt.option("deploy") is "sparanoid"
if grunt.option("no-commit")
grunt.task.run [
"shell:amsf__deploy__sparanoid__copy_to_local"
]
else
grunt.task.run [
"shell:amsf__deploy__sparanoid__copy_to_local"
"shell:amsf__deploy__sparanoid__auto_commit"
]
grunt.task.run [
"deploy-sparanoid"
]

0 comments on commit 69766fb

Please sign in to comment.