Giter VIP home page Giter VIP logo

blog's Introduction

👨🏻‍💻 Web Front-end Developer

Tech Stack

  • 🛠 Lang & Framework: Vue/React, Javascript
  • ⛏ Interest: Svelte, Typescript

Latest posts from 📝 xiaozhu.dev

TIL from 🗒 til.xiaozhu.dev

Portfolio

pending...

Leo's github stats

Click👆
  🤷‍♂️
  

build GitHub last commit pv

blog's People

Contributors

mopig avatar rust-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blog's Issues

npm version 使用详解

关于 npm version 的使用

正常的版本更新

  • 大版本更新(包含 breaking change):npm version major
  • 小版本更新(小的功能迭代):npm version minor
  • 补丁更新(bugfix):npm version patch

预发布版本

npm version premajornpm version preminornpm version preminor。针对每一次版本更新,根据更新版本的不同,执行前面三个命令中的一个,后面在此版本继续更新时,只需要执行 npm version prerelease,例:

project-name|master ⇒ npm version prepatch
> v1.0.1-0
project-name|master ⇒ npm version prerelease
> v1.0.1-1
project-name|master ⇒ npm version patch # 结束预发版
> v1.0.1

可以通过 --preid=<prerelease-id> 指定预发版的关键词,例:

project-name|master ⇒ npm version preminor --preid=alpha
> v1.1.0-alpha.0
project-name|master ⇒ npm version prerelease
> v1.1.0-alpha.1
project-name|master ⇒ npm version minor
> v1.1.0

结合 npm scripts

"scripts": {
  "preversion": "npm test",
  "version": "npm run build && git add -A dist",
  "postversion": "git push && git push --tags && rm -rf build/temp"
}

更多关于语义化版本的内容,请戳 semver.inc

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.