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

mozilla / blurts-server / #11898

pending completion
#11898

push

circleci

web-flow
Merge pull request #2770 from mozilla/license

Add license headers in source files

282 of 1138 branches covered (24.78%)

Branch coverage included in aggregate %.

959 of 3049 relevant lines covered (31.45%)

2.55 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 cssPartialEntryPoints = readdirSync(cssPartialDir, { withFileTypes: true })
×
15
  .map(item => cssPartialDir + item.name)
×
16

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