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": {
"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:packages": "yarn clean:packages && lerna exec -- microbundle --compress",
"build:packages": "yarn clean:packages && rollup -c",
"clean:packages": "rm -rf ./packages/*/dist",
"lint": "eslint --quiet --no-error-on-unmatched-pattern ./",
"test:open": "cypress open --project tests",
@ -53,7 +51,6 @@
"eslint-plugin-vue": "^7.0.1",
"lerna": "^3.22.1",
"levenary": "^1.1.1",
"microbundle": "^0.12.4",
"minimist": "^1.2.5",
"rollup": "^2.33.1",
"rollup-plugin-terser": "^7.0.2",

View File

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

View File

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

610
yarn.lock

File diff suppressed because it is too large Load Diff