-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passes flags to commands #230
Changes from 10 commits
849c3dd
4549c75
b24a954
efe4dca
cfc82ce
a0d74ca
6b1c061
a4fa198
6c31dbb
b027924
a07be00
7791596
94b883b
1c160b7
92cb53b
275c1a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,13 @@ node_modules/.bin/kyt setup -r git@github.com:delambo/kyt-starter-universal-angu | |
The `dev` command takes the entry index.js in `src/client/` and `src/server/`, compiles them, and starts client and backend servers. The dev environment includes hot reloading to allow for fast development. | ||
Optionally, you can configure urls for the development servers in the [kyt config](/docs/kytConfig.md). | ||
|
||
You can pass flags to the node server through `kyt dev`. | ||
For example: | ||
``` | ||
kyt dev -- --inspect | ||
``` | ||
will run the [node debugging for Chrome DevTools](https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27#.mpuwgy17v) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should also mention for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added separate notes. good catch! |
||
## build | ||
|
||
The `build` command takes the entry index.js in `src/client/` and `src/server/`, compiles them, and saves them to a build folder. This is an optimized production build. | ||
|
@@ -91,6 +98,11 @@ The `start` command takes the compiled code from the production build and runs a | |
|
||
Optionally, you can configure the server url in your [kyt.config.js](/docs/kytConfig.md). | ||
|
||
You can also pass flags to node through `kyt start`: | ||
``` | ||
kyt start -- --no-warnings | ||
``` | ||
|
||
## test | ||
|
||
The `test` command takes test files in your `src/` directory and runs them using [Jest](http://facebook.github.io/jest/). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this just be
eslint src/ -c ${configFile} ${flags.join(' ')}
? E.g. drop the--color
and--env
flagsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to specify color and browser since we're running it with shelljs now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be better to put
env: { browser: true}
in the base eslint config instead, this way it's overridable at the command-line by the user.I believe color is enabled by default anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved env but color doesn't work without the flag.