1
0
Fork 0

🚧 Bumping alpha pre-release

This commit is contained in:
Joost De Cock 2019-05-02 12:40:03 +02:00
parent 6b6f6fd7cd
commit bca5deedb3
62 changed files with 477 additions and 358 deletions

View file

@ -56,6 +56,9 @@ create-freesewing-pattern:
"parse-git-config": "^3.0.0" "parse-git-config": "^3.0.0"
"validate-npm-package-name": "^3.0.0" "validate-npm-package-name": "^3.0.0"
"which": "^1.3.1" "which": "^1.3.1"
i18n:
peer:
"@freesewing/pattern-info": "^{{version}}"
mui-theme: mui-theme:
peer: peer:
"@material-ui/core": "^3.9.3" "@material-ui/core": "^3.9.3"
@ -80,6 +83,9 @@ patterns:
"@freesewing/tamiko": "^{{version}}" "@freesewing/tamiko": "^{{version}}"
"@freesewing/trayvon": "^{{version}}" "@freesewing/trayvon": "^{{version}}"
"@freesewing/wahid": "^{{version}}" "@freesewing/wahid": "^{{version}}"
peer:
"@freesewing/core": "^{{version}}"
"@freesewing/plugin-bundle": "^{{version}}"
simon: simon:
peer: peer:
"@freesewing/brian": "^{{version}}" "@freesewing/brian": "^{{version}}"

View file

@ -18,6 +18,7 @@ jaeger: "A FreeSewing pattern for a sport coat style jacket"
models: "Body measurements data for a range of default sizes" models: "Body measurements data for a range of default sizes"
mui-theme: "A Material-UI theme for FreeSewing web UIs" mui-theme: "A Material-UI theme for FreeSewing web UIs"
patterns: "An umbrella package for all FreeSewing patterns" patterns: "An umbrella package for all FreeSewing patterns"
pattern-info: "Information about available freesewing patterns"
plugin-banner: "A FreeSewing plugin to repeat text on a path" plugin-banner: "A FreeSewing plugin to repeat text on a path"
plugin-bundle: "An umbrella package of 8 essential FreeSewing build-time plugins" plugin-bundle: "An umbrella package of 8 essential FreeSewing build-time plugins"
plugin-bust: "A FreeSewing plugin that helps with bust-adjusting menswear patterns" plugin-bust: "A FreeSewing plugin that helps with bust-adjusting menswear patterns"

View file

@ -5,7 +5,8 @@ _:
build: "npm run clean && npm run nodebuild && npm run modulebuild" build: "npm run clean && npm run nodebuild && npm run modulebuild"
test: "echo \"{{name}}: No tests configured. Perhaps you'd like to do this?\" && exit 0" test: "echo \"{{name}}: No tests configured. Perhaps you'd like to do this?\" && exit 0"
pubtest: "npm publish --registry http://localhost:6662" pubtest: "npm publish --registry http://localhost:6662"
publish: "npm build && npm publish --access=public --tag=alpha" pubforce: "npm publish"
symlink: "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
_types: _types:
patterns: patterns:
plugins: plugins:
@ -24,6 +25,8 @@ core:
test: "BABEL_ENV=production nyc mocha tests/*.test.js" test: "BABEL_ENV=production nyc mocha tests/*.test.js"
report: "BABEL_ENV=production nyc report --reporter=html mocha --compilers js:babel-core/register tests/*.test.js" report: "BABEL_ENV=production nyc report --reporter=html mocha --compilers js:babel-core/register tests/*.test.js"
coverage: "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov" coverage: "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
pattern-info:
prebuild: "node src/prebuild.js"
workbench: workbench:
test: "cross-env CI=1 react-scripts test --env=jsdom" test: "cross-env CI=1 react-scripts test --env=jsdom"
test:watch: "react-scripts test --env=jsdom" test:watch: "react-scripts test --env=jsdom"

View file

