Giter VIP home page Giter VIP logo

http's Introduction

build status

deot/http

用于JS开发的请求工具

Monorepo

包名 版本 说明
core npm 控制中心,只需实现provider,即可实现基于JS*端的请求体
client npm Browser端请求体
server npm Node端请求体
hooks npm 用于对onRequestonResponse增强
shared npm 公共方法(暂无)
index npm 自动匹配使用@deot/http-client还是@deot/http-server

Contributing

这是一个 monorepo 仓库 ,使用 pnpm 管理

安装环境

$ npm run init 

$ 
$ pnpm install

添加依赖或添加新的包

$ npm run add

关联

$ npm run link

测试

$ npm run test

# 或者 直接添加参数
$ npm run test -- --package-name '**' --watch

开发

$ npm run dev

# 或者 直接添加参数
$ npm run dev -- --package-name '**'

打包

$ npm run build

# 或者 直接添加参数
$ npm run build -- --package-name '**'

代码检查

$ npm run lint

发布/自动生成 ChangeLog

$ npm run release
可选参数
参数 备注
--no-dry-run 默认dry run不输出任何文件
--no-tag 默认输出tag
--no-publish 默认发布到npm
--no-commit 默认提交到git commit
--no-push 默认执行git push
--force-update-package 即时没找到commit也会强制更新, 如@xxx/xxx,@xxx/xxx**,不输入会弹出确认框`
--skip-update-package 跳过要更新的包,如@xxx/xxx,@xxx/xxx**,不输入会弹出确认框
--custom-version 指定更新版本号,如x.x.x,不输入会弹出输入框
--patch,--major,--minor 自动更新版本号的格式
Commit收录的格式
  • break change
  • feat
  • fix
  • style
  • perf
  • types
  • refactor
  • chore

自动增加PRissue的地址, commit内含Breaking Change会自动把版本改为major

refactor(index): remove deprecated \n BREAKING CHANGE: any

fix(index): ci tag (#2)

fix(shared): error (close #1)
Commit无影响的格式
fix: invaild commit

关联

CONTRIBUTING

LICENSE (MIT)

http's People

Contributors

deot 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.