mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Fix up some Gruntfile errors
This commit is contained in:
parent
4625d7126f
commit
b492c0d5c9
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
fs = require "fs"
|
fs = require "fs"
|
||||||
spawn = require("child_process").spawn
|
spawn = require("child_process").spawn
|
||||||
rimraf = require "rimraf"
|
rimraf = require "rimraf"
|
||||||
|
Path = require "path"
|
||||||
|
|
||||||
SERVICES = [{
|
SERVICES = [{
|
||||||
name: "web"
|
name: "web"
|
||||||
|
@ -63,7 +64,7 @@ module.exports = (grunt) ->
|
||||||
grunt.registerTask "update:#{service.name}", "Checkout and update the #{service.name} service", () ->
|
grunt.registerTask "update:#{service.name}", "Checkout and update the #{service.name} service", () ->
|
||||||
done = @async()
|
done = @async()
|
||||||
Helpers.updateService(service.name, done)
|
Helpers.updateService(service.name, done)
|
||||||
grunt.registerTask "run:#{service.name}", "Run the ShareLaTeX #{service.name} service", ["bunyan", "execute:web"]
|
grunt.registerTask "run:#{service.name}", "Run the ShareLaTeX #{service.name} service", ["bunyan", "execute:#{service.name}"]
|
||||||
|
|
||||||
grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services", ("install:#{service.name}" for service in SERVICES)
|
grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services", ("install:#{service.name}" for service in SERVICES)
|
||||||
grunt.registerTask 'install', 'install:all'
|
grunt.registerTask 'install', 'install:all'
|
||||||
|
@ -132,5 +133,5 @@ Helpers =
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
for file in fs.readdirSync("config-local")
|
for file in fs.readdirSync("config-local")
|
||||||
unless file == ".git"
|
unless file == ".git"
|
||||||
fs.symlinkSync("config-local/#{file}", "config/#{file}")
|
fs.symlinkSync(Path.resolve("config-local/#{file}"), "config/#{file}")
|
||||||
callback()
|
callback()
|
||||||
|
|
Loading…
Reference in a new issue