@ -29,12 +29,13 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"aaron: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"aaron: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/brian": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/brian": "^2.0.0-alpha.3"
}, },
"files": [ "files": [
"dist/*", "dist/*",

View file

@ -1,7 +1,7 @@
import freesewing from "@freesewing/core"; import freesewing from "@freesewing/core";
import Brian from "@freesewing/brian"; import Brian from "@freesewing/brian";
import plugins from "@freesewing/plugin-bundle"; import plugins from "@freesewing/plugin-bundle";
import config from "../config"; import config from "./config";
// Parts // Parts
import draftBack from "./back"; import draftBack from "./back";
import draftFront from "./front"; import draftFront from "./front";

View file

@ -29,12 +29,13 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"bent: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"bent: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/brian": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/brian": "^2.0.0-alpha.3"
}, },
"files": [ "files": [
"dist/*", "dist/*",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"brian: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"brian: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"bruce: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"bruce: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,15 +29,16 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"carlita: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"carlita: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/bent": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/carlton": "^2.0.0-alpha.2", "@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/bent": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2", "@freesewing/carlton": "^2.0.0-alpha.3",
"@freesewing/plugin-bust": "^2.0.0-alpha.2", "@freesewing/plugin-bust": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2" "@freesewing/plugin-buttons": "^2.0.0-alpha.3"
}, },
"files": [ "files": [
"dist/*", "dist/*",

View file

@ -29,13 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"carlton: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"carlton: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/bent": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2", "@freesewing/bent": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2" "@freesewing/plugin-buttons": "^2.0.0-alpha.3"
}, },
"files": [ "files": [
"dist/*", "dist/*",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"cathrin: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"cathrin: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -19,18 +19,19 @@
"clean": "rimraf dist", "clean": "rimraf dist",
"nodebuild": "BABEL_ENV=production rollup -c -o dist/index.js -f cjs", "nodebuild": "BABEL_ENV=production rollup -c -o dist/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o dist/index.mjs -f es", "modulebuild": "BABEL_ENV=production rollup -c -o dist/index.mjs -f es",
"SKIPbuild": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"components: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"components: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha", "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
"storybook": "start-storybook -p 6663" "storybook": "start-storybook -p 6663"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/i18n": "^2.0.0-alpha.2",
"@freesewing/patterns": "^2.0.0-alpha.2",
"@freesewing/utils": "^2.0.0-alpha.2",
"prop-types": "15.7.2",
"react": "^16.4.1", "react": "^16.4.1",
"prop-types": "15.7.2",
"@freesewing/patterns": "^2.0.0-alpha.3",
"@freesewing/i18n": "^2.0.0-alpha.3",
"@freesewing/utils": "^2.0.0-alpha.3",
"react-intl": "^2.8.0" "react-intl": "^2.8.0"
}, },
"files": [ "files": [
@ -45,14 +46,5 @@
"engines": { "engines": {
"node": ">=8.0.0", "node": ">=8.0.0",
"npm": ">=5" "npm": ">=5"
},
"dependencies": {
"@freesewing/i18n": "^2.0.0-alpha.3",
"@freesewing/utils": "^2.0.0-alpha.3",
"@material-ui/core": "^3.9.3",
"@material-ui/lab": "^3.0.0-alpha.30",
"@material-ui/styles": "^3.0.0-alpha.10",
"react": "^16.8.6",
"react-intl": "^2.8.0"
} }
} }

View file

@ -30,7 +30,8 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "BABEL_ENV=production nyc mocha tests/*.test.js", "test": "BABEL_ENV=production nyc mocha tests/*.test.js",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha", "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
"report": "BABEL_ENV=production nyc report --reporter=html mocha --compilers js:babel-core/register tests/*.test.js", "report": "BABEL_ENV=production nyc report --reporter=html mocha --compilers js:babel-core/register tests/*.test.js",
"coverage": "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov" "coverage": "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
}, },

View file

