Skip to content

Commit

Permalink
feat(grunt): check if AMSF already cloned in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Aug 14, 2015
1 parent 749b0b3 commit b00158e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 14 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,24 @@ module.exports = (grunt) ->
"theme-upgrade"
]

grunt.registerTask "amsf-update", "Upgrade specific theme from AMSF cache to app", [
grunt.registerTask "amsf-update", "Upgrade AM", [
"gitpull:amsf__core__update_remote"
"copy:amsf__core__to_app"
]

grunt.registerTask "amsf-update", "Update ASMF", ->
# TODO: need better implement
if grunt.file.exists("_amsf/core/")
grunt.task.run [
"gitpull:amsf__core__update_remote"
"copy:amsf__core__to_app"
]
else
grunt.task.run [
"gitclone:amsf__core__add_remote"
"copy:amsf__core__to_app"
]

grunt.registerTask "build", "Build site with jekyll", [
"clean"
"coffeelint"
Expand Down
1 change: 0 additions & 1 deletion TODOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

- RSS feed template
- Cleanup `plugin_intense_class`
- update amsf
- try load-grunt-config
- handlinig favicons

0 comments on commit b00158e

Please sign in to comment.