Versioning for app's: best practice? [SOLVED] #2018
Replies: 4 comments 2 replies
-
|
Sounds like a plugin? https://www.snowpack.dev/guides/plugins. Something like- |
Beta Was this translation helpful? Give feedback.
-
|
That looks pretty simple, even for a newbie. I'll do more reading and come back if I have more questions. Thanks for these speedy responses! |
Beta Was this translation helpful? Give feedback.
-
|
I got it working. A plugin turns out to be pretty simple, only needing two things:
Here's what worked for me: Thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
|
Keep in mind to check version 5.3.22 against version 5.3.4. The major version 5 is the same, we continue. The minor version 3 is the same, we continue. The revision is 22 which is higher than 4, therefore 5.3.22 is newer than 5.3.4. Let's check version 5.4.2 against version 5.3.4. The major version 5 is the same, we continue. The minor version 4 is higher than minor version 3, therefore 5.4.2 is newer than 5.3.4. Always remember these steps as I always do in making apps, recently I did the same thing for baby jeeter pre rolls app! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am converting a small project to Snowpack. What a delight! It has been so straightforward (compared to all the copy/paste magic I had to do to make gulp work.)
I'm looking for advice about best practice for incorporating a "version number" into my app. The current app uses
%%GULP_INJECT_VERSION%%to display the "version" property frompackage.json.My question: Is there a best practice to get this effect with Snowpack? I could, of course, update manually, but wonder if there is some mechanism for retrieving version information from either the
package.jsonor git tag or ... Thanks.Beta Was this translation helpful? Give feedback.
All reactions