fix(lab): Update new-design steps, fixes#5207
This commit is contained in:
parent
5f806c4d85
commit
15d13a9ce6
1 changed files with 6 additions and 4 deletions
|
@ -10,8 +10,6 @@ import languages from '../config/languages.json' assert { type: 'json' }
|
||||||
import designs from '../config/software/designs.json' assert { type: 'json' }
|
import designs from '../config/software/designs.json' assert { type: 'json' }
|
||||||
import plugins from '../config/software/plugins.json' assert { type: 'json' }
|
import plugins from '../config/software/plugins.json' assert { type: 'json' }
|
||||||
|
|
||||||
console.log({ languages })
|
|
||||||
|
|
||||||
const type = process.argv[2]
|
const type = process.argv[2]
|
||||||
|
|
||||||
// Add new design
|
// Add new design
|
||||||
|
@ -53,7 +51,7 @@ async function addDesign() {
|
||||||
'wahid'
|
'wahid'
|
||||||
)} for a ${chalk.green('w')}aistcoat
|
)} for a ${chalk.green('w')}aistcoat
|
||||||
|
|
||||||
Bonus points for picking a name that embraces diversity 🌈 ✊
|
Bonus points for picking a name that embraces diversity 🌈 ✊🏾
|
||||||
`)
|
`)
|
||||||
|
|
||||||
const { name } = await prompts({
|
const { name } = await prompts({
|
||||||
|
@ -67,6 +65,8 @@ async function addDesign() {
|
||||||
console.log('\n' + ` Alright, let's add ${chalk.green(name)} 🪄`)
|
console.log('\n' + ` Alright, let's add ${chalk.green(name)} 🪄`)
|
||||||
createDesign(name)
|
createDesign(name)
|
||||||
execSync('npm run reconfigure')
|
execSync('npm run reconfigure')
|
||||||
|
console.log(` Installing & linking dependencies...`)
|
||||||
|
execSync('yarn install')
|
||||||
console.log(` All done 🎉`)
|
console.log(` All done 🎉`)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -212,10 +212,12 @@ function createDesign(name) {
|
||||||
|
|
||||||
// Add to designs config file
|
// Add to designs config file
|
||||||
designs[name] = {
|
designs[name] = {
|
||||||
description: description,
|
|
||||||
code: 'Coder name',
|
code: 'Coder name',
|
||||||
|
description: description,
|
||||||
design: 'Designer name',
|
design: 'Designer name',
|
||||||
difficulty: 1,
|
difficulty: 1,
|
||||||
|
lab: true,
|
||||||
|
org: false,
|
||||||
tags: ['tagname'],
|
tags: ['tagname'],
|
||||||
techniques: ['techname'],
|
techniques: ['techname'],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue