chore: remove vue-virtual-scroller

This commit is contained in:
07akioni 2020-10-09 18:56:22 +08:00
parent 22d2c9c9a9
commit dffcc93d95
3 changed files with 5 additions and 33 deletions

View File

@ -21,9 +21,8 @@
"release:package": "npm run build && npm publish",
"test": "cross-env NODE_ENV=test jest",
"init-cssr": "node scripts/create-cssr-scaffold.js",
"generate": "npm run generate-version && npm run generate-global-style",
"generate": "npm run generate-version",
"generate-version": "node scripts/generate-version",
"generate-global-style": "",
"tusimple:dev": "npm run generate && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.tusimple-dev.js",
"tusimple:build:doc": "npm run generate && npm run build && rm -rf build-doc/dist && cross-env NODE_ENV=production webpack --config build/webpack.tusimple-doc.js",
"tusimple:release:doc": "npm run tusimple:build:doc && node build-doc/generate-deploy-sh.js && sudo bash build-doc/deploy-doc.sh",
@ -133,6 +132,7 @@
"lodash-es": "^4.17.15",
"resize-observer-polyfill": "^1.5.1",
"treemate": "^0.1.5",
"vue-runtime-helpers": "^1.1.2"
"vue-runtime-helpers": "^1.1.2",
"vueuc": "0.1.0-alpha.1"
}
}

View File

@ -45,7 +45,7 @@ module.exports = {
'lodash-es',
'resize-observer-polyfill',
'vue-runtime-helpers',
'vue-virtual-scroller',
'@css-render/plugin-bem'
'@css-render/plugin-bem',
'vueuc'
])
}

View File

@ -1,28 +0,0 @@
const fs = require('fs').promises
const path = require('path')
function generateCssr (literal) {
return `export default \`${literal}\`\n`
}
;(async () => {
const file = await fs.readFile(
path.resolve(
__dirname,
'..',
'node_modules',
'vue-virtual-scroller',
'dist',
'vue-virtual-scroller.css'
)
)
const cssLiteral = file.toString()
await fs.writeFile(path.resolve(
__dirname,
'..',
'src',
'_styles/',
'global-style/',
'vue-virtual-scroller.cssr.js'
), generateCssr(cssLiteral))
})()