yarn install
yarn run serve
yarn run test:unit
yarn run lib:cli
yarn run lib
yarn run lint:prettier
yarn run lint:css
yarn run docs:dev
yarn run docs:build
yarn run version
一个基于rollup和vue cli3的库打包项目,支持按需引入,文档展示,多种方式打包等...
Home Page: https://juejin.im/post/5d7860b0f265da03bc12a3d2
yarn install
yarn run serve
yarn run test:unit
yarn run lib:cli
yarn run lib
yarn run lint:prettier
yarn run lint:css
yarn run docs:dev
yarn run docs:build
yarn run version
$ cross-env NODE_ENV=production rimraf ./lib && node ./build/rollup.build
正在打包第1/9个文件...
'D:Githublib-starter-master
untimeplugin-vue
ormalize.js' is imported by packages\test-module\src\main.vue, but could not be resolved – treating it as an external dependency
'D:Githublib-starter-master
untimeplugin-vue
ormalize.js' is imported by packages\file-handle\src\main.vue, but could not be resolved – treating it as an external dependency
(node:177700) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at getData (D:\Github\lib-starter-master\node_modules\rollup-plugin-filesize\dist\index.js:72:68)
at D:\Github\lib-starter-master\node_modules\rollup-plugin-filesize\dist\index.js:91:21
at Array.forEach ()
at Object.generateBundle (D:\Github\lib-starter-master\node_modules\rollup-plugin-filesize\dist\index.js:90:10)
at Promise.resolve.then (D:\Github\lib-starter-master\node_modules\rollup\dist\rollup.js:12850:25)
["import",
{
libraryName: '@apl-common/components',
libraryDirectory: 'lib',
style: (name, file) => {
const libDirIndex = name.lastIndexOf('/');
const libDir = name.substring(0, libDirIndex);
const fileName = name.substr(libDirIndex + 1);
return ${libDir}/theme/${fileName}.css
}
}
]
应该是这样吧,还是哪里不对呢
1.使用typescript重构
2.删除doc功能
3...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.