mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use git repos
This commit is contained in:
parent
543c9f2878
commit
a6e998da7c
1 changed files with 20 additions and 15 deletions
|
@ -2,8 +2,13 @@ fs = require "fs"
|
||||||
exec = require("child_process").exec
|
exec = require("child_process").exec
|
||||||
spawn = require("child_process").spawn
|
spawn = require("child_process").spawn
|
||||||
|
|
||||||
WEB_REPO = "git@bitbucket.org:sharelatex/web-sharelatex.git"
|
SERVICES = [{
|
||||||
DOC_UPDATER_REPO = "git@bitbucket.org:sharelatex/documentupdater-sharelatex.git"
|
name: "web"
|
||||||
|
repo: "git@github.com:sharelatex/web-sharelatex.git"
|
||||||
|
}, {
|
||||||
|
name: "document-updater"
|
||||||
|
repo: "git@github.com:sharelatex/document-updater-sharelatex.git"
|
||||||
|
}]
|
||||||
|
|
||||||
|
|
||||||
module.exports = (grunt) ->
|
module.exports = (grunt) ->
|
||||||
|
@ -46,20 +51,20 @@ module.exports = (grunt) ->
|
||||||
"Misc": [
|
"Misc": [
|
||||||
"help"
|
"help"
|
||||||
]
|
]
|
||||||
|
"Install tasks": ("install:#{service.name}" for service in SERVICES).concat("install:all")
|
||||||
|
"Update tasks": ("update:#{service.name}" for service in SERVICES).concat("update:all")
|
||||||
|
|
||||||
grunt.registerTask 'install:web', "Download and set up the web-sharelatex service", () ->
|
for service in SERVICES
|
||||||
|
do (service) ->
|
||||||
|
grunt.registerTask "install:#{service.name}", "Download and set up the #{service.name} service", () ->
|
||||||
done = @async()
|
done = @async()
|
||||||
Helpers.installService(WEB_REPO, "web", done)
|
Helpers.installService(service.repo, service.name, done)
|
||||||
grunt.registerTask 'install:document-updater', "Download and set up the document-updater-sharelatex service", () ->
|
grunt.registerTask "update:#{service.name}", "Checkout and update the #{service.name} service", () ->
|
||||||
done = @async()
|
done = @async()
|
||||||
Helpers.installService(DOC_UPDATER_REPO, "document-updater", done)
|
Helpers.updateService(service.name, done)
|
||||||
|
|
||||||
grunt.registerTask 'update:web', "Checkout and update the web-sharelatex service", () ->
|
grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services", ("install:#{service.name}" for service in SERVICES)
|
||||||
done = @async()
|
grunt.registerTask 'update:all', "Checkout and update all ShareLaTeX services", ("update:#{service.name}" for service in SERVICES)
|
||||||
Helpers.updateService("web", done)
|
|
||||||
grunt.registerTask 'update:document-updater', "Checkout and update the document-updater-sharelatex service", () ->
|
|
||||||
done = @async()
|
|
||||||
Helpers.updateService("document-updater", done)
|
|
||||||
|
|
||||||
grunt.registerTask 'help', 'Display this help list', 'availabletasks'
|
grunt.registerTask 'help', 'Display this help list', 'availabletasks'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue