chore: start a local server for testing when run dev #17868#17882
Conversation
|
Thanks for your contribution! The pull request is marked to be |
There was a problem hiding this comment.
There are two problems with this command,
- The former command may block the latter command.
- It's not enough to only serve the
testfolder as the test case requires some external resources, such asdistandnode_modules.
So I would like to suggest using the following command,
npx concurrently -n echarts,server \"npm run dev:fast\" \"npx http-server -c-1 -s -o test\"That is, serve the project root folder and open the test folder automatically.
-c-1 is to disable the cache.
-s is to make the server silent and no access logs. It's optional. Do you think it's good to add that?
It doesn't seem to be blocked to me. Can you give a more detailed explanation? In my environment,
Need to install the following packages:
concurrently@7.5.0
Ok to proceed? (y)And there are other problems with your suggestion: [0] /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
[0] /bin/sh: -c: line 1: syntax error: unexpected end of file
[1] /bin/sh: run: command not found
[0] "npm exited with code 2
[2] /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
[2] /bin/sh: -c: line 1: syntax error: unexpected end of file
[1] run exited with code 127
[2] dev:fast" exited with code 2
[3] /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
[3] /bin/sh: -c: line 1: syntax error: unexpected end of file
[3] "npx exited with code 2I'm using Bash on Mac terminal. |
|
It seems Windows and Mac shell have some differences. @plainheart 's suggestions works well in |
Thanks for accepting the suggestion! Maybe we can pass |
|
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
|
Thanks @Ovilia That's why echarts' better than other Chinese open source softwares. |
Brief Information
This pull request is in the type of:
What does this PR do?
Start a local server when run
npm run devand update the README. Hopefully, this can better help new contributors to get started.Fixed issues
#17868
Details
Before: What was the problem?
After: How does it behave after the fixing?
Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information