Whose version and build number coincide with pubspec.yaml: 1.0.0+1
3/
So, if our build folder has it, it means that we can access it!
Let's try it out 🚀
1⃣ `cd build/web` to go to the web build
2⃣ If you have python 3 installed, `python3 -m http.server 8080` will host it at localhost:8080
3⃣ Open your browser and navigate to localhost:8080
4/
If the app is running, we can access the `version.json`!
4⃣ Go to localhost:8080/version.json
It should open a blank web page where you see the contents of the version.json file!
This makes it WAY easier to determine if the deployment went through 🤩
5/
So, what other files do you show publicly in your `build/web` folder?
Maybe some easter eggs for your users? 🥚
If you liked the content, consider following me! @GonPalma
We are able to stipulate what are the flags and arguments we need to use, such as:
`dart run bin/converter.dart --verbose --out-path="/out" data.json`
2/
This will:
1⃣ Run the converter.dart script
2⃣ With the flag verbose
3⃣ Setting an `out-path` of `/out`
4⃣ Accepting as a last argument the file `data.json`