Webatrice: improve prebuild steps and add .env configs (#4564)

* create .env file for server configuration

* render client version

* automate env file

* add prestart command

* create server-props.json instead of using .env

* automate master proto file

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-02-12 17:58:47 -06:00 committed by GitHub
parent 408a13c937
commit 88b861d632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 119 additions and 21175 deletions

View file

@ -33,12 +33,11 @@
"typescript": "^4.4.4"
},
"scripts": {
"postinstall": "run-script-os",
"postinstall:windows": "powershell .\\copy_shared_files.ps1",
"postinstall:default": "./copy_shared_files.sh",
"start": "cross-env ESLINT_NO_DEV_ERRORS=true react-scripts start",
"build": "cross-env DISABLE_ESLINT_PLUGIN=true react-scripts build",
"test": "cross-env CI=true react-scripts test",
"prebuild": "node prebuild.js",
"prestart": "node prebuild.js",
"build": "react-scripts build",
"start": "react-scripts start",
"test": "react-scripts test",
"test:watch": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint \"./**/*.{ts,tsx}\"",
@ -82,9 +81,8 @@
"@types/redux-form": "^8.3.3",
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"identity-obj-proxy": "^3.0.0",
"run-script-os": "^1.1.6"
"fs-extra": "^10.0.0",
"identity-obj-proxy": "^3.0.0"
}
}