lerna-starter:用于开发,测试和发布您的React组件的简单React UI开发环境样板-源码

上传者: 42098251 | 上传时间: 2021-02-03 14:05:44 | 文件大小: 171KB | 文件类型: ZIP
React组件库发布入门 入门 克隆项目: git clone git@github.com:garmeeh/lerna-starter.git 安装项目: npm install 运行npm run start 运行npm run start将: 1.)旋转故事书。 然后,您可以导航到 ,您将能够看到Storybook中展示的示例软件包。 2.)将在监视模式下运行构建脚本。 这意味着将在“故事书”中构建并更新在“ packages”文件夹中进行的所有更改。 出版 要构建和发布软件包,您只需要运行: npm run publish-packages (您需要登录到npm) 这将运行构建脚本,然后发布您的软件包。 当前设置为单独发布每个程序包,以使其版本独立。 您可以在找到完整的发布选项,以便根据自己的实际需求进行调整。 但是对于大多数情况,当前的设置就足够了。 测验 该项目带有为您设置的和。 要运行所有测试并生成覆盖率报告,只需运行: npm run test 在开发过程中,您还可以通过运行以下命令以监视方式运行测试: npm run test:watch 导出静

文件下载

资源详情

[{"title":"( 38 个子文件 171KB ) lerna-starter:用于开发,测试和发布您的React组件的简单React UI开发环境样板-源码","children":[{"title":"lerna-starter-master","children":[{"title":".eslintrc <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"babel.config.js <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"packages","children":[{"title":"wireframe-ui","children":[{"title":"src","children":[{"title":"__stories__","children":[{"title":"wireframe-ui.story.js <span style='color:#111;'> 574B </span>","children":null,"spread":false}],"spread":true},{"title":"components","children":[{"title":"Button.jsx <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"Counter.jsx <span style='color:#111;'> 693B </span>","children":null,"spread":false}],"spread":true},{"title":"__tests__","children":[{"title":"wireframe-ui.test.js <span style='color:#111;'> 100B </span>","children":null,"spread":false}],"spread":true},{"title":"index.jsx <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":".babelrc <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 437B </span>","children":null,"spread":false}],"spread":true},{"title":"button","children":[{"title":"src","children":[{"title":"__stories__","children":[{"title":"button.story.js <span style='color:#111;'> 393B </span>","children":null,"spread":false}],"spread":true},{"title":"__tests__","children":[{"title":"button.test.js <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.jsx <span style='color:#111;'> 416B </span>","children":null,"spread":false}],"spread":true},{"title":".babelrc <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 280B </span>","children":null,"spread":false}],"spread":true},{"title":"counter","children":[{"title":"src","children":[{"title":"__stories__","children":[{"title":"counter.story.jsx <span style='color:#111;'> 402B </span>","children":null,"spread":false}],"spread":true},{"title":"__tests__","children":[{"title":"counter.test.js <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.jsx <span style='color:#111;'> 662B </span>","children":null,"spread":false}],"spread":true},{"title":".babelrc <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 282B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 46B </span>","children":null,"spread":false}],"spread":true},{"title":".storybook","children":[{"title":"config.js <span style='color:#111;'> 516B </span>","children":null,"spread":false},{"title":".babelrc <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"addons.js <span style='color:#111;'> 44B </span>","children":null,"spread":false}],"spread":true},{"title":"CONTRIBUTING.md <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"jest.config.js <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"lerna.json <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":".npmrc <span style='color:#111;'> 22B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 650.71KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明