25 lines
698 B
JavaScript
25 lines
698 B
JavaScript
// Import Design constructor
|
|
import { Design } from '@freesewing/core'
|
|
import { data } from '../data.mjs'
|
|
import { i18n } from '../i18n/index.mjs'
|
|
// Import parts
|
|
import { front } from './front.mjs'
|
|
import { back } from './back.mjs'
|
|
import { raglanSleeve } from './raglansleeve.mjs'
|
|
import { neckband } from './neckband.mjs'
|
|
|
|
// Create the new design
|
|
const Shelly = new Design({
|
|
data,
|
|
// A list of parts is all that is required.
|
|
parts: [front, back, raglanSleeve, neckband],
|
|
})
|
|
|
|
/*
|
|
* Named exports
|
|
*
|
|
* We export the design itself as well as each part individually.
|
|
* This allows us to re-use these parts in other designs.
|
|
*/
|
|
|
|
export { front, back, raglanSleeve, neckband, Shelly, i18n }
|