the symlink from node_modules/ep_etherpad-lite to ./src is part of the git repository

This commit is contained in:
webzwo0i 2021-01-02 01:05:41 +01:00
parent 8793c4e225
commit 1702c7c34e
8 changed files with 11 additions and 20 deletions

View file

@ -35,13 +35,11 @@ fi
log "Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient."
(
mkdir -p node_modules
cd node_modules
[ -e ep_etherpad-lite ] || ln -s ../src ep_etherpad-lite
cd ep_etherpad-lite
npm ci
) || {
rm -rf src/node_modules
rm -rf node_modules
git restore node_modules/ep_etherpad-lite
exit 1
}

View file

@ -9,15 +9,8 @@ cmd /C node -e "" || ( echo "Please install node.js ( https://nodejs.org )" && e
echo _
echo Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
mkdir node_modules
cd /D node_modules
mklink /D "ep_etherpad-lite" "..\src"
cd /D "ep_etherpad-lite"
cmd /C npm ci || exit /B 1
cd /D "%~dp0\.."
echo _
echo Clearing cache...
del /S var\minified*

View file

@ -38,7 +38,7 @@ jobs:
# Etherpad plugins from piggybacking off of ep_etherpad-lite's
# devDependencies. If we had that, we could change this line to only
# install production dependencies.
- run: cd ../etherpad-lite/src && npm ci
- run: cd ../etherpad-lite && npm ci
- run: npm ci
# This runs some sanity checks and creates a symlink at
# node_modules/ep_etherpad-lite that points to ../../etherpad-lite/src.

View file

@ -42,7 +42,7 @@ jobs:
- "mv ../[plugin_name] node_modules"
- "bin/installDeps.sh"
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
- "cd src && npm install && cd -"
- "npm install"
script:
- "tests/frontend/travis/runnerBackend.sh"
- name: "Test the Frontend"