construction: Replaced create with Design constructor
This commit is contained in:
parent
f68a01988a
commit
0b29eb86ea
4 changed files with 306 additions and 516 deletions
800
packages/cathrin/package-lock.json
generated
800
packages/cathrin/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -48,10 +48,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@freesewing/plugin-bundle": "0.7.3",
|
||||
"freesewing": "0.29.4"
|
||||
"freesewing": "0.30.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.2.2",
|
||||
"@babel/core": "7.3.3",
|
||||
"@freesewing/antman": "0.3.0",
|
||||
"@freesewing/models": "0.7.1",
|
||||
"@freesewing/plugin-debug": "0.5.2",
|
||||
|
@ -60,7 +60,7 @@
|
|||
"@freesewing/plugin-theme": "0.18.4",
|
||||
"@freesewing/plugin-validate": "0.4.1",
|
||||
"husky": "1.3.1",
|
||||
"lint-staged": "8.1.3",
|
||||
"lint-staged": "8.1.4",
|
||||
"prettier": "1.16.4",
|
||||
"rimraf": "2.6.3",
|
||||
"rollup": "1.1.2",
|
||||
|
|
|
@ -16,12 +16,12 @@ export default {
|
|||
commonjs(),
|
||||
babel({
|
||||
exclude: "node_modules/**"
|
||||
}),
|
||||
terser({
|
||||
output: {
|
||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||
}
|
||||
})
|
||||
//terser({
|
||||
// output: {
|
||||
// preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||
// }
|
||||
//})
|
||||
],
|
||||
external: ["freesewing", "@freesewing/plugin-bundle"],
|
||||
output: {
|
||||
|
|
|
@ -11,10 +11,10 @@ import draftPanel4 from "./panel4";
|
|||
import draftPanel5 from "./panel5";
|
||||
import draftPanel6 from "./panel6";
|
||||
|
||||
// Create pattern
|
||||
const Cathrin = freesewing.create(config, plugins);
|
||||
// Create design
|
||||
const Cathrin = new freesewing.Design(config, plugins);
|
||||
|
||||
// Attach per-part draft methods to prototype
|
||||
// Attach draft methods to prototype
|
||||
Cathrin.prototype.draftBase = draftBase;
|
||||
Cathrin.prototype.draftPanels = draftPanels;
|
||||
Cathrin.prototype.draftPanel1 = draftPanel1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue