Граф коммитов

91 Коммитов

Автор SHA1 Сообщение Дата
Jake Bailey 195203e971
Add regex eslint plugin, fix lints (#59371) 2024-08-13 14:16:53 -07:00
Jake Bailey ba46eca139
Use monocart for coverage reports, enable codecov (#58850) 2024-07-17 14:55:45 -07:00
Jake Bailey 1b867c52b2
Switch to JSDoc imports in scripts (#59068) 2024-06-28 13:27:23 -07:00
Sheetal Nandi 15f67e0b48
Option to skipSysTests since they dont change branch to branch and ca… (#59025) 2024-06-26 09:41:01 -07:00
Jake Bailey 4cedfe40b0
Update dprint, don't force multiline imports for imports of single name (#58038) 2024-04-02 10:58:16 -07:00
Jake Bailey 23156cb970
Error on unused eslint directives, reenable lost eslint rules (#57350) 2024-02-27 10:49:41 -08:00
Ron Buckton e1ef69d99e
pass 'detached:true' for diff tool (#56293) 2023-11-03 11:18:21 -04:00
Jake Bailey 4b177a186a
Ensure readJson in build throws when errors are present (#55466) 2023-09-06 11:19:33 -07:00
Jimmy Wärting 3a22d3aded
Remove the dependency of "del" (#55112)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-23 16:42:37 -07:00
Jake Bailey 5e8c261b6a
dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Jake Bailey 7eece9f798
Remove RWC runner and related infrastructure (#55187) 2023-08-07 14:35:15 -07:00
Jake Bailey 6a96b9767e
Enable eslint rule no-useless-escape (#55138) 2023-07-28 16:02:38 -07:00
Ron Buckton 913e556373
Add --coverage option to build scripts for tests (#54499) 2023-06-02 16:00:47 -04:00
Jake Bailey edc343d733
Add custom GHA report for package size (#53241) 2023-03-14 09:23:51 -07:00
Jake Bailey 3f4d16a25e
Remove lib folder (LKG) and use node_modules for building (#52226) 2023-03-07 15:34:47 -08:00
Jake Bailey a6be79d535
Remove old test262 and dt runner infra (#53125) 2023-03-07 11:59:47 -08:00
Jake Bailey c97ddac60d
Run lint in parallel with runtests-parallel (#52945)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-02-27 11:06:20 -08:00
Jake Bailey 6fe711f85a
Remove unused eslint-disable directives (#52987) 2023-02-27 11:01:37 -08:00
Jake Bailey 2a8436c529
Use eslint-plugin-simple-import-sort (#52090) 2023-02-02 14:36:21 -08:00
Jake Bailey 3d38971b7f
Fix error in herebyfile after comparison strictness change (#52376) 2023-01-23 13:49:26 -08:00
Jake Bailey 4ac75fa2b6
Remove emitDeclarationOnly hack now that build mode supports it as a flag (#51795) 2022-12-06 16:02:23 -08:00
Jake Bailey 2d2a4343b8
Reformat imports to be one identifier per line (#51565) 2022-11-17 13:42:18 -08:00
Jake Bailey 8eed2ca2dd
Consistently respect --no-typecheck flag in build (#51575) 2022-11-17 12:44:39 -08:00
Ron Buckton e67b06e909
Simplistic watch mode for runtests (#51461)
* Simplistic watch mode for runtests

* Use esbuild WatchMode object for testRunner updates

* switch AbortController to CancelToken
2022-11-09 15:07:08 -05:00
Jake Bailey d237468cda
Add --no-typecheck option for runtests/runtests-parallel/min/local (#51460) 2022-11-08 15:39:04 -08:00
Jake Bailey acfe7ac6d2 Remove mkdirp
If our build scripts target Node 10+, we can use the builtin mkdir
function in recursive mode instead.
2022-11-07 13:35:48 -08:00
Jake Bailey 394c4ae68b Use jsonc-parser instead of LKG compiler in build
Profiling the build roughly half of the time spent loading the
build is spent importing typescript.js, for this one function.

Since this stack is already adding required devDependencies, switch
readJson to use jsonc-parser (published by the VS Code team), rather
than importing the entire LKG typescript.js library.
2022-11-07 13:35:48 -08:00
Jake Bailey 3cd72e76b2 Change build system to hereby
This eliminates a significant number of dependencies, eliminating all
npm audit issues, speeding up `npm ci` by 20%, and overall making the
build faster (faster startup, direct code is faster than streams, etc)
and clearer to understand.

I'm finding it much easier to make build changes for the module
transform with this; I can more clearly indicate task dependencies and
prevent running tasks that don't need to be run.

Given we're changing our build process entirely (new deps, new steps),
it seems like this is a good time to change things up.
2022-11-07 13:35:48 -08:00
Jake Bailey 4139807e75 Add build via esbuild
This configures the existing build tasks to use esbuild by default. If
using the plain files is desired, passing `--bundle=false` will build
using plain files and still produce a runnable system.

This is only a basic build; a more efficient build is provided later
when gulp is replaced by hereby.
2022-11-07 13:34:44 -08:00
Jake Bailey ad56b5ca56
Convert scripts/Gulpfile to checked mjs/cjs so they can run without compilation (#50988) 2022-10-07 09:50:46 -07:00
Jake Bailey 68d526c200
Don't run linter after tests runs (#50597) 2022-09-12 13:30:18 -07:00
Jake Bailey 3c3820b1a4
Simplify CI detection (#50661) 2022-09-06 16:36:37 -07:00
Jake Bailey 5c2f770d97
Remove unused cancellation from build (#50658) 2022-09-06 12:43:06 -07:00
Jake Bailey 6362fb2dce
Replace eslint rulesdir with eslint-plugin-local, convert eslint rules to JS (#50380) 2022-08-22 13:46:03 -07:00
Jake Bailey ef88fbb8ab
Remove some unused deps and dead code (#50367) 2022-08-19 09:42:14 -07:00
Jake Bailey 9f7c0cbad7
Run ESLint over our JS files, fix all lints (#50172) 2022-08-15 08:42:26 -07:00
Mateusz Burzyński d337cbc19f
Run `mocha` using `process.execPath` instead of harcoding `"node"` (#48797) 2022-05-04 08:23:08 -07:00
Ryan Cavanaugh 9153eaaee0
Reserve a core in runtests-parallel on non-CI machines (#48502) 2022-03-31 21:27:58 -07:00
Ron Buckton c792a66065
Pin chalk to ^4.1 (#46985)
* Pin chalk to ^4.1

* Revert #46931
2021-12-02 11:05:17 -08:00
uhyo 04f831d795
Import chalk with import() syntax (#46931)
This makes code compatible with chalk v5.0.0.
2021-11-29 13:32:29 +00:00
Eli Barzilay fa2ad1a35a Fix `findUpDir.ts` and uses
Missed a bunch of stuff in #46414 (556098e).
2021-11-01 16:45:49 -04:00
Eli Barzilay 556098ed50 Avoid hard-wired build-tree paths
Instead, search for stuff up the directory tree, with the main
functionality being to look for `Gulpfile.js` and assume the resulting
directory is the root.

(Unfortunatley, this is implemented twice, one in `scripts` and another
in `src`.  It's not possible to use a single implementation for both
since that would require assuming a directory structure which this is
intended to avoid.)

Also, in `scripts/build/projects.js`, abstracdt common exec
functionality into a local helper, and use full paths based on the above
search instead of assuming relative paths assuming CWD being in the
project root.
2021-10-18 17:43:45 -04:00
Eli Barzilay 7c3f607032 `scripts/build/utils` simplify exec
Using shell-based execution is always a bad idea; this thing didn't do
that via an option, but instead did it manually by constructing a shell
command so it suffers from the same diseases.

Perhaps there was need for this at some point in the past, but things
are pretty robust now, so there's no need to avoid running the command
normally.  The only thing that is needed is to add `which` which also
handles windows executable suffixes.

I tried this with a fresh clone on windows, where the tree and TS are
installed in paths that have spaces, and everything works as it should.
2021-10-18 17:43:19 -04:00
Andrew Branch d3055f0f29
--inspect can no longer be used as a flag through gulp (#42701)
* --inspect can no longer be used as a flag through gulp

* Add --break alias

* Update scripts/build/options.js
2021-02-12 16:01:22 -08:00
Ron Buckton fbd1c958e5
Update failed test tracking to support Mocha 6+ (#39211)
* Update failed test tracking to support Mocha 6+

* grep should not be an array
2020-06-23 15:19:30 -07:00
Eli Barzilay 8939b251b8 Fix cmdline aliases specs 2020-01-03 15:43:30 -05:00
Eli Barzilay dadb64ba70 Disable timeout when debugging
Use `-t 0` since somewhere a default timeout is set otherwise.
2019-12-30 14:42:35 -05:00
Eli Barzilay cfefe841b7 Allow `--inspect=port` in `gulp runtests`
Makes it possible to run two debuggers side-by-side.
2019-11-22 08:42:38 -05:00
Nathan Shively-Sanders 0bbeab6e61
Revert "Skip costly tests" (#35197)
* Revert "Skip costly tests"

* fix package.json format
2019-11-19 12:59:09 -08:00
Andrew Casey 5c951635e5
Fix chalk import (#35040) 2019-11-11 11:24:20 -08:00