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

mozilla / blurts-server / 3fe052a3-a46d-4b6e-ac3b-1426227047d8

pending completion
3fe052a3-a46d-4b6e-ac3b-1426227047d8

push

circleci

GitHub
Merge pull request #2830 from mozilla/MNTOR-1160/add-new-email

282 of 1332 branches covered (21.17%)

Branch coverage included in aggregate %.

79 of 79 new or added lines in 7 files covered. (100.0%)

959 of 3548 relevant lines covered (27.03%)

4.39 hits per line

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

0.0
/src/esbuild.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
// TODO: this is a build/config file and should probably live in the root, after the old esbuild.js file is removed.
6

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

9
import esbuild from 'esbuild'
10
import { readdirSync } from 'node:fs'
11
import AppConstants from './app-constants.js'
12

13
const cssPartialDir = 'client/css/partials/'
×
14
const cssPartialPaths = readdirSync(cssPartialDir, { withFileTypes: true })
×
15
  .filter(dirent => dirent.isFile())
×
16
  .map(dirent => cssPartialDir + dirent.name)
×
17

18
const jsPartialDir = 'client/js/partials/'
×
19
const jsPartialPaths = readdirSync(jsPartialDir, { withFileTypes: true })
×
20
  .filter(dirent => dirent.isFile())
×
21
  .map(dirent => jsPartialDir + dirent.name)
×
22

23
esbuild.build({
×
24
  logLevel: 'info',
25
  bundle: true,
26
  entryPoints: ['client/js/index.js', 'client/css/index.css', ...cssPartialPaths, ...jsPartialPaths],
27
  entryNames: '[dir]/[name]',
28
  loader: { '.woff2': 'copy' },
29
  assetNames: '[dir]/[name]',
30
  external: ['*.webp', '*.svg'],
31
  outdir: '../dist',
32
  format: 'esm',
33
  minify: AppConstants.NODE_ENV !== 'dev',
34
  sourcemap: AppConstants.NODE_ENV !== 'dev',
35
  splitting: true,
36
  treeShaking: true,
37
  platform: 'neutral'
38
})
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