Application Version
Explore how to implement efficient application versioning by adding a script to package.json that generates a Python module with the current version number. Learn to sync this with npm and Git so your front-end Python code can access and display the app version dynamically.
We'll cover the following...
We'll cover the following...
Adding the script
To easily get the current package.json version into our application, we can add another script to package.json to write the version to a Python file. With that, we can directly import the semver version number into our application. Let’s add the version script entry in the script section of package.json: ...