GithubHelp home page GithubHelp logo

dnhyxc-tools's Introduction

初始化项目

全局依赖安装:

pnpm i

为根目录安装:

pnpm i rollup -Dw

为子包单独安装:

  • 进入子包目录进行安装:
cd packages/demo

pnpm i rollup -D
  • 或者在根目录运行 pnpm i visite --filter demo 为指定子包安装依赖。
pnpm i visite --filter demo

新建子包

运行 npm run create <projectName> 即可创建新的子包,其中 <projectName> 为子包名称,也就是文件夹名称。

npm run create demo

子包创建完毕之后,运行 pnpm i 安装依赖,注意 node 是否支持 pnpm。

pnpm i

上述操作完成后,可以根据自己的需求,更新 package.json 中的报名 namefiles 等信息。

运行测试

进入子包,运行 npm test 即可运行测试。

cd packages/demo

npm run test

打包

单独为子包打包:

cd packages/demo

npm run build

打包所有子包:在根目录运行 npm run build 即可。

npm run build

发布

在根目录运行 npm run release 即可发布所有子包。

npm run release

快捷发布

在根目录运行 npm run publish 即可快捷测试、打包、发布所有子包。

npm run publish

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.