mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-19 15:01:06 +08:00
feat: Add —no-next-build option to CLI build command.
This commit is contained in:
parent
9cc0b7280c
commit
9b565f4950
@ -32,7 +32,9 @@ async function build({ context }) {
|
||||
await installServer({ context, directory });
|
||||
await runLowdefyBuild({ context, directory });
|
||||
await installServer({ context, directory });
|
||||
await runNextBuild({ context, directory });
|
||||
if (context.options.nextBuild !== false) {
|
||||
await runNextBuild({ context, directory });
|
||||
}
|
||||
await context.sendTelemetry({ sendTypes: true });
|
||||
context.print.succeed(`Build successful.`);
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ program
|
||||
'Change config directory. Default is the current working directory.'
|
||||
)
|
||||
.option('--disable-telemetry', 'Disable telemetry.')
|
||||
.option('--no-next-build', 'Do not build the Next.js server.')
|
||||
.option(
|
||||
'--package-manager <package-manager>',
|
||||
'The package manager to use. Options are "npm" or "yarn".'
|
||||
|
@ -61,7 +61,7 @@ let print;
|
||||
function createPrint() {
|
||||
// TODO: Add debug
|
||||
if (print) return print;
|
||||
if (process.env.CI === 'true') {
|
||||
if (process.env.CI === 'true' || process.env.CI === '1') {
|
||||
print = createBasicPrint();
|
||||
return print;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user