MCPcopy
hub / github.com/dendronhq/dendron / generateBackendScripts

Function generateBackendScripts

genScripts.js:245–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245function generateBackendScripts() {
246 let prefix;
247 const scope = backendDependencies.join(" --scope ");
248
249 // bootstrap prod
250 prefix = "lerna bootstrap --scope ";
251 const bootstrapScriptProd = generateScript({
252 prefix,
253 suffix: " -- --production",
254 scope: backendDependenciesv2,
255 ignorePhase: true,
256 appendPast: false,
257 });
258 writeScript("./scripts/bootstrap-backend-prod.sh", bootstrapScriptProd);
259
260 // bootstrap init
261 prefix = "lerna bootstrap --scope ";
262 const bootstrapScript = generateScript({
263 prefix,
264 scope: backendDependenciesv2,
265 ignorePhase: false,
266 appendPast: true,
267 });
268 writeScript("./scripts/bootstrap-backend.sh", bootstrapScript);
269
270 // build dev
271 prefix = "lerna run build --parallel --scope ";
272 const buildBackendScript = generateScript({
273 prefix,
274 scope: backendDependenciesv2,
275 ignorePhase: false,
276 });
277 writeScript("./scripts/build-backend.sh", buildBackendScript);
278
279 // watch script
280 prefix = "lerna run watch --parallel --scope ";
281 const watchBackendScript = generateScript({
282 prefix,
283 scope: backendDependenciesv2,
284 ignorePhase: false,
285 });
286 writeScript("./scripts/watch-backend.sh", watchBackendScript);
287}

Callers

nothing calls this directly

Calls 2

generateScriptFunction · 0.85
writeScriptFunction · 0.85

Tested by

no test coverage detected