construction: Replaced create with Design constructor
This commit is contained in:
parent
bbe1c59bdc
commit
496310ca1e
4 changed files with 305 additions and 515 deletions
800
packages/tamiko/package-lock.json
generated
800
packages/tamiko/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",
|
||||
|
|
|
@ -14,12 +14,12 @@ export default {
|
|||
json(),
|
||||
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", "@freesewing/brian"],
|
||||
output: {
|
||||
|
|
|
@ -4,8 +4,8 @@ import config from "../config";
|
|||
// Parts
|
||||
import draftTop from "./top";
|
||||
|
||||
// Create pattern
|
||||
const Tamiko = freesewing.create(config, plugins);
|
||||
// Create design
|
||||
const Tamiko = new freesewing.Design(config, plugins);
|
||||
|
||||
// Part draft method
|
||||
Tamiko.prototype.draftTop = part => draftTop(part);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue