For the love of

semver

by Troy Rhinehart

semver

  1. semver

  2. pubish

  3. deploy

semver

Semantic Versioning

a simple set of rules and requirements that dictate how version numbers are assigned and incremented

semver

Major

1

Breaking Change

Minor

2

New Feature

Patch

3

Bugs/Docs/Tests

(>= v1.0.0)

semver

Major

0

Breaking Change

Minor

1

Breaking Change

Patch

2

New Features AND Bugs/Docs/Tests

(< v1.0.0)

semver

semver

Ranges

Symbol Example Description
* "*" Any/Latest
x "0.0.x", "1.0.x", "1.x.x" Any/Latest of position
^ "^0.6.0", "^15.3.0" >=1 Minor/Patch, <1 Patch
~ "~0.3.0", "~3.3.0" Patch

semver

^1.2.3

0.5.0 1.2.3
1.3.4 2.0.0

semver

~1.2.3

0.5.0 1.2.2
1.3.4 1.2.6

semver

^0.6.2

0.5.0 1.0.0
0.6.6 0.7.0

make publicly known, reveal, divulge, announce

publish

publish

  1. Switch to master branch
  2. Delete node_modules
  3. Run install
  4. Run version bump
  5. Run publish
  6. Finally push
  git checkout master
  git pull
  rm -f node_modules
  npm install
  npm version major|minor|patch
  npm publish
  git push origin master
  git push origin master --tags

to come into a position ready for use

deploy

deploy

  • vnext-api
  • vnext-editor
  • onboarding
  • more? 24 

deploy

Onboarding

  1. Checkout branch
  2. Delete node_modules
  3. Run install
  4. Install with save flag
  5. Commit and push
  6. Create PR
  git checkout -b <branch>
  rm -rf node_modules
  npm install
  npm i <name>@<version> -S|-D
  git commit -a -m "shrinkwrap"
  git push -u origin <branch>

/compare/<branch>

deploy

Editor/API

  1. Checkout branch
  2. Delete node_modules
  3. Run install
  4. Install with save flag
  5. Run shrinkwrap format
  6. Commit and push
  7. Create PR
  git checkout -b <branch>
  rm -rf node_modules
  npm install
  npm i <name>@<version> -S|-D
  git commit -a -m "shrinkwrap"
  git push -u origin <branch>

/compare/<branch>

  npm run shrinkwrapper-format

Questions?

For the love of semver!

By gingur

For the love of semver!

Semver, oh semver, wherefore art thou semver?

  • 95