A weird problem with nodemon where it constantly cycles on the first docs run. I'll have to resolve this differently.

main
Zed A. Shaw 2 years ago
parent 71bdacf22d
commit eda1059d2b
  1. 4
      commands/init.js
  2. 5
      package.json

@ -49,6 +49,10 @@ export const main = async (opts) => {
good("Starting redis for your OS so you can register an admin."); good("Starting redis for your OS so you can register an admin.");
devsvc({start: true, noexit: true}); devsvc({start: true, noexit: true});
good("Generating the documentation first time...");
exec("npm run docs");
good("Documentation done.");
good("Migrating your database just in case."); good("Migrating your database just in case.");
exec("npm run knex migrate:latest") exec("npm run knex migrate:latest")
good("In another window start the app server with: npm run DANGER_ADMIN"); good("In another window start the app server with: npm run DANGER_ADMIN");

@ -8,7 +8,7 @@
}, },
"scripts": { "scripts": {
"dev": "run-p -l -n api queue watch tracker rendered-watch", "dev": "run-p -l -n api queue watch tracker rendered-watch",
"DANGER_ADMIN": "cross-env DANGER_ADMIN=1 run-p -l -n api queue tracker watch rendered-watch docs", "DANGER_ADMIN": "cross-env DANGER_ADMIN=1 run-p -l -n api queue tracker watch rendered-watch docs-watch",
"prod": "run-p api queue", "prod": "run-p api queue",
"tracker": "node ./bando.js tracker", "tracker": "node ./bando.js tracker",
"build": "node ./bando.js build --config build.prod.json", "build": "node ./bando.js build --config build.prod.json",
@ -17,7 +17,8 @@
"api": "nodemon ./bando.js api", "api": "nodemon ./bando.js api",
"queue": "nodemon ./bando.js queue", "queue": "nodemon ./bando.js queue",
"test": "npx ava tests/**/*.js", "test": "npx ava tests/**/*.js",
"docs": "nodemon bando.js codedoc --output public/docs/api 'lib/*.js' 'client/*.js' 'commands/*.js' 'api/*.js' 'api/**/*.js' 'queues/*.js' 'socket/*.js'", "docs": "node bando.js codedoc --output public/docs/api 'lib/*.js' 'client/*.js' 'commands/*.js' 'api/*.js' 'api/**/*.js' 'queues/*.js' 'socket/*.js'",
"docs-watch": "nodemon bando.js codedoc --output public/docs/api 'lib/*.js' 'client/*.js' 'commands/*.js' 'api/*.js' 'api/**/*.js' 'queues/*.js' 'socket/*.js'",
"modules": "./bando.js load", "modules": "./bando.js load",
"modules-watch": "nodemon --watch ../ljsthw-private/db/modules/ --ext .md,.js,.sh ./bando.js load", "modules-watch": "nodemon --watch ../ljsthw-private/db/modules/ --ext .md,.js,.sh ./bando.js load",
"rendered-watch": "nodemon --ignore \"rendered/build/**/*\" --watch ./rendered --watch static -e md,svelte,js,css ./bando.js rendered", "rendered-watch": "nodemon --ignore \"rendered/build/**/*\" --watch ./rendered --watch static -e md,svelte,js,css ./bando.js rendered",

Loading…
Cancel
Save