1
0
Fork 0

🚧 Handling of package.json exceptions

This commit is contained in:
Joost De Cock 2019-04-20 19:23:22 +02:00
parent daf65326ae
commit 0461c64b9a
117 changed files with 1018 additions and 772 deletions

View file

@ -22,6 +22,10 @@ carlton:
peer:
"@freesewing/bent": "^{{version}}"
"@freesewing/plugin-buttons": "^{{version}}"
components:
peer:
"react": "^16.4.1"
"prop-types": "15.7.2"
core:
_:
"bezier-js": "^2.2.13"

View file

@ -1,15 +1,13 @@
noNamespace:
- create-freesewing-pattern
noRollup:
customRollup:
- css-theme
- create-freesewing-pattern
- mui-theme
- plugin-theme
- workbench
extraPackageJson:
- components
packageJson:
create-freesewing-pattern:
"reveal": true,
"reveal": true
"bin":
"create-freesewing-pattern": "index.js"
"engines":
"npm": ">=5"

View file

@ -1,22 +1,27 @@
_:
clean: "rimraf ../../dist/{{name}}"
nodebuild: "rollup -c -o ../../dist/{{name}}/index.js -f cjs"
modulebuild: "rollup -c -o ../../dist/{{name}}/index.mjs -f es"
nodebuild: "BABEL_ENV=production rollup -c -o ../../dist/{{name}}/index.js -f cjs"
modulebuild: "BABEL_ENV=production rollup -c -o ../../dist/{{name}}/index.mjs -f es"
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"
_types:
patterns:
plugins:
create-freesewing-pattern:
mkdist: "mkdir -p ../../dist/create-freesewing-pattern"
copyfiles: "cp -R index.js package.json README.md lib template ../../dist/create-freesewing-pattern/"
build: "npm run clean && npm run mkdist && npm run copyfiles"
test: "ava -v && standard *.js lib/*.js"
css-theme:
build: "npx node-sass --output-style compressed src/theme.scss ../../dist/css-theme/theme.css"
components:
test: "echo \"{{name}}: No tests configured. Perhaps you'd like to do this?\" && exit 0"
build: "echo \"{{name}}: No build command available.\" && exit 0"
core:
test: "nyc mocha tests/*.test.js"
report: "nyc report --reporter=html mocha --compilers js:babel-core/register tests/*.test.js"
coverage: "nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
create-freesewing-pattern:
test: "ava -v && standard *.js lib/*.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"
coverage: "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
workbench:
test: "cross-env CI=1 react-scripts test --env=jsdom"
test:watch: "react-scripts test --env=jsdom"

View file

