Don't track version.json changes, move it to the src/ folder

This commit is contained in:
Mathieu Agopian 2017-09-08 14:26:19 +02:00
Родитель 017fee8a13
Коммит 4b52861466
4 изменённых файлов: 5 добавлений и 2 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -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"}