reconfigure now writes buildall to include all build steps
This commit is contained in:
parent
bff5980557
commit
a9449631bc
1 changed files with 13 additions and 3 deletions
|
@ -12,6 +12,7 @@ import {
|
|||
publishedTypes as types
|
||||
} from '../config/software/index.mjs'
|
||||
import { buildOrder } from '../config/build-order.mjs'
|
||||
import rootPackageJson from '../package.json'
|
||||
|
||||
// Working directory
|
||||
const cwd = process.cwd()
|
||||
|
@ -83,7 +84,7 @@ for (const pkg of Object.values(software)) {
|
|||
changelog(pkg, repo)
|
||||
)
|
||||
}
|
||||
log.write(chalk.green(" All done\n"))
|
||||
log.write(chalk.green(" Done\n"))
|
||||
|
||||
// Step 3: Generate overall CHANGELOG.md
|
||||
fs.writeFileSync(
|
||||
|
@ -91,15 +92,24 @@ fs.writeFileSync(
|
|||
changelog('global', repo)
|
||||
)
|
||||
|
||||
|
||||
|
||||
// Step 6: Generate build script for published software
|
||||
log.write(chalk.blueBright('Generating buildall node script...'))
|
||||
const buildSteps = buildOrder.map((step, i) => `lerna run cibuild_step${i}`);
|
||||
const buildAllCommand = buildSteps.join(' && ');
|
||||
const newRootPkgJson = {...rootPackageJson};
|
||||
newRootPkgJson.scripts.buildall = buildAllCommand;
|
||||
fs.writeFileSync(
|
||||
path.join(repo.path, 'package.json'),
|
||||
JSON.stringify(newRootPkgJson, null, 2) + '\n'
|
||||
)
|
||||
log.write(chalk.green(" Done\n"))
|
||||
|
||||
// Step 7: Generate tests for designs and plugins
|
||||
|
||||
|
||||
|
||||
// All done
|
||||
log.write(chalk.green(" All done\n"))
|
||||
process.exit()
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue