improve build script
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user