You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2022/11/08 04:06:29 UTC

[echarts] branch master updated: chore: start a local server for testing when run dev #17868 (#17882)

This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new 0f149dc89 chore: start a local server for testing when run dev #17868 (#17882)
0f149dc89 is described below

commit 0f149dc89cfc57200daac015861b7cc7029a85de
Author: Wenli Zhang <zw...@gmail.com>
AuthorDate: Tue Nov 8 12:06:22 2022 +0800

    chore: start a local server for testing when run dev #17868 (#17882)
---
 README.md    | 3 +++
 package.json | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 8c98532b3..78472efa7 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,9 @@ Execute the instructions in the root directory of the echarts:
 npm install
 
 # Rebuild source code immediately in watch mode when changing the source code.
+# It opens the `./test` directory and you may open `-cases.html` to get the list
+# of all test cases.
+# If you wish to create a test case, run `npm run mktest:help` to learn more.
 npm run dev
 
 # Check correctness of TypeScript code.
diff --git a/package.json b/package.json
index 0e7ea3f84..3bc3365d8 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
     "build:lib": "node build/build.js --prepublish",
     "build:extension": "node build/build.js --type extension",
     "dev:fast": "node build/build-i18n.js && node build/dev-fast.js",
-    "dev": "npm run dev:fast",
+    "dev": "npx -y concurrently -n build,server \"npm run dev:fast\" \"npx -y http-server -c-1 -s -o test\"",
     "prepublish": "npm run build:lib",
     "release": "npm run build:lib && npm run build:i18n && npm run build && npm run build:esm && npm run build:extension",
     "help": "node build/build.js --help",


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org