Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
This project is archived. Its data is
read-only
.
Changes
Page history
Fixed up CLI commands
authored
Nov 08, 2020
by
Kim Carter
Show whitespace changes
Inline
Side-by-side
local/local-workflow.md
View page @
e4718582
...
...
@@ -167,14 +167,33 @@ Discussed [here](https://glebbahmutov.com/blog/debugging-mocha-using-inspector/)
### CLI
~/Source/purpleteam
`npm run debug`
From the
`purpleteam`
root directory you can run the following command:
```
shell
npm run debug
```
Or if you need to override a NODE_ENV environment variable to say
`local`
then run:
```
shell
env
NODE_ENV
=
"local"
npm run debug
```
Or if you actually want to exercise say the
`test`
command, run the following command:
```
shell
env
NODE_ENV
=
"local"
npm run debug
--
test
```
In Chromium, open
`chrome://inspect`
and click "inspect", which will drop you into the first loaded script.
### Tests
~/Source/purpleteam
`npm run test:debug`
From the
`purpleteam`
root directory you can run the following command:
```
shell
npm run
test
:debug
```
Or if you need to override a NODE_ENV environment variable to say
`local`
then run:
```
shell
env
NODE_ENV
=
"local"
npm run
test
:debug
```
In Chromium, open
`chrome://inspect`
and click "inspect", which will drop you into the first loaded script.
# Full system run
Leaving
`docker stats`
running in a terminal is often useful to see which containers are running and how much work they're doing.
...
...
...
...