You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2022/09/12 18:31:46 UTC

[echarts-examples] 04/04: fix: tweak readme and add some build commands into package.json.

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

sushuang pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git

commit a5f0dd47e73bdcb6fc3e1d95163df9730317e41c
Author: 100pah <su...@gmail.com>
AuthorDate: Tue Sep 13 02:31:26 2022 +0800

    fix: tweak readme and add some build commands into package.json.
---
 .gitignore   |  3 ++-
 README.md    | 13 +++++++++----
 package.json |  2 +-
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/.gitignore b/.gitignore
index 158ffaee..15d78737 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,4 +20,5 @@ public/vendors/echarts/map/raw
 /e2e/node_modules
 
 tmp
-.webm
\ No newline at end of file
+.webm
+result.log
diff --git a/README.md b/README.md
index 7d84a7ee..1af09024 100644
--- a/README.md
+++ b/README.md
@@ -150,9 +150,9 @@ Note: the commands below will execute `npm install` in these local directories.
 
 ```shell
 # run e2e using local dependent repos and webpack.
-npm run test:e2e:local
+npm run test:e2e:local > result.log 2>&1
 # run e2e using local dependent repos and esbuild, which is much faster.
-npm run test:e2e:esbuild:local
+npm run test:e2e:esbuild:local > result.log 2>&1
 ```
 
 ### Run e2e test using remote dependent repos
@@ -161,11 +161,16 @@ Note: the commands below will download the repos listed in `echarts-examples/e2e
 
 ```shell
 # run e2e using remote dependent repos and webpack.
-npm run test:e2e
+npm run test:e2e > result.log 2>&1
 # run e2e using remote dependent repos and esbuild, which is much faster.
-npm run test:e2e:esbuild
+npm run test:e2e:esbuild > result.log 2>&1
 ```
 
+### Check the test result
+The test result is in:
++ the `result.log`
++ `echarts-examples/e2e/report.html`, the file should be opened in your own local http server.
+
 ### Run partial tests.
 
 > Note: This can only be used when you run the whole e2e test at least once.
diff --git a/package.json b/package.json
index f58ae57d..3aee8af4 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
     "release": "npm run compile:example && npm run build && node build/copyResource.js --env asf",
     "dev": "npx concurrently --kill-others \"npm:watch\" \"npm:server\"",
     "build:example": "npm run compile:example && node tool/build-example.js && node tool/build-example.js --gl",
-    "build:examplelist": "npm run compile:example && node tool/build-example.js --no-thumb",
+    "build:examplelist": "npm run compile:example && node tool/build-example.js --no-thumb && node tool/build-example.js --no-thumb --gl",
     "compile:example": "node tool/compile-example.js",
     "test:e2e": "node e2e/main.js --bundler webpack -m",
     "test:e2e:local": "node e2e/main.js --bundler webpack -m --local",


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