From 1a64b3d90eb74892a423f0ccd2e3f8d387ca1d9c Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio.bekerle@tugraz.at> Date: Wed, 17 Jul 2019 08:00:40 +0200 Subject: [PATCH] Add setup script to create symbolic links --- packages/auth/README.md | 10 ++++++++++ packages/auth/package.json | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/auth/README.md b/packages/auth/README.md index aebebbcf..c373f959 100644 --- a/packages/auth/README.md +++ b/packages/auth/README.md @@ -5,6 +5,16 @@ ## Local development ```bash +# get the source +git clone git@gitlab.tugraz.at:VPU/WebComponents/Auth.git +cd Auth +git submodule update --init + +# we are creating the symbolic links to our git sub-modules +# (there was no proper script to do this automatically before a "node install" +npm run setup + +# install dependencies npm install # constantly builds dist/bundle.js diff --git a/packages/auth/package.json b/packages/auth/package.json index 1af24ad8..cb70eab5 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -18,9 +18,10 @@ "@webcomponents/webcomponentsjs": "^2.2.10", "i18next": "^17.0.3", "lit-element": "^2.1.0", - "vpu-common": "file:./vendor/common" + "vpu-common": "*" }, "scripts": { + "setup": "cd node_modules; ln -sfn ../vendor/common vpu-common", "clean": "rm dist/*", "build": "npm run build-local", "build-local": "rollup -c", -- GitLab