-
Notifications
You must be signed in to change notification settings - Fork 351
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
#38 support windows development #114
Changes from all commits
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 |
---|---|---|
|
@@ -5,10 +5,12 @@ | |
"module": "src/index.tsx", | ||
"license": "MIT", | ||
"scripts": { | ||
"predev": "node -e 'console.clear()' && yarn install && yarn dev:clean", | ||
"dev": "nodemon --config config/nodemon/dev.json", | ||
"dev:nowatch": "cross-env NODE_ENV=development BABEL_ENV=development babel-node node_modules/.bin/webpack-dev-server --config config/webpack/webpack.client.babel.ts", | ||
"dev:nowatch": "cross-env NODE_ENV=development BABEL_ENV=development webpack-dev-server --config config/webpack/webpack.client.babel.ts", | ||
"dev:clean": "rimraf '../.build/development/{*,.*}' 'node_modules/.cache'", | ||
"prod": "cross-env NODE_ENV=production BABEL_ENV=production babel-node node_modules/.bin/webpack --config config/webpack/webpack.client.babel.ts", | ||
"preprod": "node -e 'console.clear()' && yarn install && yarn prod:clean", | ||
"prod": "cross-env NODE_ENV=production BABEL_ENV=production webpack --config config/webpack/webpack.client.babel.ts", | ||
Comment on lines
+12
to
+13
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. Using pre- hooks only makes things even more confusing in my already super-confusing setup. =) |
||
"prod:clean": "rimraf '../.build/production/{*,.*}' 'node_modules/.cache'", | ||
"prod:serve": "nodemon --quiet --exec babel-node --extensions '.ts' ./src/server/server.ts", | ||
"prod:watch": "nodemon --config config/nodemon/prod.json", | ||
|
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.
It will break for people who work on remote machines. Why are these necessary?
It works for me with
0.0.0.0
on Windows 7 VM.If it is really necessary, please make it configurable through an environment variable and add to
.env.example
fileThere 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.
On both my windows machines, 0.0.0.0 didn't work. 127.0.0.1 is the standard localhost IP address.
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.
@eloisetaylor5693 Could you please patch and verify it for us?
Add and
.env
variable and set it to127.0.0.1
by default. Refer to this variable in webpack config. Those who need remote will change the var to0.0.0.0
,Thanks for your investigation!