mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
feat: add no-build to ./nodebb setup
This commit is contained in:
@@ -167,6 +167,7 @@ program
|
||||
program
|
||||
.command('setup [config]')
|
||||
.description('Run the NodeBB setup script, or setup with an initial config')
|
||||
.option('--no-build', 'Run setup without building assets')
|
||||
.action(function (initConfig) {
|
||||
if (initConfig) {
|
||||
try {
|
||||
|
||||
@@ -33,7 +33,11 @@ function setup(initConfig) {
|
||||
prestart.loadConfig(configFile);
|
||||
next();
|
||||
},
|
||||
build.buildAll,
|
||||
function (next) {
|
||||
if (!nconf.get('no-build')) {
|
||||
build.buildAll(next);
|
||||
}
|
||||
}
|
||||
], function (err, data) {
|
||||
// Disregard build step data
|
||||
data = data[0];
|
||||
|
||||
Reference in New Issue
Block a user