1
0
Fork 0

chore: Reconfigure packages

This commit is contained in:
Joost De Cock 2022-09-28 21:06:47 +02:00
parent afa93d01ea
commit d31b0f5108
89 changed files with 695 additions and 613 deletions

View file

@ -37,7 +37,8 @@ const repo = {
changelog: readTemplateFile('changelog.dflt.md'),
readme: readTemplateFile('readme.dflt.md'),
build: readTemplateFile('build.dflt.mjs'),
eslint: readTemplateFile('eslintrc.yml'),
// Removed in favor of central config file. Keeping just in case
//eslint: readTemplateFile('eslintrc.yml'),
pluginTests: readTemplateFile('plugin.test.mjs'),
designTests: readTemplateFile('design.test.mjs.mustache'),
data: readTemplateFile('data.dflt.mjs.mustache'),
@ -89,10 +90,10 @@ for (const pkg of Object.values(software)) {
repo.templates.build
)
}
fs.writeFileSync(
path.join(cwd, pkg.folder, pkg.name, '.eslintrc.yml'),
repo.templates.eslint
)
//fs.writeFileSync(
// path.join(cwd, pkg.folder, pkg.name, '.eslintrc.yml'),
// repo.templates.eslint
//)
fs.writeFileSync(
path.join(cwd, pkg.folder, pkg.name, 'CHANGELOG.md'),
changelog(pkg)