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/07 09:10:27 UTC

[echarts] branch fix-readme created (now d10465521)

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

ovilia pushed a change to branch fix-readme
in repository https://gitbox.apache.org/repos/asf/echarts.git


      at d10465521 chore: start a local server for testing when run dev #17868

This branch includes the following new commits:

     new d10465521 chore: start a local server for testing when run dev #17868

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[echarts] 01/01: chore: start a local server for testing when run dev #17868

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit d104655219f37223f6de3cab285bc2ab1d1d05ad
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon Nov 7 17:09:42 2022 +0800

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

diff --git a/README.md b/README.md
index 8c98532b3..28deee843 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,8 @@ 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 will start a server with './test' at http://127.0.0.1:8080.
+# Open http://127.0.0.1:8080/-cases.html to view the list of test cases.
 npm run dev
 
 # Check correctness of TypeScript code.
diff --git a/package.json b/package.json
index 0e7ea3f84..0fbacd4cb 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 http-server -- test & npm run dev:fast",
     "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