Skip to content

Commit

Permalink
Don't delete built js on docker-compose up
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Kriss committed Feb 18, 2017
1 parent e7ffed7 commit a4540bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ services:
- ./stethoscope/ui/src:/code/stethoscope/ui/src
- ./stethoscope/static:/code/stethoscope/static
- ./stethoscope/login:/code/stethoscope/login
command: ["npm", "run", "build"]
command: ["npm", "run", "buildonly"]
4 changes: 3 additions & 1 deletion stethoscope/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
},
"scripts": {
"start": "react-scripts start",
"build": "rm -r ../static/* ; mkdir -p ../login/templates/ && mkdir -p ../static && react-scripts build && cp -r build/static/* ../static/ && cp -r public/static/* ../static/ && cp build/index.html ../login/templates/layout.html",
"clean": "rm -r ../static/* ; rm ../login/templates/layout.html ; echo \"Building front end...reload when complete.\" > ../login/templates/layout.html",
"build": "npm run clean ; npm run buildonly",
"buildonly": "mkdir -p ../login/templates/ && mkdir -p ../static && react-scripts build && cp -r build/static/* ../static/ && cp -r public/static/* ../static/ && cp build/index.html ../login/templates/layout.html",
"test": "standard --fix && react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"analyze": "NODE_ENV=production webpack --json --config node_modules/react-scripts/config/webpack.config.prod.js | webpack-bundle-size-analyzer",
Expand Down

0 comments on commit a4540bf

Please sign in to comment.