improve build script

This commit is contained in:
Philipp Kühn
2020-11-10 11:53:47 +01:00
parent efbe21d19a
commit 30009df309
4 changed files with 41 additions and 611 deletions

View File

@@ -12,10 +12,8 @@
], ],
"scripts": { "scripts": {
"start": "yarn --cwd ./docs start", "start": "yarn --cwd ./docs start",
"build": "yarn clean:packages && rollup -c --scope @tiptap/extension-blockquote",
"build:single": "yarn clean:packages && rollup -c --scope @tiptap/extension-underline",
"build:docs": "yarn --cwd ./docs build", "build:docs": "yarn --cwd ./docs build",
"build:packages": "yarn clean:packages && lerna exec -- microbundle --compress", "build:packages": "yarn clean:packages && rollup -c",
"clean:packages": "rm -rf ./packages/*/dist", "clean:packages": "rm -rf ./packages/*/dist",
"lint": "eslint --quiet --no-error-on-unmatched-pattern ./", "lint": "eslint --quiet --no-error-on-unmatched-pattern ./",
"test:open": "cypress open --project tests", "test:open": "cypress open --project tests",
@@ -53,7 +51,6 @@
"eslint-plugin-vue": "^7.0.1", "eslint-plugin-vue": "^7.0.1",
"lerna": "^3.22.1", "lerna": "^3.22.1",
"levenary": "^1.1.1", "levenary": "^1.1.1",
"microbundle": "^0.12.4",
"minimist": "^1.2.5", "minimist": "^1.2.5",
"rollup": "^2.33.1", "rollup": "^2.33.1",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",

View File

@@ -88,21 +88,21 @@ async function build(commandLineArgs) {
plugins, plugins,
}) })
// config.push({ config.push({
// input, input,
// output: [ output: [
// { {
// name, name,
// file: path.join(basePath, unpkg), file: path.join(basePath, unpkg),
// format: 'umd', format: 'umd',
// sourcemap: true, sourcemap: true,
// }, },
// ], ],
// plugins: [ plugins: [
// ...plugins, ...plugins,
// terser(), terser(),
// ], ],
// }) })
}) })
return config return config

View File

@@ -28,11 +28,8 @@
"files": [ "files": [
"./shims/vue.d.ts" "./shims/vue.d.ts"
], ],
"filesGlob": [
"packages/**/*.ts"
],
"exclude": [ "exclude": [
"node_modules", "**/node_modules",
"dist" "**/dist"
] ]
} }

610
yarn.lock

File diff suppressed because it is too large Load Diff