NPM - Efficient Project Versioning

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

If you are running other things in your build command and want to update the version before the build and say, a push to github, then you can use a "pre" script to update the version. Eg:
"prebuild": "npm version patch",
This will make the change before running your build script.
If you get an error about "Git working directory not clean" it means that it wants to do an update to Git for you about the new version number but can't because you have other changes that you have made. You can avoid the error by adding this flag to the command:
"prebuild": "npm version patch --no-git-tag-version",

SteveGriffith-ProfssorStv
Автор

Thanks a lot Steve for your fantastic efforts. And very good topic, npm.

jasco
Автор

Awesome, keep it up. Learning a lot from you

juraev
Автор

great little videos, this playlist of server-sode Node js is amazing

emanueltejadacoste