Software Architect
I am Sergej and I am a Software Architect from Germany (AURUM GmbH). I have been developing on Microsoft technologies for more than 14 years, especially in SharePoint / Microsoft 365. With this blog, I want to share my knowledge with you and also improve my English skills. The posts are not only about SPFx (SharePoint Framework) but also about tips & tricks around the M365 world & developments of all kinds. The posts are about TypeScript, C#, Node.js, Vue.js, Visual Studio/ VS Code, Quasar, PowerShell, and much more. I hope you will find some interesting posts. I would also be happy if you follow me. Greetings from Germany Sergej / $€®¥09@
Markdown supported · ⌘↵ to post
Hello Thomas Leclaire, hello Sujit Daswant,
now you can use my newly released npm package @spfxappdev/cli. This package is a command-line utility that modifies your SharePoint Framework solution so that you can use the versioning logic described above without additional modifications. You can use "alias" paths instead of relative paths. Also, an automatic "version increment" task (gulp) is included and you can build, version, bundle and package the solution with just one npm command.
A blog post will follow in the next few days.
Hi Sergej Schwabauer, I am really appreciate for this blog, this is helped me lot for Auto increment the the version number.
But I am facing issue with the above, when I am trying to run the command for npm run publish -- --no-patch,npm run publish -- --major,npm run publish -- --minor version always the minor version get updated even for no patch also.
Please let me know how to fix this.
How would you use this in an Azure Devops Deployment pipeline where you would have to save the increased version back to the repo?
$€®¥09@
Jonathan Adcox
Very useful. Deployed it instantly