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

mozilla / blurts-server / 04f25c66-c843-4e18-9ce3-3add34af612d

pending completion
04f25c66-c843-4e18-9ce3-3add34af612d

push

circleci

GitHub
Merge pull request #2723 from mozilla/MNTOR-1015/breach-table-view

278 of 1063 branches covered (26.15%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 4 files covered. (100.0%)

948 of 2889 relevant lines covered (32.81%)

5.19 hits per line

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

0.0
/src/esbuild.js
1
// TODO: this is a build/config file and should probably live in the root, after the old esbuild.js file is removed.
2

3
// ESBuild is used to concat and compress the 'client' folder into the 'dist' folder (front-end only)
4

5
import esbuild from 'esbuild'
6
import { readdirSync } from 'node:fs'
7
import AppConstants from './app-constants.js'
8

9
const cssPartialDir = 'client/css/partials/'
×
10
const cssPartialEntryPoints = readdirSync(cssPartialDir, { withFileTypes: true })
×
11
  .map(item => cssPartialDir + item.name)
×
12

13
esbuild.build({
×
14
  logLevel: 'info',
15
  bundle: true,
16
  entryPoints: ['client/js/index.js', 'client/css/index.css', ...cssPartialEntryPoints],
17
  entryNames: '[dir]/[name]',
18
  loader: { '.woff2': 'copy' },
19
  assetNames: '[dir]/[name]',
20
  external: ['*.png', '*.svg'],
21
  outdir: '../dist',
22
  format: 'esm',
23
  minify: AppConstants.NODE_ENV !== 'dev',
24
  sourcemap: AppConstants.NODE_ENV !== 'dev',
25
  splitting: true,
26
  treeShaking: true,
27
  platform: 'neutral'
28
})
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

© 2025 Coveralls, Inc