Use same version number for server and webapp, add CI check
- Check webapp and server have same version number - Use `genversion` on build to create javascript file with version string from pyproject.toml - Expose the version number in the js interface - Correct format of current of alpha version string because javascript complains Closes #382
This commit is contained in:
parent
24b6eb74a1
commit
c79184a6d9
8 changed files with 267 additions and 9 deletions
|
|
@ -1,14 +1,15 @@
|
|||
{
|
||||
"name": "openflexure-microscope-jsclient",
|
||||
"version": "0.0.0",
|
||||
"version": "3.0.0-alpha1",
|
||||
"private": true,
|
||||
"description": "User client for the OpenFlexure Microscope Server",
|
||||
"author": "OpenFlexure <contact@openflexure.org> (https://www.openflexure.org)",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --mode development",
|
||||
"serve-without-imjoy": "VUE_APP_ENABLE_IMJOY=false vue-cli-service serve --mode development",
|
||||
"build": "vue-cli-service build --openssl-legacy-provider --mode production",
|
||||
"build-without-imjoy": "VUE_APP_ENABLE_IMJOY=false vue-cli-service build --mode production",
|
||||
"gv": "genversion src/version.js",
|
||||
"serve": "npm run gv; vue-cli-service serve --mode development",
|
||||
"serve-without-imjoy": "npm run gv; VUE_APP_ENABLE_IMJOY=false vue-cli-service serve --mode development",
|
||||
"build": "npm run gv; vue-cli-service build --openssl-legacy-provider --mode production",
|
||||
"build-without-imjoy": "npm run gv; VUE_APP_ENABLE_IMJOY=false vue-cli-service build --mode production",
|
||||
"lint": "vue-cli-service lint",
|
||||
"lint:fix": "vue-cli-service lint --fix"
|
||||
},
|
||||
|
|
@ -31,6 +32,7 @@
|
|||
"eslint": "^6.8",
|
||||
"eslint-plugin-prettier": "^3.4",
|
||||
"eslint-plugin-vue": "^6.2",
|
||||
"genversion": "^3.2.0",
|
||||
"less": "^3.13",
|
||||
"less-loader": "^5.0",
|
||||
"mdns-js": "^1.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue