Skip to content
Permalink
Browse files

fix(tools): rearrange scripts and graceful exit

  • Loading branch information...
raisedadead committed Jun 15, 2019
1 parent 8b40da0 commit 91adc43bcd0c9853171e6425e587a6fb5facfbeb
Showing with 5 additions and 3 deletions.
  1. +1 −0 api-server/package.json
  2. +1 −0 client/package.json
  3. +1 −1 docker-compose.yml
  4. +2 −2 package.json
@@ -5,6 +5,7 @@
"private": true,
"main": "development-entry.js",
"scripts": {
"develop": "node development-entry.js",
"babel-dev-server": "babel-node --inspect=0.0.0.0 ./server/server.js",
"build": "babel server --out-dir lib --ignore 'node_modules /**/*','/**/*.test.js' --copy-files",
"commit": "git-cz",
@@ -75,6 +75,7 @@
],
"license": "MIT",
"scripts": {
"clean": "gatsby clean",
"prebuild": "npm run build:workers && node ../tools/scripts/ensure-env.js",
"build": "node --max_old_space_size=7168 node_modules/gatsby-cli build",
"build:workers": "node --max_old_space_size=7168 node_modules/webpack-cli --env.production --config ./webpack-workers.js --progress",
@@ -80,7 +80,7 @@ services:
- seed_node_modules:/app/tools/scripts/seed/node_modules
- client_plugin_nav_data_node_modules:/app/client/plugins/fcc-create-nav-data/node_modules
working_dir: /app/api-server
command: node development-entry.js
command: npm run develop
ports:
- '3000:3000'
- '9229:9229'
@@ -5,10 +5,10 @@
"bootstrap": "lerna bootstrap --ci",
"clean": "npm-run-all clean:client clean:all-deps",
"clean:all-deps": "lerna clean && shx rm -rf node_modules",
"clean:client": "cd ./client && gatsby clean",
"clean:client": "cd ./client && npm run clean",
"develop": "npm-run-all ensure-env -p develop:*",
"develop:client": "cd ./client && npm run develop",
"develop:server": "cd ./api-server && node development-entry.js",
"develop:server": "cd ./api-server && npm run develop",
"docker:clean": "docker-compose run -u root --rm freecodecamp bash -c \"rm -rf **/node_modules/* **/node_modules/..?* **/node_modules/.[!.]* node_modules/* node_modules/..?* node_modules/.[!.]*\"",
"docker:develop": "docker-compose up client api-server",
"docker:init": "docker-compose run -u root --rm freecodecamp bash change_volumes_owner.sh && docker-compose run -u root --rm client bash -c \"cd .. && bash change_volumes_owner.sh\" && docker-compose run -u root --rm api-server bash -c \"cd .. && bash change_volumes_owner.sh\"",

0 comments on commit 91adc43

Please sign in to comment.
You can’t perform that action at this time.