Giter Site home page Giter Site logo

gitprivate's Introduction

项目开发流程

一、私仓搭建 1: 全局安装 npm install -g verdaccio 2: 启动verdaccio: pm2 start verdaccio 3: 访问 http://localhost:4873

二、设置登录账号 pnpm set registry http://localhost:4873/ pnpm adduser --registry http://localhost:4873/ 设置用户名密码 然后登录。

三、创建包并发布包到私仓 1: 初始化项目 pnpm init 2: 新建 pnpm-workspace.yaml文件 3: lerna init --independent 4: 在component下执行 lerna add @niu/hooks 4-1: 然后在component/index.js引入 import hook from "@niu/hooks"; 4-2: 然后在component下执行node index.js打印 5: lerna publish from-package 6: 再访问 http://localhost:4873

四、移除包 pnpm unpublish @niu/hooks

五、完善项目 注:pnpm add typescript -r/-w 为每个项目/为全局添加依赖

pnpm add typescript -D -w

六、提交代码到Git

七、lerna publish 到私仓

查看: http://localhost:4873

pnpm remove @niu/hooks --filter @niu/components

gitprivate's People

Contributors

yulei-niu avatar

Watchers

牛大爷 avatar

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.