1
0
Fork 0

fix(new-design): More v3 tweaks

This commit is contained in:
Joost De Cock 2022-10-08 04:24:49 +02:00
parent 8e68bfc465
commit 09c838cc80
7 changed files with 7 additions and 7 deletions

View file

@ -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)

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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.