@ -1,32 +1,45 @@
#!/usr/bin/env node #!/usr/bin/env node
'use strict' "use strict";
const path = require('path') const path = require("path");
const chalk = require('chalk') const chalk = require("chalk");
const program = require('commander') const program = require("commander");
const { version } = require('../package') const { version } = require("../package");
const getDefaultLibraryParams = require('./get-default-library-params') const getDefaultLibraryParams = require("./get-default-library-params");
const createLibrary = require('./create-library') const createLibrary = require("./create-library");
const promptLibraryParams = require('./prompt-library-params') const promptLibraryParams = require("./prompt-library-params");
module.exports = async () => { module.exports = async () => {
const defaults = await getDefaultLibraryParams() const defaults = await getDefaultLibraryParams();
program program
.name('create-freesewing-pattern') .name("create-freesewing-pattern")
.version(version) .version(version)
.usage('[options] [package-name]') .usage("[options] [package-name]")
.option('-d, --desc <string>', 'package description') .option("-d, --desc <string>", "package description")
.option('-a, --author <string>', 'author\'s github handle', defaults.author) .option("-a, --author <string>", "author's github handle", defaults.author)
.option('-l, --license <string>', 'package license', defaults.license) .option("-l, --license <string>", "package license", defaults.license)
.option('-r, --repo <string>', 'package repo path') .option("-r, --repo <string>", "package repo path")
.option('-g, --no-git', 'generate without git init') .option("-g, --no-git", "generate without git init")
.option('-m, --manager <npm|yarn>', 'package manager to use', /^(npm|yarn)$/, defaults.manager) .option(
.option('-t, --template <default|custom>', 'package template to use', /^(default|custom)$/, defaults.template) "-m, --manager <npm|yarn>",
.option('-p, --template-path <string>', 'custom package template path') "package manager to use",
.option('-s, --skip-prompts', 'skip all prompts (must provide package-name via cli)') /^(npm|yarn)$/,
.parse(process.argv) defaults.manager
)
.option(
"-t, --template <default|custom>",
"package template to use",
/^(default|custom)$/,
defaults.template
)
.option("-p, --template-path <string>", "custom package template path")
.option(
"-s, --skip-prompts",
"skip all prompts (must provide package-name via cli)"
)
.parse(process.argv);
const opts = { const opts = {
description: program.desc, description: program.desc,
@ -38,24 +51,24 @@ module.exports = async () => {
templatePath: program.templatePath, templatePath: program.templatePath,
skipPrompts: program.skipPrompts, skipPrompts: program.skipPrompts,
git: program.git git: program.git
} };
Object.keys(opts).forEach((key) => { Object.keys(opts).forEach(key => {
if (!opts[key] && defaults[key]) { if (!opts[key] && defaults[key]) {
opts[key] = defaults[key] opts[key] = defaults[key];
} }
}) });
if (program.args.length === 1) { if (program.args.length === 1) {
opts.name = program.args[0] opts.name = program.args[0];
} else if (program.args.length > 1) { } else if (program.args.length > 1) {
console.error('invalid arguments') console.error("invalid arguments");
program.help() program.help();
process.exit(1) process.exit(1);
} }
const params = await promptLibraryParams(opts) const params = await promptLibraryParams(opts);
const dest = await createLibrary(params) const dest = await createLibrary(params);
console.log(` console.log(`
@ -67,14 +80,15 @@ In one terminal, start the rollup bundler in watch mode:
$ ${chalk.cyan(`cd ${params.shortName} && ${params.manager} start`)} $ ${chalk.cyan(`cd ${params.shortName} && ${params.manager} start`)}
And in another terminal, run the dev server: And in another terminal, run the dev server:
$ ${chalk.cyan(`cd ${path.join(params.shortName, 'example')} && ${params.manager} start`)} $ ${chalk.cyan(
`) `cd ${path.join(params.shortName, "example")} && ${params.manager} start`
)}
`);
return dest return dest;
} };
module.exports() module.exports().catch(err => {
.catch((err) => { console.error(err);
console.error(err) process.exit(1);
process.exit(1) });
})

View file

@ -1,54 +1,54 @@
'use strict' "use strict";
const getGitConfigPath = require('git-config-path') const getGitConfigPath = require("git-config-path");
const githubUsername = require('github-username') const githubUsername = require("github-username");
const parseGitConfig = require('parse-git-config') const parseGitConfig = require("parse-git-config");
const which = require('which') const which = require("which");
const config = require('./config') const config = require("./config");
module.exports = async () => { module.exports = async () => {
const defaults = { const defaults = {
name: '', name: "",
description: '', description: "",
author: config.get('author'), author: config.get("author"),
repo: (info) => `${info.author}/${info.name}`, repo: info => `${info.author}/${info.name}`,
license: config.get('license', 'MIT'), license: config.get("license", "MIT"),
manager: config.get('manager', 'npm'), manager: config.get("manager", "npm"),
template: config.get('template', 'default') template: config.get("template", "default")
} };
try { try {
if (!config.get('author')) { if (!config.get("author")) {
const gitConfigPath = getGitConfigPath('global') const gitConfigPath = getGitConfigPath("global");
if (gitConfigPath) { if (gitConfigPath) {
const gitConfig = parseGitConfig.sync({ path: gitConfigPath }) const gitConfig = parseGitConfig.sync({ path: gitConfigPath });
if (gitConfig.github && gitConfig.github.user) { if (gitConfig.github && gitConfig.github.user) {
defaults.author = gitConfig.github.user defaults.author = gitConfig.github.user;
} else if (gitConfig.user && gitConfig.user.email) { } else if (gitConfig.user && gitConfig.user.email) {
defaults.author = await githubUsername(gitConfig.user.email) defaults.author = await githubUsername(gitConfig.user.email);
} }
} }
if (defaults.author) { if (defaults.author) {
config.set('author', defaults.author) config.set("author", defaults.author);
} }
} }
if (!config.get('manager')) { if (!config.get("manager")) {
if (which.sync('yarn', { nothrow: true })) { if (which.sync("yarn", { nothrow: true })) {
defaults.manager = 'yarn' defaults.manager = "yarn";
} }
config.set('manager', defaults.manager) config.set("manager", defaults.manager);
} }
if (!config.get('template')) { if (!config.get("template")) {
config.set('template', defaults.template) config.set("template", defaults.template);
} }
} catch (err) { } } catch (err) {}
return defaults return defaults;
} };

View file

@ -1,14 +1,14 @@
'use strict' "use strict";
const path = require('path') const path = require("path");
const fs = require('fs') const fs = require("fs");
const inquirer = require('inquirer') const inquirer = require("inquirer");
const validateNpmName = require('validate-npm-package-name') const validateNpmName = require("validate-npm-package-name");
const languages = require('@freesewing/i18n').languages; const languages = require("@freesewing/i18n").languages;
const strings = require('@freesewing/i18n').strings; const strings = require("@freesewing/i18n").strings;
const config = require('./config') const config = require("./config");
let languageChoices = [] let languageChoices = [];
for (let l of Object.keys(languages)) { for (let l of Object.keys(languages)) {
languageChoices.push({ languageChoices.push({
name: languages[l], name: languages[l],
@ -17,99 +17,113 @@ for (let l of Object.keys(languages)) {
}); });
} }
module.exports = async (opts) => { module.exports = async opts => {
if (opts.name && !validateNpmName(opts.name).validForNewPackages) { if (opts.name && !validateNpmName(opts.name).validForNewPackages) {
throw new Error(`invalid package name "${opts.name}"`) throw new Error(`invalid package name "${opts.name}"`);
} }
if (opts.skipPrompts) { if (opts.skipPrompts) {
if (!opts.name) { if (!opts.name) {
throw new Error('invalid input; you must pass a package name with --skip-prompts') throw new Error(
"invalid input; you must pass a package name with --skip-prompts"
);
} }
Object.keys(opts).forEach((key) => { Object.keys(opts).forEach(key => {
const value = opts[key] const value = opts[key];
if (typeof value === 'function') { if (typeof value === "function") {
opts[key] = value(opts) opts[key] = value(opts);
} }
}) });
return opts return opts;
} else { } else {
const info = await inquirer.prompt([ const info = await inquirer.prompt([
{ {
type: 'list', type: "list",
name: 'language', name: "language",
message: 'Language', message: "Language",
choices: languageChoices, choices: languageChoices,
default: 'en' default: "en"
}, },
{ {
type: 'input', type: "input",
name: 'name', name: "name",
message: info => strings[info.language]['cfp.patternName'], message: info => strings[info.language]["cfp.patternName"],
validate: name => { validate: name => {
return name && validateNpmName(name).validForNewPackages return name && validateNpmName(name).validForNewPackages;
}, },
default: opts.name default: opts.name
}, },
{ {
type: 'input', type: "input",
name: 'description', name: "description",
message: info => strings[info.language]['cfp.patternDescription'], message: info => strings[info.language]["cfp.patternDescription"],
default: opts.description default: opts.description
}, },
{ {
type: 'list', type: "list",
name: 'type', name: "type",
message: info => strings[info.language]['cfp.patternType'], message: info => strings[info.language]["cfp.patternType"],
choices: info => [ choices: info => [
{ name: strings[info.language]['filter.type.pattern'], value: 'pattern'}, {
{ name: strings[info.language]['filter.type.block'], value: 'block'}, name: strings[info.language]["filter.type.pattern"],
value: "pattern"
},
{ name: strings[info.language]["filter.type.block"], value: "block" }
], ],
default: 'pattern', default: "pattern"
}, },
{ {
type: 'list', type: "list",
name: 'department', name: "department",
message: info => strings[info.language]['filter.department.title'], message: info => strings[info.language]["filter.department.title"],
choices: info => [ choices: info => [
{ name: strings[info.language]['filter.department.menswear'], value: 'menswear'}, {
{ name: strings[info.language]['filter.department.womenswear'], value: 'womenswear'}, name: strings[info.language]["filter.department.menswear"],
{ name: strings[info.language]['filter.department.accessories'], value: 'accessories'}, value: "menswear"
},
{
name: strings[info.language]["filter.department.womenswear"],
value: "womenswear"
},
{
name: strings[info.language]["filter.department.accessories"],
value: "accessories"
}
], ],
default: 'womenswear', default: "womenswear"
}, },
{ {
type: 'input', type: "input",
name: 'author', name: "author",
message: info => strings[info.language]['cfp.author'], message: info => strings[info.language]["cfp.author"],
default: opts.author default: opts.author
}, },
{ {
type: 'input', type: "input",
name: 'repo', name: "repo",
message: info => strings[info.language]['cfp.githubRepo'], message: info => strings[info.language]["cfp.githubRepo"],
default: opts.repo default: opts.repo
}, },
{ {
type: 'list', type: "list",
name: 'manager', name: "manager",
message: info => strings[info.language]['cfp.packageManager'], message: info => strings[info.language]["cfp.packageManager"],
choices: [ 'npm', 'yarn' ], choices: ["npm", "yarn"],
default: opts.manager default: opts.manager
}, }
]) ]);
config.set('author', info.author) config.set("author", info.author);
config.set('manager', info.manager) config.set("manager", info.manager);
config.set('template', 'default') config.set("template", "default");
config.set('license', 'MIT') config.set("license", "MIT");
info.template = 'default'; info.template = "default";
return { return {
...info, ...info,
git: opts.git git: opts.git
} };
} }
} };

View file

@ -1,14 +1,14 @@
import React, { Component } from 'react'; import React, { Component } from "react";
import freesewing from "freesewing"; import freesewing from "freesewing";
import './App.css'; import "./App.css";
import ExampleComponent from '{{name}}'; import ExampleComponent from "{{name}}";
class App extends Component { class App extends Component {
render() { render() {
console.log(freesewing); console.log(freesewing);
console.log({ExampleComponent}); console.log({ ExampleComponent });
return (<p>hi there</p>) return <p>hi there</p>;
} }
} }

View file

@ -1,9 +1,9 @@
import React from 'react'; import React from "react";
import ReactDOM from 'react-dom'; import ReactDOM from "react-dom";
import App from './App'; import App from "./App";
it('renders without crashing', () => { it("renders without crashing", () => {
const div = document.createElement('div'); const div = document.createElement("div");
ReactDOM.render(<App />, div); ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div); ReactDOM.unmountComponentAtNode(div);
}); });

View file

@ -1,10 +1,10 @@
import React from 'react'; import React from "react";
import ReactDOM from 'react-dom'; import ReactDOM from "react-dom";
import './index.css'; import "./index.css";
import App from './App'; import App from "./App";
import * as serviceWorker from './serviceWorker'; import * as serviceWorker from "./serviceWorker";
ReactDOM.render(<App />, document.getElementById('root')); ReactDOM.render(<App />, document.getElementById("root"));
// If you want your app to work offline and load faster, you can change // If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls. // unregister() to register() below. Note this comes with some pitfalls.

View file

@ -9,9 +9,9 @@
// This link also includes instructions on opting out of this behavior. // This link also includes instructions on opting out of this behavior.
const isLocalhost = Boolean( const isLocalhost = Boolean(
window.location.hostname === 'localhost' || window.location.hostname === "localhost" ||
// [::1] is the IPv6 localhost address. // [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' || window.location.hostname === "[::1]" ||
// 127.0.0.1/8 is considered localhost for IPv4. // 127.0.0.1/8 is considered localhost for IPv4.
window.location.hostname.match( window.location.hostname.match(
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
@ -19,7 +19,7 @@ const isLocalhost = Boolean(
); );
export function register(config) { export function register(config) {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) {
// The URL constructor is available in all browsers that support SW. // The URL constructor is available in all browsers that support SW.
const publicUrl = new URL(process.env.PUBLIC_URL, window.location); const publicUrl = new URL(process.env.PUBLIC_URL, window.location);
if (publicUrl.origin !== window.location.origin) { if (publicUrl.origin !== window.location.origin) {
@ -29,7 +29,7 @@ export function register(config) {
return; return;
} }
window.addEventListener('load', () => { window.addEventListener("load", () => {
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
if (isLocalhost) { if (isLocalhost) {
@ -40,8 +40,8 @@ export function register(config) {
// service worker/PWA documentation. // service worker/PWA documentation.
navigator.serviceWorker.ready.then(() => { navigator.serviceWorker.ready.then(() => {
console.log( console.log(
'This web app is being served cache-first by a service ' + "This web app is being served cache-first by a service " +
'worker. To learn more, visit https://goo.gl/SC7cgQ' "worker. To learn more, visit https://goo.gl/SC7cgQ"
); );
}); });
} else { } else {
@ -59,13 +59,13 @@ function registerValidSW(swUrl, config) {
registration.onupdatefound = () => { registration.onupdatefound = () => {
const installingWorker = registration.installing; const installingWorker = registration.installing;
installingWorker.onstatechange = () => { installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed') { if (installingWorker.state === "installed") {
if (navigator.serviceWorker.controller) { if (navigator.serviceWorker.controller) {
// At this point, the old content will have been purged and // At this point, the old content will have been purged and
// the fresh content will have been added to the cache. // the fresh content will have been added to the cache.
// It's the perfect time to display a "New content is // It's the perfect time to display a "New content is
// available; please refresh." message in your web app. // available; please refresh." message in your web app.
console.log('New content is available; please refresh.'); console.log("New content is available; please refresh.");
// Execute callback // Execute callback
if (config.onUpdate) { if (config.onUpdate) {
@ -75,7 +75,7 @@ function registerValidSW(swUrl, config) {
// At this point, everything has been precached. // At this point, everything has been precached.
// It's the perfect time to display a // It's the perfect time to display a
// "Content is cached for offline use." message. // "Content is cached for offline use." message.
console.log('Content is cached for offline use.'); console.log("Content is cached for offline use.");
// Execute callback // Execute callback
if (config.onSuccess) { if (config.onSuccess) {
@ -87,7 +87,7 @@ function registerValidSW(swUrl, config) {
}; };
}) })
.catch(error => { .catch(error => {
console.error('Error during service worker registration:', error); console.error("Error during service worker registration:", error);
}); });
} }
@ -98,7 +98,7 @@ function checkValidServiceWorker(swUrl, config) {
// Ensure service worker exists, and that we really are getting a JS file. // Ensure service worker exists, and that we really are getting a JS file.
if ( if (
response.status === 404 || response.status === 404 ||
response.headers.get('content-type').indexOf('javascript') === -1 response.headers.get("content-type").indexOf("javascript") === -1
) { ) {
// No service worker found. Probably a different app. Reload the page. // No service worker found. Probably a different app. Reload the page.
navigator.serviceWorker.ready.then(registration => { navigator.serviceWorker.ready.then(registration => {
@ -113,13 +113,13 @@ function checkValidServiceWorker(swUrl, config) {
}) })
.catch(() => { .catch(() => {
console.log( console.log(
'No internet connection found. App is running in offline mode.' "No internet connection found. App is running in offline mode."
); );
}); });
} }
export function unregister() { export function unregister() {
if ('serviceWorker' in navigator) { if ("serviceWorker" in navigator) {
navigator.serviceWorker.ready.then(registration => { navigator.serviceWorker.ready.then(registration => {
registration.unregister(); registration.unregister();
}); });

View file

@ -1,27 +1,27 @@
import babel from 'rollup-plugin-babel' import babel from "rollup-plugin-babel";
import commonjs from 'rollup-plugin-commonjs' import commonjs from "rollup-plugin-commonjs";
import external from 'rollup-plugin-peer-deps-external' import external from "rollup-plugin-peer-deps-external";
import postcss from 'rollup-plugin-postcss' import postcss from "rollup-plugin-postcss";
import json from "rollup-plugin-json"; import json from "rollup-plugin-json";
import resolve from 'rollup-plugin-node-resolve' import resolve from "rollup-plugin-node-resolve";
import url from 'rollup-plugin-url' import url from "rollup-plugin-url";
import svgr from '@svgr/rollup' import svgr from "@svgr/rollup";
import minify from "rollup-plugin-babel-minify"; import minify from "rollup-plugin-babel-minify";
import { name, version, description, author, license } from "./package.json"; import { name, version, description, author, license } from "./package.json";
import pkg from './package.json' import pkg from "./package.json";
export default { export default {
input: 'src/index.js', input: "src/index.js",
output: [ output: [
{ {
file: pkg.main, file: pkg.main,
format: 'cjs', format: "cjs",
sourcemap: true sourcemap: true
}, },
{ {
file: pkg.module, file: pkg.module,
format: 'es', format: "es",
sourcemap: true sourcemap: true
} }
], ],
@ -30,14 +30,14 @@ export default {
postcss({ postcss({
modules: true modules: true
}), }),
url({ exclude: ['**/*.svg'] }), url({ exclude: ["**/*.svg"] }),
svgr(), svgr(),
babel({ babel({
exclude: 'node_modules/**', exclude: "node_modules/**",
plugins: [ '@babel/external-helpers' ] plugins: ["@babel/external-helpers"]
}), }),
resolve({ browser: true }), resolve({ browser: true }),
json(), json(),
commonjs() commonjs()
] ]
} };

View file

@ -25,7 +25,8 @@
"build": "npx node-sass --output-style compressed src/theme.scss dist/theme.css", "build": "npx node-sass --output-style compressed src/theme.scss dist/theme.css",
"test": "echo \"css-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"css-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha", "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
"watch": "npx node-sass --watch --output-style compressed src/theme.scss dist/theme.css" "watch": "npx node-sass --watch --output-style compressed src/theme.scss dist/theme.css"
}, },
"dependencies": { "dependencies": {

View file

@ -24,12 +24,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"examples: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"examples: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"florent: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"florent: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -14,7 +14,6 @@ export default {
"chestEase", "chestEase",
"cuffEase", "cuffEase",
"collarEase", "collarEase",
"ribbingStretchFactor",
"shoulderEase", "shoulderEase",
"waistEase", "waistEase",
"hipsEase", "hipsEase",
@ -25,7 +24,7 @@ export default {
"sleeveLengthBonus", "sleeveLengthBonus",
"ribbing", "ribbing",
"pocket", "pocket",
"ribbingWidth", "ribbingHeight",
"pocketHeight", "pocketHeight",
"pocketWidth", "pocketWidth",
"hoodHeight", "hoodHeight",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"huey: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"huey: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -9,8 +9,8 @@ export default {
difficulty: 3, difficulty: 3,
tags: ["top", "basics"], tags: ["top", "basics"],
optionGroups: { optionGroups: {
fit: ["bicepsEase", "chestEase", "cuffEase", "ribbingStretchFactor"], fit: ["bicepsEase", "chestEase", "cuffEase", "ribbingStretch"],
style: ["lengthBonus", "sleeveLengthBonus", "ribbingWidth"], style: ["lengthBonus", "sleeveLengthBonus", "ribbingHeight"],
advanced: ["acrossBackFactor", "backNeckCutout"] advanced: ["acrossBackFactor", "backNeckCutout"]
}, },
measurements: [ measurements: [
@ -86,7 +86,7 @@ export default {
cuffEase: { pct: 20, min: 0, max: 200 }, cuffEase: { pct: 20, min: 0, max: 200 },
lengthBonus: { pct: 10, min: 0, max: 20 }, lengthBonus: { pct: 10, min: 0, max: 20 },
sleeveLengthBonus: { pct: 0, min: -40, max: 10 }, sleeveLengthBonus: { pct: 0, min: -40, max: 10 },
ribbingStretchFactor: { pct: 5, min: 0, max: 10 }, ribbingStretch: { pct: 5, min: 0, max: 10 },
ribbingWidth: { pct: 10, min: 4, max: 20 } ribbingHeight: { pct: 10, min: 4, max: 20 }
} }
}; };

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"hugo: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"hugo: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -4,12 +4,12 @@ export default function(part) {
let width = let width =
(measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) * (measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) *
options.ribbingWidth * options.ribbingHeight *
2; 2;
let length = let length =
measurements.wristCircumference * measurements.wristCircumference *
(1 + options.cuffEase) * (1 + options.cuffEase) *
(1 - options.ribbingStretchFactor); (1 - options.ribbingStretch);
points.topLeft = new Point(0, 0); points.topLeft = new Point(0, 0);
points.bottomLeft = new Point(0, width); points.bottomLeft = new Point(0, width);
@ -30,10 +30,7 @@ export default function(part) {
if (sa) { if (sa) {
paths.sa = paths.seam.offset(sa); paths.sa = paths.seam.offset(sa);
} }
points.title = points.bottomLeft.shiftFractionTowards( points.title = points.bottomLeft.shiftFractionTowards(points.topRight, 0.5);
points.topRight,
0.5
);
macro("title", { at: points.title, nr: 9, title: "cuff" }); macro("title", { at: points.title, nr: 9, title: "cuff" });
macro("grainline", { macro("grainline", {
from: points.bottomLeft.shift(0, 20), from: points.bottomLeft.shift(0, 20),
@ -56,4 +53,4 @@ export default function(part) {
} }
return part; return part;
}; }

View file

@ -16,7 +16,7 @@ export default function(part) {
store.set( store.set(
"ribbing", "ribbing",
(measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) * (measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) *
options.ribbingWidth options.ribbingHeight
); );
// Hem is more descripting than hips in this case // Hem is more descripting than hips in this case
@ -35,11 +35,11 @@ export default function(part) {
let neckOpeningParts = neckOpening.split(points.raglanTipFront); let neckOpeningParts = neckOpening.split(points.raglanTipFront);
// Pocket // Pocket
points.pocketHem = points.cfRibbing.shiftFractionTowards( points.pocketHem = points.cfRibbing.shiftFractionTowards(points.ribbing, 0.6);
points.ribbing, points.pocketCf = points.cfHem.shift(
0.6 90,
measurements.centerBackNeckToWaist * 0.33 + store.get("ribbing")
); );
points.pocketCf = points.cfHem.shift(90, measurements.centerBackNeckToWaist*0.33 + store.get("ribbing"));
points.pocketTop = new Point(points.pocketHem.x, points.pocketCf.y); points.pocketTop = new Point(points.pocketHem.x, points.pocketCf.y);
points.pocketTip = points.pocketHem points.pocketTip = points.pocketHem
.shift(90, points.pocketHem.x / 3) .shift(90, points.pocketHem.x / 3)
@ -171,4 +171,4 @@ export default function(part) {
} }
return part; return part;
}; }

View file

@ -83,10 +83,7 @@ export default function(part) {
let slope = store.get("shoulderSlopeDeltaY"); let slope = store.get("shoulderSlopeDeltaY");
let angleFront = points.raglanTipFront.angle(points.capQ4Base); let angleFront = points.raglanTipFront.angle(points.capQ4Base);
let angleBack = points.raglanTipBack.angle(points.capQ1Base); let angleBack = points.raglanTipBack.angle(points.capQ1Base);
points.slopeFront = points.raglanMidFront.shift( points.slopeFront = points.raglanMidFront.shift(angleFront + 90, slope / 2);
angleFront + 90,
slope / 2
);
points.slopeBack = points.raglanMidBack.shift(angleBack - 90, slope / 2); points.slopeBack = points.raglanMidBack.shift(angleBack - 90, slope / 2);
points.slopeFrontCp1 = points.raglanFrontCp1.shift( points.slopeFrontCp1 = points.raglanFrontCp1.shift(
angleFront + 90, angleFront + 90,
@ -96,14 +93,8 @@ export default function(part) {
angleFront + 90, angleFront + 90,
slope / 2 slope / 2
); );
points.slopeBackCp1 = points.raglanBackCp1.shift( points.slopeBackCp1 = points.raglanBackCp1.shift(angleBack - 90, slope / 2);
angleBack - 90, points.slopeBackCp2 = points.raglanBackCp2.shift(angleBack - 90, slope / 2);
slope / 2
);
points.slopeBackCp2 = points.raglanBackCp2.shift(
angleBack - 90,
slope / 2
);
points.capQ4BaseCp = utils.beamsIntersect( points.capQ4BaseCp = utils.beamsIntersect(
points.slopeFrontCp2, points.slopeFrontCp2,
points.capQ4Base, points.capQ4Base,
@ -144,22 +135,17 @@ export default function(part) {
let lenTotal = let lenTotal =
store.get("shoulderLength") + store.get("shoulderLength") +
measurements.shoulderToWrist * (1 + options.sleeveLengthBonus) - measurements.shoulderToWrist * (1 + options.sleeveLengthBonus) -
options.ribbingWidth; options.ribbingHeight;
let lenDelta = points.raglanTop.dist(points.centerWrist) - lenTotal; let lenDelta = points.raglanTop.dist(points.centerWrist) - lenTotal;
let wristPoints = ["wristLeft", "centerWrist", "wristRight"]; let wristPoints = ["wristLeft", "centerWrist", "wristRight"];
for (let pid of wristPoints) for (let pid of wristPoints) points[pid] = points[pid].shift(90, lenDelta);
points[pid] = points[pid].shift(90, lenDelta);
runs++; runs++;
} while (Math.abs(ragDiff) > 5 && runs < 10); } while (Math.abs(ragDiff) > 5 && runs < 10);
paths.seam = new Path() paths.seam = new Path()
.move(points.raglanTipBack) .move(points.raglanTipBack)
.curve(points.raglanTipBackCp2, points.raglanTopCp1, points.raglanTop) .curve(points.raglanTipBackCp2, points.raglanTopCp1, points.raglanTop)
.curve( .curve(points.raglanTopCp2, points.raglanTipFrontCp1, points.raglanTipFront)
points.raglanTopCp2,
points.raglanTipFrontCp1,
points.raglanTipFront
)
.curve(points.raglanTipFront, points.slopeFrontCp1, points.slopeFront) .curve(points.raglanTipFront, points.slopeFrontCp1, points.slopeFront)
.curve(points.slopeFrontCp2, points.capQ4Cp2, points.bicepsLeft) .curve(points.slopeFrontCp2, points.capQ4Cp2, points.bicepsLeft)
.line(points.wristLeft) .line(points.wristLeft)
@ -251,4 +237,4 @@ export default function(part) {
}); });
} }
return part; return part;
}; }

View file

@ -4,7 +4,7 @@ export default function(part) {
let width = let width =
(measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) * (measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) *
options.ribbingWidth * options.ribbingHeight *
2; 2;
points.topLeft = new Point(0, 0); points.topLeft = new Point(0, 0);
@ -38,10 +38,7 @@ export default function(part) {
if (sa) { if (sa) {
paths.sa = paths.seam.offset(sa); paths.sa = paths.seam.offset(sa);
} }
points.title = points.bottomLeft.shiftFractionTowards( points.title = points.bottomLeft.shiftFractionTowards(points.topRight, 0.5);
points.topRight,
0.5
);
macro("title", { at: points.title, nr: 8, title: "waistband" }); macro("title", { at: points.title, nr: 8, title: "waistband" });
macro("grainline", { macro("grainline", {
from: points.bottomMidLeft, from: points.bottomMidLeft,
@ -63,10 +60,10 @@ export default function(part) {
text: units( text: units(
measurements.chestCircumference * measurements.chestCircumference *
(1 + options.chestEase) * (1 + options.chestEase) *
(1 - options.ribbingStretchFactor) (1 - options.ribbingStretch)
) )
}); });
} }
return part; return part;
}; }

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"jaeger: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"jaeger: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -26,8 +26,12 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"models: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"models: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": {},
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -24,8 +24,8 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"mui-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"mui-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha", "pubforce": "npm publish",
"watch": "rollup -c -w -o dist/index.mjs -f es" "symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@material-ui/core": "^3.9.3", "@material-ui/core": "^3.9.3",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-banner: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-banner: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -30,11 +30,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-bundle: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-bundle: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-bust: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-bust: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-buttons: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-buttons: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-cutonfold: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-cutonfold: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-debug: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-debug: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-designer: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-designer: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-dimension: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-dimension: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-flip: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-flip: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-grainline: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-grainline: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-i18n: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-i18n: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-logo: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-logo: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-round: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-round: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-scalebox: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-scalebox: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-sprinkle: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-sprinkle: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-svgattr: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-svgattr: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-theme: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-title: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-title: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,11 +29,14 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"plugin-validate: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"plugin-validate: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2" "@freesewing/core": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"shin: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"shin: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,14 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"simon: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"simon: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/brian": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2", "@freesewing/brian": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2", "@freesewing/plugin-buttons": "^2.0.0-alpha.3",
"@freesewing/plugin-flip": "^2.0.0-alpha.2" "@freesewing/plugin-flip": "^2.0.0-alpha.3"
}, },
"files": [ "files": [
"dist/*", "dist/*",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"sven: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"sven: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"tamiko: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"tamiko: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,12 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"trayvon: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"trayvon: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2" "@freesewing/plugin-bundle": "^2.0.0-alpha.3"
}, },
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -27,8 +27,12 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"utils: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"utils: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": {},
"dependencies": {},
"devDependencies": {},
"files": [ "files": [
"dist/*", "dist/*",
"README.md", "README.md",

View file

@ -29,14 +29,15 @@
"build": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"wahid: No tests configured. Perhaps you'd like to do this?\" && exit 0", "test": "echo \"wahid: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha" "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/brian": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2", "@freesewing/brian": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2", "@freesewing/plugin-buttons": "^2.0.0-alpha.3",
"@freesewing/plugin-round": "^2.0.0-alpha.2" "@freesewing/plugin-round": "^2.0.0-alpha.3"
}, },
"files": [ "files": [
"dist/*", "dist/*",

View file

@ -20,25 +20,26 @@
"clean": "rimraf dist", "clean": "rimraf dist",
"nodebuild": "BABEL_ENV=production rollup -c -o dist/index.js -f cjs", "nodebuild": "BABEL_ENV=production rollup -c -o dist/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o dist/index.mjs -f es", "modulebuild": "BABEL_ENV=production rollup -c -o dist/index.mjs -f es",
"SKIPbuild": "npm run clean && npm run nodebuild && npm run modulebuild", "build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "cross-env CI=1 react-scripts test --env=jsdom", "test": "cross-env CI=1 react-scripts test --env=jsdom",
"pubtest": "npm publish --registry http://localhost:6662", "pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha", "pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
"test:watch": "react-scripts test --env=jsdom", "test:watch": "react-scripts test --env=jsdom",
"start": "rollup -c -w" "start": "rollup -c -w"
}, },
"peerDependencies": { "peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2", "@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/i18n": "^2.0.0-alpha.2", "@freesewing/i18n": "^2.0.0-alpha.3",
"@freesewing/plugin-theme": "^2.0.0-alpha.2", "@freesewing/utils": "^2.0.0-alpha.3",
"@freesewing/utils": "^2.0.0-alpha.2", "@freesewing/plugin-theme": "^2.0.0-alpha.3",
"react-intl": "^2.8.0" "react-intl": "^2.8.0"
}, },
"dependencies": { "dependencies": {
"@freesewing/components": "^2.0.0-alpha.3", "@freesewing/components": "^2.0.0-alpha.3",
"@freesewing/css-theme": "^2.0.0-alpha.3", "@freesewing/css-theme": "^2.0.0-alpha.3",
"@freesewing/mui-theme": "^2.0.0-alpha.3", "@freesewing/utils": "^2.0.0-alpha.3",
"@freesewing/utils": "^2.0.0-alpha.3" "@freesewing/mui-theme": "^2.0.0-alpha.3"
}, },
"files": [ "files": [
"dist/*", "dist/*",