File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,5 @@ coverage
2626
2727package-lock.json
2828aaa
29+
30+ user-chart.svg
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ import {
77 GistForm ,
88 updateGist
99} from "@api/gist"
10- import { filenameOf , getExistGist , validateTokenFromEnv } from "./common"
1110import { EChartsType , init } from "echarts"
11+ import { writeFileSync } from "fs"
1212import { exit } from "process"
13+ import { filenameOf , getExistGist , validateTokenFromEnv } from "./common"
1314
1415const ALL_BROWSERS : Browser [ ] = [ 'firefox' , 'edge' , 'chrome' ]
1516
@@ -210,6 +211,7 @@ async function main(): Promise<void> {
210211 const chartData = preProcess ( originData )
211212 // 3. render csv
212213 const svg = render2Svg ( chartData )
214+ writeFileSync ( 'user-chart.svg' , svg , 'utf-8' )
213215 // 4. upload
214216 await upload2Gist ( token , svg )
215217 // 5. finish
You can’t perform that action at this time.
0 commit comments