mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
update dev dependencies, upgrade to rollup v1
This commit is contained in:
parent
b6a7317dfb
commit
ec4bac5a00
@ -20,7 +20,7 @@ function blue(str) {
|
||||
function write(dest, code, zip) {
|
||||
return new Promise((resolve, reject) => {
|
||||
function report(extra) {
|
||||
console.log(`${blue(path.relative(process.cwd(), dest)) } ${getSize(code) }${extra || ''}`)
|
||||
console.log(`${blue(path.relative(process.cwd(), dest))} ${getSize(code)}${extra || ''}`)
|
||||
resolve()
|
||||
}
|
||||
|
||||
@ -42,9 +42,10 @@ function buildEntry({ input, output }) {
|
||||
const isProd = /min\.js$/.test(output.file)
|
||||
return rollup(input)
|
||||
.then(bundle => bundle.generate(output))
|
||||
.then(({ code }) => {
|
||||
.then(response => {
|
||||
// console.log({ bla })
|
||||
if (isProd) {
|
||||
const minified = uglify.minify(code, {
|
||||
const minified = uglify.minify(response.output[0].code, {
|
||||
output: {
|
||||
preamble: output.banner,
|
||||
ascii_only: true,
|
||||
@ -52,7 +53,9 @@ function buildEntry({ input, output }) {
|
||||
}).code
|
||||
return write(output.file, minified, true)
|
||||
}
|
||||
return write(output.file, code)
|
||||
// console.log({ isProd })
|
||||
// console.dir(response, { depth: null })
|
||||
return write(output.file, response.output[0].code)
|
||||
})
|
||||
}
|
||||
|
||||
|
42
package.json
42
package.json
@ -27,60 +27,60 @@
|
||||
"@babel/node": "^7.2.2",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||
"@babel/plugin-transform-runtime": "^7.2.0",
|
||||
"@babel/polyfill": "^7.0.0",
|
||||
"@babel/preset-env": "^7.2.0",
|
||||
"@babel/polyfill": "^7.2.5",
|
||||
"@babel/preset-env": "^7.2.3",
|
||||
"@babel/preset-stage-2": "^7.0.0",
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"autoprefixer": "^9.4.3",
|
||||
"autoprefixer": "^9.4.5",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-jest": "^23.6.0",
|
||||
"babel-loader": "^8.0.4",
|
||||
"babel-loader": "^8.0.5",
|
||||
"browser-sync": "^2.26.3",
|
||||
"connect-history-api-fallback": "^1.5.0",
|
||||
"connect-history-api-fallback": "^1.6.0",
|
||||
"copy-webpack-plugin": "^4.6.0",
|
||||
"css-loader": "^2.0.1",
|
||||
"eslint": "^5.10.0",
|
||||
"css-loader": "^2.1.0",
|
||||
"eslint": "^5.12.1",
|
||||
"eslint-config-airbnb-base": "^13.0.0",
|
||||
"eslint-plugin-html": "^5.0.0",
|
||||
"eslint-plugin-import": "^2.13.0",
|
||||
"eslint-plugin-vue": "5.0.0",
|
||||
"file-loader": "^2.0.0",
|
||||
"eslint-plugin-vue": "5.1.0",
|
||||
"file-loader": "^3.0.1",
|
||||
"fuse.js": "^3.3.0",
|
||||
"glob": "^7.1.3",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"http-proxy-middleware": "^0.19.1",
|
||||
"http-server": "^0.11.1",
|
||||
"imagemin-webpack-plugin": "^2.3.0",
|
||||
"imagemin-webpack-plugin": "^2.4.0",
|
||||
"jest": "^23.6.0",
|
||||
"lerna": "^3.7.0",
|
||||
"lerna": "^3.10.6",
|
||||
"mini-css-extract-plugin": "^0.5.0",
|
||||
"minimist": "^1.2.0",
|
||||
"node-sass": "^4.11.0",
|
||||
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
||||
"ora": "^3.0.0",
|
||||
"postcss": "^7.0.7",
|
||||
"postcss": "^7.0.13",
|
||||
"postcss-loader": "^3.0.0",
|
||||
"postcss-scss": "^2.0.0",
|
||||
"regenerator-runtime": "^0.13.1",
|
||||
"rollup": "^0.68.0",
|
||||
"rollup-plugin-babel": "^4.1.0",
|
||||
"rollup": "^1.1.0",
|
||||
"rollup-plugin-babel": "^4.3.1",
|
||||
"rollup-plugin-commonjs": "^9.2.0",
|
||||
"rollup-plugin-flow-no-whitespace": "^1.0.0",
|
||||
"rollup-plugin-node-resolve": "^4.0.0",
|
||||
"rollup-plugin-replace": "^2.1.0",
|
||||
"rollup-plugin-vue": "^4.3.2",
|
||||
"rollup-plugin-vue": "^4.6.1",
|
||||
"sass-loader": "^7.0.3",
|
||||
"style-loader": "^0.23.1",
|
||||
"tippy.js": "^3.3.0",
|
||||
"tippy.js": "^3.4.1",
|
||||
"uglify-js": "^3.4.9",
|
||||
"vue": "^2.5.21",
|
||||
"vue-loader": "^15.4.2",
|
||||
"vue": "^2.5.22",
|
||||
"vue-loader": "^15.5.1",
|
||||
"vue-router": "^3.0.2",
|
||||
"vue-style-loader": "^4.1.0",
|
||||
"vue-template-compiler": "^2.5.21",
|
||||
"webpack": "^4.28.0",
|
||||
"webpack-dev-middleware": "^3.4.0",
|
||||
"vue-template-compiler": "^2.5.22",
|
||||
"webpack": "^4.28.4",
|
||||
"webpack-dev-middleware": "^3.5.1",
|
||||
"webpack-hot-middleware": "^2.24.3",
|
||||
"webpack-manifest-plugin": "^2.0.4",
|
||||
"webpack-svgstore-plugin": "^4.1.0",
|
||||
|
Loading…
Reference in New Issue
Block a user