mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
improve build script
This commit is contained in:
parent
efbe21d19a
commit
30009df309
@ -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",
|
||||
|
@ -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
|
||||
|
@ -28,11 +28,8 @@
|
||||
"files": [
|
||||
"./shims/vue.d.ts"
|
||||
],
|
||||
"filesGlob": [
|
||||
"packages/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist"
|
||||
"**/node_modules",
|
||||
"**/dist"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user