Commit Graph

3 Commits

Author SHA1 Message Date
Christopher Allen
64b531b87d feat(tests): Introduce chunk loading shims
- Add a buildShims task to build_tasks.js that, for each chunk,
  creates a correspondingly-named build/<chunk>.mjs that will
  either (in uncompressed mode) import and reexport that chunk's
  entry point module (e.g. core/blockly.js) or (in compressed
  mode) load dist/<chunk>_compressed.js using a <script> tag
  and then export the corresponding properties on the chunk's
  exports object.

- Provide helper methods used by these shims in
  tests/scripts/loading.mjs, including code to detect whether
  to load in compressed or uncompressed mode.

- Add a quote() function to scripts/helpers.js, used by
  buildShims.  This is copied from tests/bootstrap_helper.js,
  which will be removed in a later commit.
2023-08-10 17:01:10 +01:00
Christopher Allen
8bb6ac528b refactor(build): Simplify implementation of posixPath 2023-08-10 12:12:18 +01:00
YAMADA Yutaka
52879dd953 fix(build): build/test on windows (#6431)
* build: build/test on windows

* chore(deps): bump @hyperjump/json-schema from 0.18.4 to 0.18.5
* chore(deps): add gulp-gzip 1.4.2
* build: migrate test scripts to gulp task (test_tasks.js)
* build: not to use the grep command
* build: normalize path

* fix: Modified based on review suggestions.
* Add JSDoc comment
* Line length <= 80 characters.
* Formatting test output as previously.
* Always continue even if a test unit fails.
* Suppress the gulp messages.
* Fix test_tasks.js to pass eslint.

* fix: Modified based on review suggestions.
* Change generator test output directory.
* Formatting test output as previously.

* fix: Formatting test output as previously.

* fix: Modified based on review suggestions.
2022-10-27 21:02:50 +01:00