
The previous import of the version number from package.json looked like a named import, but was actually object destructuring that was supported by the rollup json plugin. This causes issues when importing patterns with webpack (as we do with our new NextJS based frontend) so this commit switches to importing JSON as the default export, which is also ok with webpack
43 lines
722 B
JavaScript
43 lines
722 B
JavaScript
import pkg from '../package.json'
|
|
|
|
export default {
|
|
name: 'legend',
|
|
version: pkg.version,
|
|
design: 'Joost De Cock',
|
|
code: 'Joost De Cock',
|
|
department: 'accessories',
|
|
type: 'pattern',
|
|
difficulty: 1,
|
|
tags: ['documentation'],
|
|
optionGroups: {
|
|
fit: ['fixme'],
|
|
},
|
|
measurements: [],
|
|
parts: [
|
|
'fabricLines',
|
|
'saLines',
|
|
'otherLines',
|
|
'sa',
|
|
'logo',
|
|
'notches',
|
|
'buttons',
|
|
'snaps',
|
|
'cutonfold',
|
|
'grainline',
|
|
'dimension',
|
|
'title',
|
|
'scalebox',
|
|
'lineWidths',
|
|
'lineStrokes',
|
|
'sizes',
|
|
],
|
|
options: {
|
|
focus: '',
|
|
// Optiongroups are needed for now, because workbench
|
|
fixme: {
|
|
pct: 50,
|
|
min: 0,
|
|
max: 100,
|
|
},
|
|
},
|
|
}
|