mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add postinstall message explaining how to use bin/install-services
This commit is contained in:
parent
230fe00c48
commit
2405b80e45
1 changed files with 14 additions and 1 deletions
|
@ -87,9 +87,11 @@ module.exports = (grunt) ->
|
||||||
grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services",
|
grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services",
|
||||||
[].concat(
|
[].concat(
|
||||||
("install:#{service.name}" for service in SERVICES)
|
("install:#{service.name}" for service in SERVICES)
|
||||||
)
|
).concat(['postinstall'])
|
||||||
|
|
||||||
grunt.registerTask 'install', 'install:all'
|
grunt.registerTask 'install', 'install:all'
|
||||||
|
grunt.registerTask 'postinstall', 'Explain postinstall steps', () ->
|
||||||
|
Helpers.postinstallMessage @async()
|
||||||
|
|
||||||
grunt.registerTask 'update:all', "Checkout and update all ShareLaTeX services",
|
grunt.registerTask 'update:all', "Checkout and update all ShareLaTeX services",
|
||||||
["check:make"].concat(
|
["check:make"].concat(
|
||||||
|
@ -147,6 +149,17 @@ module.exports = (grunt) ->
|
||||||
proc.on "close", () ->
|
proc.on "close", () ->
|
||||||
callback()
|
callback()
|
||||||
|
|
||||||
|
postinstallMessage: (callback = (error) ->) ->
|
||||||
|
grunt.log.write """
|
||||||
|
Services cloned:
|
||||||
|
#{service.name for service in SERVICES}
|
||||||
|
To install services run:
|
||||||
|
$ source bin/install-services
|
||||||
|
This will install the required node versions and run `npm install` for each service.
|
||||||
|
See https://github.com/sharelatex/sharelatex/pull/549 for more info.
|
||||||
|
"""
|
||||||
|
callback()
|
||||||
|
|
||||||
checkMake: (callback = (error) ->) ->
|
checkMake: (callback = (error) ->) ->
|
||||||
grunt.log.write "Checking make is installed... "
|
grunt.log.write "Checking make is installed... "
|
||||||
exec "make --version", (error, stdout, stderr) ->
|
exec "make --version", (error, stdout, stderr) ->
|
||||||
|
|
Loading…
Reference in a new issue