Remove symlink dev script
This commit is contained in:
parent
23641a5d56
commit
44c5c3cf87
|
@ -26,7 +26,7 @@
|
||||||
"nuke": "rimraf ~/.budibase && npm run restore",
|
"nuke": "rimraf ~/.budibase && npm run restore",
|
||||||
"clean": "lerna clean",
|
"clean": "lerna clean",
|
||||||
"kill-port": "kill-port 4001",
|
"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",
|
"test": "lerna run test",
|
||||||
"lint": "eslint packages",
|
"lint": "eslint packages",
|
||||||
"lint:fix": "eslint --fix packages",
|
"lint:fix": "eslint --fix packages",
|
||||||
|
|
|
@ -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.")
|
|
Loading…
Reference in New Issue