fix(new-design): More v3 tweaks
This commit is contained in:
parent
8e68bfc465
commit
09c838cc80
7 changed files with 7 additions and 7 deletions
|
@ -139,7 +139,7 @@ const copyTemplate = async (config, choices) => {
|
|||
if (!dirs[to]) await ensureDir(to)
|
||||
// Template out file
|
||||
const src = await readFile(from, 'utf-8')
|
||||
promises.push(writeFile(to, mustache.render(src, { name: choices.name })))
|
||||
promises.push(writeFile(to, mustache.render(src, { name: choices.name, tag: config.tag })))
|
||||
}
|
||||
|
||||
await Promise.all(promises)
|
||||
|
|
|
@ -5,7 +5,7 @@ import { back } from './back'
|
|||
import { front } from './front'
|
||||
|
||||
// Create the new design
|
||||
const Pattern = new freesewing.Design({
|
||||
const Pattern = new Design({
|
||||
data: {
|
||||
/*
|
||||
* If you like, you can add any data you want to your design.
|
||||
|
|
|
@ -7,7 +7,7 @@ import { topSleeve } from './topsleeve.mjs'
|
|||
import { underSleeve } from './undersleeve.mjs'
|
||||
|
||||
// Create the new design
|
||||
const Pattern = new freesewing.Design({
|
||||
const Pattern = new Design({
|
||||
data: {
|
||||
/*
|
||||
* If you like, you can add any data you want to your design.
|
||||
|
|
|
@ -6,7 +6,7 @@ import { front } from './front'
|
|||
import { sleeve } from './sleeve'
|
||||
|
||||
// Create the new design
|
||||
const Pattern = new freesewing.Design({
|
||||
const Pattern = new Design({
|
||||
data: {
|
||||
/*
|
||||
* If you like, you can add any data you want to your design.
|
||||
|
|
|
@ -6,7 +6,7 @@ import { front } from './front'
|
|||
import { sleeve } from './sleeve'
|
||||
|
||||
// Create the new design
|
||||
const Pattern = new freesewing.Design({
|
||||
const Pattern = new Design({
|
||||
data: {
|
||||
/*
|
||||
* If you like, you can add any data you want to your design.
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Design } from '@freesewing/core'
|
|||
import { box } from './box.mjs'
|
||||
|
||||
// Create the new design
|
||||
const Pattern = new freesewing.Design({
|
||||
const Pattern = new Design({
|
||||
data: {
|
||||
/*
|
||||
* If you like, you can add any data you want to your design.
|
||||
|
|
|
@ -5,7 +5,7 @@ import { back } from './back'
|
|||
import { front } from './front'
|
||||
|
||||
// Create the new design
|
||||
const Pattern = new freesewing.Design({
|
||||
const Pattern = new Design({
|
||||
data: {
|
||||
/*
|
||||
* If you like, you can add any data you want to your design.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue