Commit Graph
11 Commits
Author SHA1 Message Date
Mats Jun LarsenandMatt Godbolt 633eb82d18 Transition to ECMAScript Modules (#4780)
Makes the Compiler Explorer app, and all the tooling ESM compatible.
Things that have been done:

1. The package.json has `type: module` now
2. All relative imports have a .js ending
3. All directory imports are now directory/index.js to comply with ESM
standards
4. Dependency node-graceful is now imported into tree, because the
package is broken under esm
5. Dependency p-queue has been bumped to 7.x with ESM support
6. Dependency profanities has been bumped to 3.x with ESM support
7. Webpack config is now both ESM and CommonJS compatible
8. Non-ESM compatible imports have been rewritten
9. ESLint configuration has been tweaked to not fail on .js imports
10. Mocha is now hacked together and ran with ts-node-esm
11. Webpack is now hacked together and ran with ts-node-esm
12. Webpack config is now ESM compatible, so that it can be used in the
dev server
13. Cypress code still runs commonjs, and has been excluded from the
tsconfig
14. All sinon mock tests have been commented out, because sinon module
mocks do not work with ESModules (because ESModules are immutable)

A lot of tests are now giving warnings/errors to stdout, yet still pass.
Docenizer codegenerator scripts have been updated, but I did not re-run
them, and instead just changed their code.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-02-27 18:06:38 -06:00
Jeremy Rifkin ae133c2a02 Re-generated asm docs 2023-01-13 12:32:01 -05:00
Jeremy Rifkin 836a2d7005 Tsify generated asm docs (#4388)
* Converted amd64 docs to ts

* 6502

* 6502 part 2

* arm

* avr

* evm

* java

* llvm

* python

* Fix bug with only getting the first paragraph

* Updated help messages
2022-12-02 14:36:10 -05:00
marcosmartinezfco fcb7683019 Add support for evm opcode documentation (#4319) 2022-11-21 17:16:15 +01:00
Rubén Rincón Blanco 61ff341caf Add Python instruction docs (#4290) 2022-11-16 00:51:37 +01:00
Mats Larsen ad5ece867a Bump jvms version to 18 and fix find-node path (#4192)
* fix: bump jvms version to 18 and fix find-node path
2022-10-24 20:28:55 -05:00
Mats Larsen a1d6f453e3 Assembly documentation for LLVM IR (#3737) 2022-05-31 14:47:48 +02:00
Matt Godbolt f2c1e0bd31 The Grand Reformat (#3643)
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
2022-05-09 23:13:50 -05:00
Matt Godbolt 09df855cdb Handle missing asm information (#3569) 2022-04-26 13:32:42 -05:00
Jeremy Rifkin 16b071b9f0 Updated x86 docenizer to read adjacent tables (#3541)
* Updated x86 docenizer to read adjacent tables

* Added regression test
2022-04-23 22:04:09 +02:00
Mats Larsen 9b890b1656 Refactor handling of Assembly Documentation Providers (#3247) 2022-01-31 14:05:21 +01:00