Skip to content

Commit 2466f82

Browse files
committed
app: re-create .gitkeep file after build
To avoid showing the .gitkeep as being deleted after running the frontend build, we add it back through a postbuild step.
1 parent 4499e45 commit 2466f82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"start": "BROWSER=none react-scripts start",
99
"develop": "REACT_APP_USE_SAMPLE_DATA=true yarn start",
1010
"build": "react-scripts build",
11+
"postbuild": "echo -n '# Keep directory in git.' > build/.gitkeep",
1112
"test": "react-scripts test --env=jest-environment-jsdom",
1213
"test:ci": "cross-env CI=true yarn test --coverage",
1314
"eject": "react-scripts eject",

0 commit comments

Comments
 (0)