-
Notifications
You must be signed in to change notification settings - Fork 674
Expand file tree
/
Copy pathsetupProject.js
More file actions
29 lines (24 loc) · 998 Bytes
/
setupProject.js
File metadata and controls
29 lines (24 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import chalk from "chalk";
import execa from "execa";
const { green } = chalk;
// Set up environment files. This can be executed separately as well, via "yarn setup-env-files".
await import("./setupEnvFiles.js");
// Build all packages in the "packages" workspace.
console.log(`🏗 Building packages...`);
try {
await execa("yarn", ["build"], {
stdio: "inherit"
});
console.log(`✅️ Packages were built successfully!`);
} catch (err) {
console.log(`🚨 Failed to build packages: ${err.message}`);
}
console.log();
console.log(`🏁 Your repo is ready!`);
console.log(`To completely deploy the project, run ${green("yarn webiny deploy")}.`);
console.log(
`Alternatively, to deploy a single project application, run ${green("yarn webiny deploy {folder} --env {env}")} command, for example: ${green("yarn webiny deploy apps/api --env dev")}.`
);
console.log(
"To learn more, visit https://www.webiny.com/docs/how-to-guides/deployment/deploy-your-project."
);