@ -23,6 +23,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -46,8 +46,10 @@
"@babel/core": "7.2.2",
"@babel/node": "7.2.2",
"@babel/plugin-external-helpers": "7.2.0",
"@babel/plugin-proposal-class-properties": "7.4.0",
"@babel/plugin-proposal-object-rest-spread": "7.4.3",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "7.0.0",
"@babel/register": "^7.0.0",
"@svgr/rollup": "^2.4.1",
"ava": "^1.2.1",
@ -78,6 +80,7 @@
"node-sass": "4.11.0",
"nyc": "12.0.2",
"prettier": "1.14.0",
"prop-types": "15.7.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-scripts": "^1.1.4",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/aaron",
"version": "0.33.0",
"description": "A FreeSewing pattern for a A-shirt or tank top",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/aaron",
"nodebuild": "rollup -c -o ../../dist/aaron/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/aaron/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/aaron/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/aaron/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/aaron"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/bent",
"version": "0.33.0",
"description": "A FreeSewing pattern for a menswear body block with a two-part sleeve",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/bent",
"nodebuild": "rollup -c -o ../../dist/bent/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/bent/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/bent/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/bent/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/bent"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/brian",
"version": "0.33.0",
"description": "A FreeSewing pattern for a basic body block for menswear",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/brian",
"nodebuild": "rollup -c -o ../../dist/brian/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/brian/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/brian/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/brian/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/brian"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/bruce",
"version": "0.33.0",
"description": "A FreeSewing pattern for boxer briefs",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/bruce",
"nodebuild": "rollup -c -o ../../dist/bruce/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/bruce/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/bruce/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/bruce/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/bruce"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/carlita",
"version": "0.33.0",
"description": "A FreeSewing pattern for Sherlock Holmes cosplay; Or just a nice long coat",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/carlita",
"nodebuild": "rollup -c -o ../../dist/carlita/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/carlita/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/carlita/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/carlita/index.mjs -f es",
"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"
@ -44,8 +47,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/carlita"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/carlton",
"version": "0.33.0",
"description": "A FreeSewing pattern for Sherlock Holmes cosplay; Or just a nice long coat",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/carlton",
"nodebuild": "rollup -c -o ../../dist/carlton/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/carlton/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/carlton/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/carlton/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/carlton"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/cathrin",
"version": "0.33.0",
"description": "A FreeSewing pattern for a underbust corset / waist trainer",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/cathrin",
"nodebuild": "rollup -c -o ../../dist/cathrin/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/cathrin/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/cathrin/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/cathrin/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/cathrin"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -0,0 +1,6 @@
{
"presets": [
["@babel/preset-env", { "modules": false }],
"@babel/preset-react",
],
}

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/components",
"version": "0.33.0",
"description": "A collection of React components for FreeSewing web UIs",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -14,15 +17,16 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/components",
"nodebuild": "rollup -c -o ../../dist/components/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/components/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/components/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/components/index.mjs -f es",
"build": "echo \"components: No build command available.\" && exit 0",
"test": "echo \"components: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662"
},
"peerDependencies": {},
"dependencies": {},
"devDependencies": {},
"peerDependencies": {
"react": "^16.4.1",
"prop-types": "15.7.2"
},
"files": [
"../../dist/packages/components/*",
"README.md",
@ -32,8 +36,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/components"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -0,0 +1,22 @@
#!/bin/bash
# We'll have to come up with a cross-platform way to handle this
# (as in, make sure it works on windows), but until that time
# this shell script will do.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CUR=`pwd`
cd $DIR/../src/
rm -rf ../../../dist/components
for d in * ; do {
cd ..
# do something here
mkdir -p ../../dist/components/$d
rollup -c ./rollup.config.js ./src/$d/index.js -m -o ../../dist/components/$d/index.js -f cjs
rollup -c ./rollup.config.js ./src/$d/index.js -m -o ../../dist/components/$d/index.mjs -f es
cd src
}
done
cd $CUR

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/core",
"version": "0.33.0",
"description": "A library for creating made-to-measure sewing patterns",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -22,13 +25,13 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/core",
"nodebuild": "rollup -c -o ../../dist/core/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/core/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/core/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/core/index.mjs -f es",
"build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "nyc mocha tests/*.test.js",
"test": "BABEL_ENV=production nyc mocha tests/*.test.js",
"pubtest": "npm publish --registry http://localhost:6662",
"report": "nyc report --reporter=html mocha --compilers js:babel-core/register tests/*.test.js",
"coverage": "nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov"
"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"
},
"dependencies": {
"bezier-js": "^2.2.13",
@ -44,8 +47,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/core"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "create-freesewing-pattern",
"version": "0.33.0",
"description": "Initializer package for FreeSewing patterns: npm init FreeSewing-pattern",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -16,11 +19,13 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/create-freesewing-pattern",
"nodebuild": "rollup -c -o ../../dist/create-freesewing-pattern/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/create-freesewing-pattern/index.mjs -f es",
"build": "npm run clean && npm run nodebuild && npm run modulebuild",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/create-freesewing-pattern/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/create-freesewing-pattern/index.mjs -f es",
"build": "npm run clean && npm run mkdist && npm run copyfiles",
"test": "ava -v && standard *.js lib/*.js",
"pubtest": "npm publish --registry http://localhost:6662"
"pubtest": "npm publish --registry http://localhost:6662",
"mkdist": "mkdir -p ../../dist/create-freesewing-pattern",
"copyfiles": "cp -R index.js package.json README.md lib template ../../dist/create-freesewing-pattern/"
},
"dependencies": {
"chalk": "^2.4.2",
@ -49,8 +54,11 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
"node": ">=8.0.0",
"npm": ">=5"
},
"version": "0.33.0",
"name": "create-freesewing-pattern"
"reveal": true,
"bin": {
"create-freesewing-pattern": "index.js"
}
}

View file

@ -1,149 +0,0 @@
# create-react-library
> CLI for creating reusable, modern React libraries using Rollup and create-react-app.
[![NPM](https://img.shields.io/npm/v/create-react-library.svg)](https://www.npmjs.com/package/create-react-library) [![Build Status](https://travis-ci.com/transitive-bullshit/create-react-library.svg?branch=master)](https://travis-ci.com/transitive-bullshit/create-react-library) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
## Intro
<p align="center">
<img width="600" src="https://cdn.rawgit.com/transitive-bullshit/create-react-library/master/media/demo.svg">
</p>
## Features
- Easy-to-use CLI
- Handles all modern JS features
- Bundles `cjs` and `es` module formats
- [create-react-app](https://github.com/facebookincubator/create-react-app) for example usage and local dev
- [Rollup](https://rollupjs.org/) for bundling
- [Babel](https://babeljs.io/) for transpiling
- [Jest](https://facebook.github.io/jest/) for testing
- Supports complicated peer-dependencies
- Supports CSS modules
- Optional support for TypeScript
- Sourcemap creation
- Hundreds of public modules created
- Thorough documentation :heart_eyes:
- [Chinese docs](./readme.zh-CN.md) by [@monsterooo](https://github.com/monsterooo)
## Install globally
This package requires `node >= 4`, but we recommend `node >= 8`.
```bash
npm install -g create-react-library
```
## Usage with npx
```bash
npx create-react-library
```
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_
## Creating a New Module
```bash
create-react-library
```
Answer some basic prompts about your module, and then the CLI will perform the following steps:
- copy over the template
- install dependencies via yarn or npm
- link packages together for local development
- initialize local git repo
At this point, your new module should resemble this screenshot and is all setup for local development.
<p align="center">
<img width="600" src="https://cdn.rawgit.com/transitive-bullshit/create-react-library/master/media/tree.svg">
</p>
## Development
Local development is broken into two parts (ideally using two tabs).
First, run rollup to watch your `src/` module and automatically recompile it into `dist/` whenever you make changes.
```bash
npm start # runs rollup with watch flag
```
The second part will be running the `example/` create-react-app that's linked to the local version of your module.
```bash
# (in another tab)
cd example
npm start # runs create-react-app dev server
```
Now, anytime you make a change to your library in `src/` or to the example app's `example/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.
![](https://media.giphy.com/media/12NUbkX6p4xOO4/giphy.gif)
#### Publishing to npm
```bash
npm publish
```
This builds `cjs` and `es` versions of your module to `dist/` and then publishes your module to `npm`.
Make sure that any npm modules you want as peer dependencies are properly marked as `peerDependencies` in `package.json`. The rollup config will automatically recognize them as peers and not try to bundle them in your module.
#### Deploying to Github Pages
```bash
npm run deploy
```
This creates a production build of the example `create-react-app` that showcases your library and then runs `gh-pages` to deploy the resulting bundle.
## Examples
### Multiple Named Exports
Here is a [branch](https://github.com/transitive-bullshit/react-modern-library-boilerplate/tree/feature/multiple-exports) which demonstrates how to use multiple named exports. The module in this branch exports two components, `Foo` and `Bar`, and shows how to use them from the example app.
### Material-UI
Here is a [branch](https://github.com/transitive-bullshit/react-modern-library-boilerplate/tree/feature/material-ui) which demonstrates how to make use of a relatively complicated peer dependency, [material-ui](https://github.com/mui-org/material-ui). It shows the power of [rollup-plugin-peer-deps-external](https://www.npmjs.com/package/rollup-plugin-peer-deps-external) which makes it a breeze to create reusable modules that include complicated material-ui subcomponents without having them bundled as a part of your module.
### Boilerplate
The CLI is based on this [boilerplate](https://github.com/transitive-bullshit/react-modern-library-boilerplate), which you can optionally read about [here](https://hackernoon.com/publishing-baller-react-modules-2b039d84bce7).
### Libraries
Here are some example libraries that have been bootstrapped with `create-react-library`.
- [tabler-react](https://github.com/tabler/tabler-react) - React components and demo for the Tabler UI theme.
- [react-background-slideshow](https://github.com/transitive-bullshit/react-background-slideshow) - Sexy tiled background slideshow for React 🔥
- [react-starfield-animation](https://github.com/transitive-bullshit/react-starfield-animation) -Canvas-based starfield animation for React ✨
- [react-particle-effect-button](https://github.com/transitive-bullshit/react-particle-effect-button) - Bursting particle effect buttons for React 🎉
- [react-particle-animation](https://github.com/transitive-bullshit/react-particle-animation) - Canvas-based particle animation for React 🌐
- [react-block-image](https://github.com/transitive-bullshit/react-block-image) - React replacement for img with more control + fallback support 🌃
- [react-mp3-recorder](https://github.com/transitive-bullshit/react-mp3-recorder) - Microphone recorder for React that captures mp3 audio 🎵
- [react-before-after-slider](https://github.com/transitive-bullshit/react-before-after-slider) - A sexy image comparison slider for React.
- [worldwind-react-globe](https://github.com/emxsys/worldwind-react-globe) - NASA WorldWind globe component for React.
- [react-shimmer](https://github.com/gokcan/react-shimmer) - Shimmer effect for loading images.
- [react-login-modal-sm](https://github.com/Silind/react-login-modal-sm) - Customizable React social media login modal.
- [react-gradient-scroll-indicator](https://github.com/jbccollins/react-gradient-scroll-indicator) - Wrapper for scrollable content with gradients.
- [react-editext](https://github.com/alioguzhan/react-editext) - Editable Text Component.
- ... and hundreds more!
Want to add yours to the list? Submit an [issue](https://github.com/transitive-bullshit/create-react-library/issues/new).
## License
MIT © [Travis Fischer](https://github.com/transitive-bullshit)

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/css-theme",
"version": "0.33.0",
"description": "A CSS theme for FreeSewing web UIs",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -17,9 +20,9 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/css-theme",
"nodebuild": "rollup -c -o ../../dist/css-theme/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/css-theme/index.mjs -f es",
"build": "npm run clean && npm run nodebuild && npm run modulebuild",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/css-theme/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/css-theme/index.mjs -f es",
"build": "npx node-sass --output-style compressed src/theme.scss ../../dist/css-theme/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"
},
@ -35,8 +38,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/css-theme"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/examples",
"version": "0.33.0",
"description": "A FreeSewing pattern holding examples for our documentation",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -16,8 +19,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/examples",
"nodebuild": "rollup -c -o ../../dist/examples/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/examples/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/examples/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/examples/index.mjs -f es",
"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"
@ -37,8 +40,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/examples"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/florent",
"version": "0.33.0",
"description": "A FreeSewing pattern for a flat cap",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/florent",
"nodebuild": "rollup -c -o ../../dist/florent/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/florent/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/florent/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/florent/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/florent"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/huey",
"version": "0.33.0",
"description": "A FreeSewing pattern for a zip-up hoodie",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/huey",
"nodebuild": "rollup -c -o ../../dist/huey/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/huey/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/huey/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/huey/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/huey"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/hugo",
"version": "0.33.0",
"description": "A FreeSewing pattern for a hooded jumper with raglan sleeves",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/hugo",
"nodebuild": "rollup -c -o ../../dist/hugo/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/hugo/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/hugo/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/hugo/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/hugo"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/i18n",
"version": "0.33.0",
"description": "Translations for the FreeSewing project",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -18,8 +21,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/i18n",
"nodebuild": "rollup -c -o ../../dist/i18n/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/i18n/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/i18n/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/i18n/index.mjs -f es",
"build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"i18n: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662"
@ -36,8 +39,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/i18n"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/jaeger",
"version": "0.33.0",
"description": "A FreeSewing pattern for a sport coat style jacket",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/jaeger",
"nodebuild": "rollup -c -o ../../dist/jaeger/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/jaeger/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/jaeger/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/jaeger/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/jaeger"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/models",
"version": "0.33.0",
"description": "Body measurements data for a range of default sizes",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -18,8 +21,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/models",
"nodebuild": "rollup -c -o ../../dist/models/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/models/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/models/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/models/index.mjs -f es",
"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"
@ -36,8 +39,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/models"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/mui-theme",
"version": "0.33.0",
"description": "A Material-UI theme for FreeSewing web UIs",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -16,8 +19,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/mui-theme",
"nodebuild": "rollup -c -o ../../dist/mui-theme/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/mui-theme/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/mui-theme/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/mui-theme/index.mjs -f es",
"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"
@ -36,8 +39,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/mui-theme"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -0,0 +1,27 @@
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import minify from "rollup-plugin-babel-minify";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import { name, version, description, author, license } from "./package.json";
export default {
input: "src/index.js",
output: {
sourcemap: true
},
plugins: [
peerDepsExternal(),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",
plugins: ["@babel/plugin-proposal-object-rest-spread"]
}),
minify({
comments: false,
sourceMap: true,
banner: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
})
]
};

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/patterns",
"version": "0.33.0",
"description": "An umbrella package for all FreeSewing patterns",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/patterns",
"nodebuild": "rollup -c -o ../../dist/patterns/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/patterns/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/patterns/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/patterns/index.mjs -f es",
"build": "npm run clean && npm run nodebuild && npm run modulebuild",
"test": "echo \"patterns: No tests configured. Perhaps you'd like to do this?\" && exit 0",
"pubtest": "npm publish --registry http://localhost:6662"
@ -55,8 +58,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/patterns"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-banner",
"version": "0.33.0",
"description": "A FreeSewing plugin to repeat text on a path",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-banner",
"nodebuild": "rollup -c -o ../../dist/plugin-banner/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-banner/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-banner/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-banner/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-banner"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-bundle",
"version": "0.33.0",
"description": "An umbrella package of 8 essential FreeSewing build-time plugins",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -22,8 +25,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-bundle",
"nodebuild": "rollup -c -o ../../dist/plugin-bundle/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-bundle/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-bundle/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-bundle/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-bundle"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-bust",
"version": "0.33.0",
"description": "A FreeSewing plugin that helps with bust-adjusting menswear patterns",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-bust",
"nodebuild": "rollup -c -o ../../dist/plugin-bust/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-bust/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-bust/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-bust/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-bust"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-buttons",
"version": "0.33.0",
"description": "A FreeSewing plugin that provides button and buttonhole snippets",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-buttons",
"nodebuild": "rollup -c -o ../../dist/plugin-buttons/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-buttons/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-buttons/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-buttons/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-buttons"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-cutonfold",
"version": "0.33.0",
"description": "A FreeSewing plugin to add cut-on-fold indicators on your patterns",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-cutonfold",
"nodebuild": "rollup -c -o ../../dist/plugin-cutonfold/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-cutonfold/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-cutonfold/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-cutonfold/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-cutonfold"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-debug",
"version": "0.33.0",
"description": "A FreeSewing plugin to log debug info to your browser console",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-debug",
"nodebuild": "rollup -c -o ../../dist/plugin-debug/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-debug/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-debug/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-debug/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-debug"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-designer",
"version": "0.33.0",
"description": "A FreeSewing plugin to facilitate pattern design",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-designer",
"nodebuild": "rollup -c -o ../../dist/plugin-designer/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-designer/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-designer/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-designer/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-designer"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-dimension",
"version": "0.33.0",
"description": "A FreeSewing plugin to add dimensions to your (paperless) pattern",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-dimension",
"nodebuild": "rollup -c -o ../../dist/plugin-dimension/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-dimension/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-dimension/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-dimension/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-dimension"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-flip",
"version": "0.33.0",
"description": "A FreeSewing plugin to flip parts horizontally",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-flip",
"nodebuild": "rollup -c -o ../../dist/plugin-flip/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-flip/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-flip/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-flip/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-flip"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-grainline",
"version": "0.33.0",
"description": "A FreeSewing plugin to add grainline indicators on your patterns",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-grainline",
"nodebuild": "rollup -c -o ../../dist/plugin-grainline/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-grainline/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-grainline/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-grainline/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-grainline"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-i18n",
"version": "0.33.0",
"description": "A FreeSewing plugin for pattern translation",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-i18n",
"nodebuild": "rollup -c -o ../../dist/plugin-i18n/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-i18n/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-i18n/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-i18n/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-i18n"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-logo",
"version": "0.33.0",
"description": "A FreeSewing plugin to add our logo to your patterns",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-logo",
"nodebuild": "rollup -c -o ../../dist/plugin-logo/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-logo/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-logo/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-logo/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-logo"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-round",
"version": "0.33.0",
"description": "A FreeSewing plugin to round corners",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-round",
"nodebuild": "rollup -c -o ../../dist/plugin-round/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-round/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-round/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-round/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-round"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-scalebox",
"version": "0.33.0",
"description": "A FreeSewing plugin to add a scalebox to your pattern",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-scalebox",
"nodebuild": "rollup -c -o ../../dist/plugin-scalebox/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-scalebox/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-scalebox/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-scalebox/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-scalebox"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-sprinkle",
"version": "0.33.0",
"description": "A FreeSewing plugin to bulk-add snippets to your pattern",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-sprinkle",
"nodebuild": "rollup -c -o ../../dist/plugin-sprinkle/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-sprinkle/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-sprinkle/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-sprinkle/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-sprinkle"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-svgattr",
"version": "0.33.0",
"description": "A FreeSewing plugin to set SVG attributes",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-svgattr",
"nodebuild": "rollup -c -o ../../dist/plugin-svgattr/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-svgattr/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-svgattr/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-svgattr/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-svgattr"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,10 +0,0 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry"
}
]
]
}

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-theme",
"version": "0.33.0",
"description": "A FreeSewing plugin that provides a default theme",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-theme",
"nodebuild": "rollup -c -o ../../dist/plugin-theme/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-theme/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-theme/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-theme/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-theme"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -3,15 +3,15 @@ import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import sass from "rollup-plugin-sass";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import { version, name, description, author, license } from "./package.json";
import fs from "fs";
export default {
input: "src/index.js",
plugins: [
resolve({
browser: true
}),
peerDepsExternal(),
resolve(),
json(),
babel({
exclude: "node_modules/**"

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-title",
"version": "0.33.0",
"description": "A FreeSewing plugin to add a title to your pattern parts",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-title",
"nodebuild": "rollup -c -o ../../dist/plugin-title/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-title/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-title/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-title/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-title"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/plugin-validate",
"version": "0.33.0",
"description": "A FreeSewing plugin that validates aspects of your code",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/plugin-validate",
"nodebuild": "rollup -c -o ../../dist/plugin-validate/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/plugin-validate/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-validate/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/plugin-validate/index.mjs -f es",
"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"
@ -41,8 +44,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/plugin-validate"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/shin",
"version": "0.33.0",
"description": "A FreeSewing pattern for swim trunks",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/shin",
"nodebuild": "rollup -c -o ../../dist/shin/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/shin/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/shin/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/shin/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/shin"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/simon",
"version": "0.33.0",
"description": "A FreeSewing pattern for a button down shirt",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/simon",
"nodebuild": "rollup -c -o ../../dist/simon/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/simon/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/simon/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/simon/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/simon"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/sven",
"version": "0.33.0",
"description": "A FreeSewing pattern for a straightforward sweater",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/sven",
"nodebuild": "rollup -c -o ../../dist/sven/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/sven/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/sven/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/sven/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/sven"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/tamiko",
"version": "0.33.0",
"description": "A FreeSewing pattern for a zero-waste top",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/tamiko",
"nodebuild": "rollup -c -o ../../dist/tamiko/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/tamiko/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/tamiko/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/tamiko/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/tamiko"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/trayvon",
"version": "0.33.0",
"description": "A FreeSewing pattern for a tie",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/trayvon",
"nodebuild": "rollup -c -o ../../dist/trayvon/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/trayvon/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/trayvon/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/trayvon/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/trayvon"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/wahid",
"version": "0.33.0",
"description": "A FreeSewing pattern for a classic fitted waistcoat",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -21,8 +24,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/wahid",
"nodebuild": "rollup -c -o ../../dist/wahid/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/wahid/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/wahid/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/wahid/index.mjs -f es",
"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"
@ -42,8 +45,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/wahid"
"node": ">=8.0.0",
"npm": ">=5"
}
}

View file

@ -12,7 +12,7 @@ export default {
},
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
resolve({ modulesOnly: true }),
json(),
babel({
exclude: "node_modules/**",

View file

@ -1,12 +1,6 @@
{
"presets": [
["env", {
"modules": false
}],
"stage-0",
"react"
["@babel/preset-env", { "modules": false }],
"@babel/preset-react"
],
"plugins": [
["transform-object-rest-spread", { "useBuiltIns": true }]
]
}

View file

@ -1,4 +1,7 @@
{
"name": "@freesewing/workbench",
"version": "0.33.0",
"description": "A React component to facilitate FreeSewing pattern design",
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
"repository": "github:freesewing/freesewing",
@ -15,8 +18,8 @@
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/workbench",
"nodebuild": "rollup -c -o ../../dist/workbench/index.js -f cjs",
"modulebuild": "rollup -c -o ../../dist/workbench/index.mjs -f es",
"nodebuild": "BABEL_ENV=production rollup -c -o ../../dist/workbench/index.js -f cjs",
"modulebuild": "BABEL_ENV=production rollup -c -o ../../dist/workbench/index.mjs -f es",
"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",
@ -37,8 +40,7 @@
"access": "public"
},
"engines": {
"node": ">=8.0.0"
},
"version": "0.33.0",
"name": "@freesewing/workbench"
"node": ">=8.0.0",
"npm": ">=5"
}
}

Some files were not shown because too many files have changed in this diff Show more