Giter Site home page Giter Site logo

Comments (4)

Amery2010 avatar Amery2010 commented on September 24, 2024

@csdoker
其实不用这么麻烦,基于vue-cli的配置稍微修改下就行了,我最近也在折腾按需引入的配置,可以参考下我的项目~https://github.com/csdoker/vimi-ui

感谢提供参考意见,我以后会抽空再研究一下

from blog.xiangfa.org.

Jim-jw avatar Jim-jw commented on September 24, 2024

直接引入私有库当做组件库觉得怎么样
npm i git+ssh://组件库地址 -S
一是项目中引用后可能需要修改调整组件的问题 二是降低了全员开发组件修改组件的门槛 三私密性也有保证不需要发布到npm上

from blog.xiangfa.org.

Amery2010 avatar Amery2010 commented on September 24, 2024

直接引入私有库当做组件库觉得怎么样
npm i git+ssh://组件库地址 -S
一是项目中引用后可能需要修改调整组件的问题 二是降低了全员开发组件修改组件的门槛 三私密性也有保证不需要发布到npm上

在我目前公司内部有在使用你说的这种方式,但这种方式也存在一些弊端,比如每次更新组件后,你需要手动更新一下依赖,否则项目里的依然可能使用的的 package-lock 或 yarn.lock 里的文件。如果你比较担心第三个问题,你可以考虑搭建 npm 私仓

from blog.xiangfa.org.

Jim-jw avatar Jim-jw commented on September 24, 2024

直接引入私有库当做组件库觉得怎么样
npm i git+ssh://组件库地址 -S
一是项目中引用后可能需要修改调整组件的问题 二是降低了全员开发组件修改组件的门槛 三私密性也有保证不需要发布到npm上

在我目前公司内部有在使用你说的这种方式,但这种方式也存在一些弊端,比如每次更新组件后,你需要手动更新一下依赖,否则项目里的依然可能使用的的 package-lock 或 yarn.lock 里的文件。如果你比较担心第三个问题,你可以考虑搭建 npm 私仓

你说的对,同样私有包安全风险也不能忽视Researcher hacks over 35 tech firms in novel supply chain attack

from blog.xiangfa.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.