1
0
Fork 0

chore: Move meta-info from design config to repo config

This commit is contained in:
Joost De Cock 2022-08-27 13:25:42 +02:00
parent 5adca6da4f
commit 25bbca5fb2
3 changed files with 357 additions and 60 deletions

View file

@ -14,6 +14,7 @@ import {
} from '../config/software/index.mjs'
import { buildOrder } from '../config/build-order.mjs'
import rootPackageJson from '../package.json' assert { type: 'json' }
import { capitalize } from '../sites/shared/utils.mjs'
// Working directory
const cwd = process.cwd()
@ -111,7 +112,7 @@ log.write(chalk.green(" Done\n"))
for (const design in designs) {
fs.writeFileSync(
path.join(repo.path, 'designs', design, 'tests', 'shared.test.mjs'),
mustache.render(repo.templates.designTests, { name: design })
mustache.render(repo.templates.designTests, { name: design, Name: capitalize(design) })
)
}
for (const plugin in plugins) {