Don't track version.json changes, move it to the src/ folder
This commit is contained in:
Родитель
017fee8a13
Коммит
4b52861466
|
@ -1,5 +1,7 @@
|
|||
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
src/version.json
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
"homepage": "https://mozilla.github.io/delivery-dashboard/",
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"prestart": "yarn run version-file",
|
||||
"build": "react-scripts build",
|
||||
"prebuild": "yarn run version-file",
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject",
|
||||
"deploy": "npm run build && gh-pages --add --dist build/",
|
||||
|
|
|
@ -2,5 +2,5 @@ NAME="Delivery Dashboard"
|
|||
SOURCE=$(git config remote.origin.url | sed -e 's|git@|https://|g' | sed -e 's|github.com:|github.com/|g')
|
||||
VERSION=$(git describe --always --tag)
|
||||
COMMIT=$(git log --pretty=format:'%H' -n 1)
|
||||
echo "{\"name\":\"${NAME}\",\"version\":\"${VERSION}\",\"source\":\"${SOURCE}\",\"commit\":\"${COMMIT}\"}" > version.json
|
||||
echo "{\"name\":\"${NAME}\",\"version\":\"${VERSION}\",\"source\":\"${SOURCE}\",\"commit\":\"${COMMIT}\"}" > src/version.json
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"name":"Delivery Dashboard","version":"6dd91d4","source":"https://github.com/mozilla/delivery-dashboard.git","commit":"6dd91d4c386661bda382de942e00b5f363b797cf"}
|
Загрузка…
Ссылка в новой задаче