Show changelog in intro page and when a new version is loaded

This commit is contained in:
Przemek Wiech
2021-10-31 19:52:53 +01:00
parent 2946d20c85
commit 98b1a1e48e
9 changed files with 1889 additions and 58 deletions

View File

@@ -27,9 +27,13 @@
"react-intl": "^5.15.5",
"react-linkify": "^0.2.2",
"react-router-dom": "^5.2.0",
"rehype-stringify": "^9.0.2",
"remark-parse": "^10.0.0",
"remark-rehype": "^10.0.0",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^2.0.3",
"topola": "^3.5.0"
"topola": "^3.5.0",
"unified": "^10.1.0"
},
"devDependencies": {
"@types/array.prototype.flatmap": "^1.2.2",
@@ -59,8 +63,8 @@
"typescript": "^4.2.3"
},
"scripts": {
"start": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` REACT_APP_GIT_TIME=`git log -1 --format=%ci` react-scripts start",
"build": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` REACT_APP_GIT_TIME=`git log -1 --format=%ci` react-scripts build",
"start": "REACT_APP_CHANGELOG=`cat CHANGELOG.md` REACT_APP_GIT_SHA=`git rev-parse --short HEAD` REACT_APP_GIT_TIME=`git log -1 --format=%ci` react-scripts start",
"build": "REACT_APP_CHANGELOG=`cat CHANGELOG.md` REACT_APP_GIT_SHA=`git rev-parse --short HEAD` REACT_APP_GIT_TIME=`git log -1 --format=%ci` react-scripts build",
"test": "react-scripts test --env=jsdom",
"prettier": "prettier --write src/**/*.{ts,tsx,json} && prettier --write src/*.{ts,tsx,json}",
"predeploy": "npm run build",