Jelle van der Waa
4d8fc78a3f
build.js: prefer startsWith over regex with a caret
...
Found by eslint-plugin-unicorn.
2024-09-23 12:32:53 +02:00
Jelle van der Waa
baef584882
build: don't rely on implicitly imported process
...
This was fixed in Cockpit in cf1cca4166af4c59531850a8e0d0f20f6f455152
2024-07-17 13:13:57 +02:00
Jelle van der Waa
49c368809e
build.js: support outputting esbuild metadata file
...
ESbuild supports outputting a metadata file which can be used to view
bundle size information using https://esbuild.github.io/analyze/
2024-06-16 22:29:16 +02:00
Martin Pitt
15be883595
Move eslint/stylelint to static-code tests
...
stylelint 16 causes a deadlock/crash in esbuild [1]. There's no movement
on that issue, and we want stylelint 16 to be able to support the
Browser Baseline 2023.
Follow 1a28b31828 and
move the linters into test/static-code. This also starts to lint files
which are outside of esbuild's realm, such as documentation and
examples.
[1] https://github.com/evanw/esbuild/issues/3542
2024-02-07 20:27:15 +01:00
Martin Pitt
ad0a653f82
build.js: Fix escape characters
...
Spotted by ESLint when calling it on build.js itself (which the esbuild
integration didn't).
2024-02-07 17:57:56 +01:00
Tomas Matus
3b14e61390
build.js: support flags
...
Adds flags to build.js to use rsync, disable linting and use watch mode.
2023-07-26 13:38:51 +02:00
Tomas Matus
3d75eb66d7
build.js: Fix LINT env variable check
2023-07-20 13:53:33 +02:00
Subho
1c30b49d3d
Move from webpack to esbuild bundler
2023-04-12 10:23:20 +02:00