• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jlfwong / speedscope / 17532620594

07 Sep 2025 07:01PM UTC coverage: 43.602% (-0.4%) from 43.984%
17532620594

push

github

web-flow
#520 Create 'dist' dir when not existing (#521)

dev-server creates outdir when not yet existing

1627 of 3776 branches covered (43.09%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 1 file covered. (0.0%)

114 existing lines in 2 files now uncovered.

2738 of 6235 relevant lines covered (43.91%)

7953.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/scripts/dev-server.ts
1
import * as esbuild from 'esbuild'
×
NEW
2
import {existsSync, mkdirSync} from 'fs'
×
UNCOV
3
import {buildOptions, generateIndexHtml} from './esbuild-shared'
×
4

5
async function main() {
6
  const outdir = 'dist'
×
NEW
7
  if (!existsSync(outdir)) {
×
NEW
8
    mkdirSync(outdir)
×
9
  }
UNCOV
10
  let ctx = await esbuild.context({
×
11
    ...buildOptions,
12
    outdir,
13
    write: false,
14
    metafile: true,
15
    plugins: [
16
      {
17
        name: 'speedscope-dev-server',
18
        setup(build) {
19
          build.onEnd(buildResult => {
×
20
            generateIndexHtml({
×
21
              buildResult,
22
              outdir,
23
              servingProtocol: 'http',
24
            })
25
          })
26
        },
27
      },
28
    ],
29
  })
30

31
  await ctx.rebuild()
×
32

33
  let {host, port} = await ctx.serve({
×
34
    servedir: outdir,
35
  })
36

37
  console.log(`Server is running at http://${host}:${port}`)
×
38
}
39

40
main()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc