1
0
Fork 0

🚧 Ongoing work on components and pattern info

This commit is contained in:
Joost De Cock 2019-04-29 09:01:51 +02:00
parent a3ae718632
commit ea41dc0106
168 changed files with 17518 additions and 14384 deletions

View file

@ -1,6 +1,6 @@
{
"name": "create-freesewing-pattern",
"version": "0.33.0",
"version": "0.32.4",
"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/",
@ -18,14 +18,14 @@
"main": "dist/index.js",
"module": "dist/index.mjs",
"scripts": {
"clean": "rimraf ../../dist/create-freesewing-pattern",
"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",
"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",
"build": "npm run clean && npm run mkdist && npm run copyfiles",
"test": "ava -v && standard *.js lib/*.js",
"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/"
"mkdist": "mkdir -p dist",
"copyfiles": "cp -R index.js package.json README.md lib template dist/"
},
"dependencies": {
"chalk": "^2.4.2",
@ -46,7 +46,7 @@
"which": "^1.3.1"
},
"files": [
"../../dist/packages/create-freesewing-pattern/*",
"dist/*",
"README.md",
"package.json"
],

View file

@ -0,0 +1,48 @@
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 yaml from "rollup-plugin-yaml";
import url from "rollup-plugin-url";
import postcss from "rollup-plugin-postcss";
import svgr from "@svgr/rollup";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import { name, version, description, author, license } from "./package.json";
export default {
input: "src/index.js",
output: [
{
file: "dist/index.js",
format: "cjs",
sourcemap: true
},
{
file: "dist/index.mjs",
format: "es",
sourcemap: true
}
],
plugins: [
peerDepsExternal(),
resolve({ modulesOnly: true }),
url(),
commonjs(),
json(),
yaml(),
svgr(),
postcss({
modules: true
}),
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 */`
})
]
};