Giter Club home page Giter Club logo

anya-ui's People

Contributors

actions-user avatar qubitsky avatar

Watchers

 avatar  avatar

anya-ui's Issues

lerna bootstrap not hoisting react react-dom and styled-components because of peerDependencies

根目录下执行lerna bootstrap --hoist后,

  • react
  • react-dom
  • styled-components

以上依赖同时被安装到了 anya-ui/packages/components/node_modulesanya-ui/node_modules 目录下
导致 anya-ui/packages/demo 应用在浏览器中运行时报错

去掉 anya-ui/packages/components/package.json 中的 peerDependencies 则正常,所以怀疑与 peerDependencies 有关

node -v
v17.7.2

npm -v
8.5.2

lerna publish 失败后怎么办?

lerna publish 失败后,版本号已更新,并且git tag也已生成。
再次执行 lerna publish,则提示

lerna info Looking for changed packages since v0.0.1-alpha.0
lerna success No changed packages to publish 

如何利用github actions将lerna publish自动化?

查阅了一些资料,应该可以利用 github actions 实现如下思路的自动化发包:

  1. 在 package.json 中,增加一个发布脚本:npm run build && lerna publish
  2. 当往 main 分支 push 提交的时候,github 自动执行该脚本完成发布
  3. 该脚本能根据 commit 提交信息生成相应的版本号,和 changelog

具体该怎么实现?

组件设计

布局类

  • 居中

展示类

  • 图标

交互类

  • 按钮

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.