FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
etherpad/bin/installDeps.sh at develop · ether/etherpad · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ether
/
etherpad
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
3k
Star
18.5k
Code
Issues
12
Pull requests
10
Discussions
Actions
Projects
Wiki
Security and quality
8
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
etherpad
/
bin
/
installDeps.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
49 lines (37 loc) · 1.23 KB
Breadcrumbs
etherpad
/
bin
/
installDeps.sh
Copy path
File metadata and controls
executable file
·
49 lines (37 loc) · 1.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!
/bin/sh
#
Move to the Etherpad base directory.
MY_DIR=
$(
cd
"
${0
%/*
}
"
&&
pwd
-P
)
||
exit
1
cd
"
${MY_DIR}
/..
"
||
exit
1
#
Source constants and useful functions
.
bin/functions.sh
is_cmd pnpm
||
npm install pnpm -g
#
Is node installed?
#
Not checking io.js, default installation creates a symbolic link to node
is_cmd node
||
fatal
"
Please install node.js ( https://nodejs.org )
"
#
Check node version
require_minimal_version
"
nodejs
"
"
$(
get_program_version
"
node
"
)
"
\
"
$REQUIRED_NODE_MAJOR
"
"
$REQUIRED_NODE_MINOR
"
#
Get the name of the settings file
settings=
"
settings.json
"
a=
'
'
;
for
arg
in
"
$@
"
;
do
if
[
"
$a
"
=
"
--settings
"
]
||
[
"
$a
"
=
"
-s
"
]
;
then
settings=
$arg
;
fi
a=
$arg
done
#
Does a $settings exist? if not copy the template
if
[
!
-f
"
$settings
"
]
;
then
log
"
Copy the settings template to
$settings
...
"
cp settings.json.template
"
$settings
"
||
exit
1
fi
log
"
Installing dependencies...
"
if
[
-z
"
${ETHERPAD_PRODUCTION}
"
]
;
then
log
"
Installing dev dependencies with pnpm
"
pnpm --recursive i
||
exit
1
else
log
"
Installing production dependencies with pnpm
"
pnpm --recursive i --production
||
exit
1
fi
#
Remove all minified data to force node creating it new
log
"
Clearing minified cache...
"
rm -f var/minified
*
exit
0
Back
|
FazBrowse Home
|
New Git URL