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"
"validate-npm-package-name": "^3.0.0"
"which": "^1.3.1"
i18n:
peer:
"@freesewing/pattern-info": "^{{version}}"
mui-theme:
peer:
"@material-ui/core": "^3.9.3"
@ -80,6 +83,9 @@ patterns:
"@freesewing/tamiko": "^{{version}}"
"@freesewing/trayvon": "^{{version}}"
"@freesewing/wahid": "^{{version}}"
peer:
"@freesewing/core": "^{{version}}"
"@freesewing/plugin-bundle": "^{{version}}"
simon:
peer:
"@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"
mui-theme: "A Material-UI theme for FreeSewing web UIs"
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-bundle: "An umbrella package of 8 essential FreeSewing build-time plugins"
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"
test: "echo \"{{name}}: No tests configured. Perhaps you'd like to do this?\" && exit 0"
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:
patterns:
plugins:
@ -24,6 +25,8 @@ core:
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"
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:
test: "cross-env CI=1 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",
"test": "echo \"aaron: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"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": {
"@freesewing/brian": "^2.0.0-alpha.2",
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/brian": "^2.0.0-alpha.3"
},
"files": [
"dist/*",

View file

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

View file

@ -29,12 +29,13 @@
"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",
"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": {
"@freesewing/brian": "^2.0.0-alpha.2",
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/brian": "^2.0.0-alpha.3"
},
"files": [
"dist/*",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,15 +29,16 @@
"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",
"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": {
"@freesewing/bent": "^2.0.0-alpha.2",
"@freesewing/carlton": "^2.0.0-alpha.2",
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2",
"@freesewing/plugin-bust": "^2.0.0-alpha.2",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/bent": "^2.0.0-alpha.3",
"@freesewing/carlton": "^2.0.0-alpha.3",
"@freesewing/plugin-bust": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.3"
},
"files": [
"dist/*",

View file

@ -29,13 +29,14 @@
"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",
"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": {
"@freesewing/bent": "^2.0.0-alpha.2",
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/bent": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.3"
},
"files": [
"dist/*",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -19,18 +19,19 @@
"clean": "rimraf dist",
"nodebuild": "BABEL_ENV=production rollup -c -o dist/index.js -f cjs",
"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",
"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"
},
"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",
"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"
},
"files": [
@ -45,14 +46,5 @@
"engines": {
"node": ">=8.0.0",
"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",
"test": "BABEL_ENV=production nyc mocha tests/*.test.js",
"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",
"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
'use strict'
"use strict";
const path = require('path')
const chalk = require('chalk')
const program = require('commander')
const { version } = require('../package')
const path = require("path");
const chalk = require("chalk");
const program = require("commander");
const { version } = require("../package");
const getDefaultLibraryParams = require('./get-default-library-params')
const createLibrary = require('./create-library')
const promptLibraryParams = require('./prompt-library-params')
const getDefaultLibraryParams = require("./get-default-library-params");
const createLibrary = require("./create-library");
const promptLibraryParams = require("./prompt-library-params");
module.exports = async () => {
const defaults = await getDefaultLibraryParams()
const defaults = await getDefaultLibraryParams();
program
.name('create-freesewing-pattern')
.name("create-freesewing-pattern")
.version(version)
.usage('[options] [package-name]')
.option('-d, --desc <string>', 'package description')
.option('-a, --author <string>', 'author\'s github handle', defaults.author)
.option('-l, --license <string>', 'package license', defaults.license)
.option('-r, --repo <string>', 'package repo path')
.option('-g, --no-git', 'generate without git init')
.option('-m, --manager <npm|yarn>', 'package manager to use', /^(npm|yarn)$/, 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)
.usage("[options] [package-name]")
.option("-d, --desc <string>", "package description")
.option("-a, --author <string>", "author's github handle", defaults.author)
.option("-l, --license <string>", "package license", defaults.license)
.option("-r, --repo <string>", "package repo path")
.option("-g, --no-git", "generate without git init")
.option(
"-m, --manager <npm|yarn>",
"package manager to use",
/^(npm|yarn)$/,
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 = {
description: program.desc,
@ -38,24 +51,24 @@ module.exports = async () => {
templatePath: program.templatePath,
skipPrompts: program.skipPrompts,
git: program.git
}
};
Object.keys(opts).forEach((key) => {
Object.keys(opts).forEach(key => {
if (!opts[key] && defaults[key]) {
opts[key] = defaults[key]
opts[key] = defaults[key];
}
})
});
if (program.args.length === 1) {
opts.name = program.args[0]
opts.name = program.args[0];
} else if (program.args.length > 1) {
console.error('invalid arguments')
program.help()
process.exit(1)
console.error("invalid arguments");
program.help();
process.exit(1);
}
const params = await promptLibraryParams(opts)
const dest = await createLibrary(params)
const params = await promptLibraryParams(opts);
const dest = await createLibrary(params);
console.log(`
@ -67,14 +80,15 @@ In one terminal, start the rollup bundler in watch mode:
$ ${chalk.cyan(`cd ${params.shortName} && ${params.manager} start`)}
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()
.catch((err) => {
console.error(err)
process.exit(1)
})
module.exports().catch(err => {
console.error(err);
process.exit(1);
});

View file

@ -1,54 +1,54 @@
'use strict'
"use strict";
const getGitConfigPath = require('git-config-path')
const githubUsername = require('github-username')
const parseGitConfig = require('parse-git-config')
const which = require('which')
const getGitConfigPath = require("git-config-path");
const githubUsername = require("github-username");
const parseGitConfig = require("parse-git-config");
const which = require("which");
const config = require('./config')
const config = require("./config");
module.exports = async () => {
const defaults = {
name: '',
description: '',
author: config.get('author'),
repo: (info) => `${info.author}/${info.name}`,
license: config.get('license', 'MIT'),
manager: config.get('manager', 'npm'),
template: config.get('template', 'default')
}
name: "",
description: "",
author: config.get("author"),
repo: info => `${info.author}/${info.name}`,
license: config.get("license", "MIT"),
manager: config.get("manager", "npm"),
template: config.get("template", "default")
};
try {
if (!config.get('author')) {
const gitConfigPath = getGitConfigPath('global')
if (!config.get("author")) {
const gitConfigPath = getGitConfigPath("global");
if (gitConfigPath) {
const gitConfig = parseGitConfig.sync({ path: gitConfigPath })
const gitConfig = parseGitConfig.sync({ path: gitConfigPath });
if (gitConfig.github && gitConfig.github.user) {
defaults.author = gitConfig.github.user
defaults.author = gitConfig.github.user;
} else if (gitConfig.user && gitConfig.user.email) {
defaults.author = await githubUsername(gitConfig.user.email)
defaults.author = await githubUsername(gitConfig.user.email);
}
}
if (defaults.author) {
config.set('author', defaults.author)
config.set("author", defaults.author);
}
}
if (!config.get('manager')) {
if (which.sync('yarn', { nothrow: true })) {
defaults.manager = 'yarn'
if (!config.get("manager")) {
if (which.sync("yarn", { nothrow: true })) {
defaults.manager = "yarn";
}
config.set('manager', defaults.manager)
config.set("manager", defaults.manager);
}
if (!config.get('template')) {
config.set('template', defaults.template)
if (!config.get("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 fs = require('fs')
const inquirer = require('inquirer')
const validateNpmName = require('validate-npm-package-name')
const languages = require('@freesewing/i18n').languages;
const strings = require('@freesewing/i18n').strings;
const config = require('./config')
const path = require("path");
const fs = require("fs");
const inquirer = require("inquirer");
const validateNpmName = require("validate-npm-package-name");
const languages = require("@freesewing/i18n").languages;
const strings = require("@freesewing/i18n").strings;
const config = require("./config");
let languageChoices = []
let languageChoices = [];
for (let l of Object.keys(languages)) {
languageChoices.push({
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) {
throw new Error(`invalid package name "${opts.name}"`)
throw new Error(`invalid package name "${opts.name}"`);
}
if (opts.skipPrompts) {
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) => {
const value = opts[key]
if (typeof value === 'function') {
opts[key] = value(opts)
Object.keys(opts).forEach(key => {
const value = opts[key];
if (typeof value === "function") {
opts[key] = value(opts);
}
})
});
return opts
return opts;
} else {
const info = await inquirer.prompt([
{
type: 'list',
name: 'language',
message: 'Language',
type: "list",
name: "language",
message: "Language",
choices: languageChoices,
default: 'en'
default: "en"
},
{
type: 'input',
name: 'name',
message: info => strings[info.language]['cfp.patternName'],
type: "input",
name: "name",
message: info => strings[info.language]["cfp.patternName"],
validate: name => {
return name && validateNpmName(name).validForNewPackages
return name && validateNpmName(name).validForNewPackages;
},
default: opts.name
},
{
type: 'input',
name: 'description',
message: info => strings[info.language]['cfp.patternDescription'],
type: "input",
name: "description",
message: info => strings[info.language]["cfp.patternDescription"],
default: opts.description
},
{
type: 'list',
name: 'type',
message: info => strings[info.language]['cfp.patternType'],
type: "list",
name: "type",
message: info => strings[info.language]["cfp.patternType"],
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',
name: 'department',
message: info => strings[info.language]['filter.department.title'],
type: "list",
name: "department",
message: info => strings[info.language]["filter.department.title"],
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.accessories'], value: 'accessories'},
],
default: 'womenswear',
{
name: strings[info.language]["filter.department.menswear"],
value: "menswear"
},
{
type: 'input',
name: 'author',
message: info => strings[info.language]['cfp.author'],
name: strings[info.language]["filter.department.womenswear"],
value: "womenswear"
},
{
name: strings[info.language]["filter.department.accessories"],
value: "accessories"
}
],
default: "womenswear"
},
{
type: "input",
name: "author",
message: info => strings[info.language]["cfp.author"],
default: opts.author
},
{
type: 'input',
name: 'repo',
message: info => strings[info.language]['cfp.githubRepo'],
type: "input",
name: "repo",
message: info => strings[info.language]["cfp.githubRepo"],
default: opts.repo
},
{
type: 'list',
name: 'manager',
message: info => strings[info.language]['cfp.packageManager'],
choices: [ 'npm', 'yarn' ],
type: "list",
name: "manager",
message: info => strings[info.language]["cfp.packageManager"],
choices: ["npm", "yarn"],
default: opts.manager
},
])
}
]);
config.set('author', info.author)
config.set('manager', info.manager)
config.set('template', 'default')
config.set('license', 'MIT')
info.template = 'default';
config.set("author", info.author);
config.set("manager", info.manager);
config.set("template", "default");
config.set("license", "MIT");
info.template = "default";
return {
...info,
git: opts.git
};
}
}
}
};

View file

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

View file

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

View file

@ -1,10 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
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
// 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.
const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||
window.location.hostname === "localhost" ||
// [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' ||
window.location.hostname === "[::1]" ||
// 127.0.0.1/8 is considered localhost for IPv4.
window.location.hostname.match(
/^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) {
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.
const publicUrl = new URL(process.env.PUBLIC_URL, window.location);
if (publicUrl.origin !== window.location.origin) {
@ -29,7 +29,7 @@ export function register(config) {
return;
}
window.addEventListener('load', () => {
window.addEventListener("load", () => {
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
if (isLocalhost) {
@ -40,8 +40,8 @@ export function register(config) {
// service worker/PWA documentation.
navigator.serviceWorker.ready.then(() => {
console.log(
'This web app is being served cache-first by a service ' +
'worker. To learn more, visit https://goo.gl/SC7cgQ'
"This web app is being served cache-first by a service " +
"worker. To learn more, visit https://goo.gl/SC7cgQ"
);
});
} else {
@ -59,13 +59,13 @@ function registerValidSW(swUrl, config) {
registration.onupdatefound = () => {
const installingWorker = registration.installing;
installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed') {
if (installingWorker.state === "installed") {
if (navigator.serviceWorker.controller) {
// At this point, the old content will have been purged and
// the fresh content will have been added to the cache.
// It's the perfect time to display a "New content is
// 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
if (config.onUpdate) {
@ -75,7 +75,7 @@ function registerValidSW(swUrl, config) {
// At this point, everything has been precached.
// It's the perfect time to display a
// "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
if (config.onSuccess) {
@ -87,7 +87,7 @@ function registerValidSW(swUrl, config) {
};
})
.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.
if (
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.
navigator.serviceWorker.ready.then(registration => {
@ -113,13 +113,13 @@ function checkValidServiceWorker(swUrl, config) {
})
.catch(() => {
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() {
if ('serviceWorker' in navigator) {
if ("serviceWorker" in navigator) {
navigator.serviceWorker.ready.then(registration => {
registration.unregister();
});

View file

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

View file

@ -25,7 +25,8 @@
"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",
"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"
},
"dependencies": {

View file

@ -24,12 +24,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

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

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

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

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

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

View file

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

View file

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

View file

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

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -26,8 +26,12 @@
"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",
"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": [
"dist/*",
"README.md",

View file

@ -24,8 +24,8 @@
"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",
"pubtest": "npm publish --registry http://localhost:6662",
"publish": "npm build && npm publish --access=public --tag=alpha",
"watch": "rollup -c -w -o dist/index.mjs -f es"
"pubforce": "npm publish",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -"
},
"peerDependencies": {
"@material-ui/core": "^3.9.3",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -30,11 +30,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,11 +29,14 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,14 +29,15 @@
"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",
"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": {
"@freesewing/brian": "^2.0.0-alpha.2",
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2",
"@freesewing/plugin-flip": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/brian": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.3",
"@freesewing/plugin-flip": "^2.0.0-alpha.3"
},
"files": [
"dist/*",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -29,12 +29,15 @@
"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",
"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": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -27,8 +27,12 @@
"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",
"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": [
"dist/*",
"README.md",

View file

@ -29,14 +29,15 @@
"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",
"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": {
"@freesewing/brian": "^2.0.0-alpha.2",
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/plugin-bundle": "^2.0.0-alpha.2",
"@freesewing/plugin-buttons": "^2.0.0-alpha.2",
"@freesewing/plugin-round": "^2.0.0-alpha.2"
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/plugin-bundle": "^2.0.0-alpha.3",
"@freesewing/brian": "^2.0.0-alpha.3",
"@freesewing/plugin-buttons": "^2.0.0-alpha.3",
"@freesewing/plugin-round": "^2.0.0-alpha.3"
},
"files": [
"dist/*",

View file

@ -20,25 +20,26 @@
"clean": "rimraf dist",
"nodebuild": "BABEL_ENV=production rollup -c -o dist/index.js -f cjs",
"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",
"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",
"start": "rollup -c -w"
},
"peerDependencies": {
"@freesewing/core": "^2.0.0-alpha.2",
"@freesewing/i18n": "^2.0.0-alpha.2",
"@freesewing/plugin-theme": "^2.0.0-alpha.2",
"@freesewing/utils": "^2.0.0-alpha.2",
"@freesewing/core": "^2.0.0-alpha.3",
"@freesewing/i18n": "^2.0.0-alpha.3",
"@freesewing/utils": "^2.0.0-alpha.3",
"@freesewing/plugin-theme": "^2.0.0-alpha.3",
"react-intl": "^2.8.0"
},
"dependencies": {
"@freesewing/components": "^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": [
"dist/*",