feat(paco): Initial merge of my work on the paco pattern
This also includes a lot of dependency updates
This commit is contained in:
parent
46921db761
commit
a548a6964d
209 changed files with 9613 additions and 14366 deletions
|
@ -25,22 +25,22 @@
|
|||
},
|
||||
"peerDependencies": {},
|
||||
"dependencies": {
|
||||
"chalk": "^2.4.2",
|
||||
"commander": "^2.19.0",
|
||||
"conf": "^2.2.0",
|
||||
"cp-file": "^6.0.0",
|
||||
"execa": "^1.0.0",
|
||||
"chalk": "^4.1.0",
|
||||
"commander": "^6.0.0",
|
||||
"conf": "^7.1.1",
|
||||
"cp-file": "^9.0.0",
|
||||
"execa": "^4.0.3",
|
||||
"git-config-path": "^2.0.0",
|
||||
"github-username": "^4.1.0",
|
||||
"globby": "^9.0.0",
|
||||
"handlebars": "^4.1.0",
|
||||
"inquirer": "^6.2.2",
|
||||
"make-dir": "^2.0.0",
|
||||
"ora": "^3.1.0",
|
||||
"p-each-series": "^1.0.0",
|
||||
"github-username": "^5.0.1",
|
||||
"globby": "^11.0.1",
|
||||
"handlebars": "^4.7.6",
|
||||
"inquirer": "^7.3.3",
|
||||
"make-dir": "^3.1.0",
|
||||
"ora": "^4.0.5",
|
||||
"p-each-series": "^2.1.0",
|
||||
"parse-git-config": "^3.0.0",
|
||||
"validate-npm-package-name": "^3.0.0",
|
||||
"which": "^1.3.1",
|
||||
"which": "^2.0.2",
|
||||
"@freesewing/i18n": "^2.7.2",
|
||||
"@freesewing/pattern-info": "^2.7.2"
|
||||
},
|
||||
|
@ -58,8 +58,8 @@
|
|||
"tag": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.0.0",
|
||||
"npm": ">=5"
|
||||
"node": ">=12.0.0",
|
||||
"npm": ">=6"
|
||||
},
|
||||
"bin": {
|
||||
"create-freesewing-pattern": "index.js"
|
||||
|
|
|
@ -1,49 +1,39 @@
|
|||
import babel from "rollup-plugin-babel";
|
||||
import resolve from "rollup-plugin-node-resolve";
|
||||
import commonjs from "rollup-plugin-commonjs";
|
||||
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,
|
||||
main,
|
||||
module
|
||||
} from "./package.json";
|
||||
//import babel from "@rollup/plugin-babel";
|
||||
import resolve from '@rollup/plugin-node-resolve'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import json from '@rollup/plugin-json'
|
||||
import { terser } from 'rollup-plugin-terser'
|
||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||
import { name, version, description, author, license, main, module } from './package.json'
|
||||
|
||||
const output = [
|
||||
{
|
||||
file: main,
|
||||
format: "cjs",
|
||||
sourcemap: true
|
||||
format: 'cjs',
|
||||
sourcemap: true,
|
||||
exports: 'default'
|
||||
}
|
||||
];
|
||||
if (typeof module !== "undefined")
|
||||
]
|
||||
if (typeof module !== 'undefined')
|
||||
output.push({
|
||||
file: module,
|
||||
format: "es",
|
||||
format: 'es',
|
||||
sourcemap: true
|
||||
});
|
||||
})
|
||||
|
||||
export default {
|
||||
input: "src/index.js",
|
||||
input: 'src/index.js',
|
||||
output,
|
||||
plugins: [
|
||||
peerDepsExternal(),
|
||||
resolve({ modulesOnly: true }),
|
||||
commonjs(),
|
||||
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 */`
|
||||
//babel({ exclude: "node_modules/**", }),
|
||||
terser({
|
||||
output: {
|
||||
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||
}
|
||||
})
|
||||
]
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,10 +11,12 @@ const App = (props) => {
|
|||
let config = instance.config
|
||||
|
||||
// You can use this to add transations
|
||||
/*
|
||||
let translations = {
|
||||
JSON: 'JSON',
|
||||
someOtherString: 'Some other string that needs translation'
|
||||
}
|
||||
*/
|
||||
|
||||
return (
|
||||
<Workbench
|
||||
|
@ -22,7 +24,7 @@ const App = (props) => {
|
|||
Pattern={Pattern}
|
||||
config={config}
|
||||
userLanguage="{{language}}"
|
||||
translations={translations}
|
||||
//translations={translations}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -9,26 +9,20 @@
|
|||
"module": "dist/index.es.js",
|
||||
"jsnext:main": "dist/index.es.js",
|
||||
"engines": {
|
||||
"node": ">=8",
|
||||
"npm": ">=5"
|
||||
"node": ">=12",
|
||||
"npm": ">=6"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "cross-env CI=1 react-scripts test --env=jsdom",
|
||||
"test:watch": "react-scripts test --env=jsdom",
|
||||
"build": "rollup -c",
|
||||
"start": "rollup -c -w",
|
||||
"prepare": "{{manager}} run build",
|
||||
"predeploy": "cd example && {{manager}} install && {{manager}} run build",
|
||||
"deploy": "gh-pages -d example/build"
|
||||
"predeploy": "cd example && {{manager}} install && {{manager}} run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"react": "^16.8",
|
||||
"react-dom": "^16.8",
|
||||
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
||||
"babel-eslint": "10.0.1",
|
||||
"eslint": "^5.16.0",
|
||||
"babel-jest": "24.7.1",
|
||||
"jest": "24.7.1",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"eslint": "^7.6.0",
|
||||
"@freesewing/core": "latest",
|
||||
"@freesewing/plugin-bundle": "latest",
|
||||
"@freesewing/components": "latest",
|
||||
|
@ -40,23 +34,20 @@
|
|||
"@freesewing/plugin-debug": "latest",
|
||||
"@freesewing/plugin-flip": "latest",
|
||||
"@freesewing/utils": "latest",
|
||||
"@svgr/rollup": "^2.4.1",
|
||||
"cross-env": "^5.1.4",
|
||||
"react-scripts": "^3.0.1",
|
||||
"webpack": "4.29.6",
|
||||
"rollup": "^0.64.1",
|
||||
"rollup-plugin-babel": "^4.0.1",
|
||||
"rollup-plugin-babel-minify": "^7.0.0",
|
||||
"rollup-plugin-commonjs": "^9.1.3",
|
||||
"rollup-plugin-json": "^3.1.0",
|
||||
"rollup-plugin-node-resolve": "^3.3.0",
|
||||
"rollup-plugin-peer-deps-external": "^2.2.0",
|
||||
"rollup-plugin-postcss": "^1.6.2",
|
||||
"rollup-plugin-url": "^1.4.0",
|
||||
"@material-ui/core": "^4.0.1",
|
||||
"@material-ui/icons": "^4.0.1",
|
||||
"@material-ui/lab": "^v4.0.0-alpha.14",
|
||||
"react-intl": "2.8.0",
|
||||
"react-scripts": "^3.4.1",
|
||||
"webpack": "4.44.1",
|
||||
"rollup": "^2.23.0",
|
||||
"rollup-plugin-peer-deps-external": "^2.2.3",
|
||||
"rollup-plugin-terser": "^6.1.0",
|
||||
"rollup-plugin-yaml": "^2.0.0",
|
||||
"@rollup/plugin-babel": "^5.1.0",
|
||||
"@rollup/plugin-commonjs": "^14.0.0",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-node-resolve": "^8.4.0",
|
||||
"@material-ui/core": "^4.11.0",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"@material-ui/lab": "^4.0.0-alpha.6",
|
||||
"react-intl": "5.4.5",
|
||||
"prop-types": "15.7.2",
|
||||
"file-saver": "^2.0.2"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue