From 44c5c3cf87d0379c4768254f6c6769381898b879 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 1 Apr 2021 10:18:45 +0100 Subject: [PATCH] Remove symlink dev script --- package.json | 2 +- scripts/symlinkDev.js | 44 ------------------------------------------- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100755 scripts/symlinkDev.js diff --git a/package.json b/package.json index 5a77ff9543..2ba5a99a93 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "nuke": "rimraf ~/.budibase && npm run restore", "clean": "lerna clean", "kill-port": "kill-port 4001", - "dev": "yarn run kill-port && node ./scripts/symlinkDev.js && lerna run --parallel dev:builder --concurrency 1", + "dev": "yarn run kill-port && lerna link && lerna run --parallel dev:builder --concurrency 1", "test": "lerna run test", "lint": "eslint packages", "lint:fix": "eslint --fix packages", diff --git a/scripts/symlinkDev.js b/scripts/symlinkDev.js deleted file mode 100755 index 2feb2b5ec6..0000000000 --- a/scripts/symlinkDev.js +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env node - -/** - This script symlinks the budibase component and client paths to the - ones that exist in your local development directories. This means you - can work your budibase apps but also change code for the components - and client library in real time. -*/ - -const fs = require("fs") -const { resolve } = require("path") -const rimraf = require("rimraf") -const { - budibaseTempDir, -} = require("../packages/server/src/utilities/budibaseDir") -const devDir = budibaseTempDir() - -rimraf.sync(devDir) -fs.mkdirSync(`${devDir}/@budibase`, { recursive: true }) - -const SYMLINK_PATHS = [ - { - symlink: `${devDir}/@budibase/standard-components`, - destination: resolve("packages/standard-components"), - }, - { - symlink: `${devDir}/budibase-client.js`, - destination: resolve("packages/client/dist/client.es.js"), - }, - { - symlink: `${devDir}/@budibase/string-templates`, - destination: resolve("packages/string-templates"), - }, - { - symlink: `${devDir}/@budibase/bbui`, - destination: resolve("packages/bbui"), - }, -] - -SYMLINK_PATHS.forEach(sym => { - fs.symlinkSync(sym.destination, sym.symlink) -}) - -console.log("Dev Symlinks Created Successfully.")