Commit Graph
41 Commits
Author SHA1 Message Date
Patrick Quist 40ae2261e0 Headers via conan (#5179) 2023-06-23 12:25:30 +02:00
Jeremy Rifkin 34292238c1 Identify unused imports during lint (#5130) 2023-06-11 17:35:59 -04:00
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 6207cb2d6e npm run lint to get const fixes 2023-01-17 12:31:49 -05:00
Matt Godbolt 6348917e15 Separate shareable tool type from server ITool (#4472)
* Separate shareable tool type from server ITool

I realised we were using the "Tool" on both client and server, but the client only has the JSON-able data of Tool, not the interface/object Tool (now renamed to `ITool`).

* Fix tests
2022-12-19 22:40:27 -06:00
Rubén Rincón Blanco c3eee72def Sort libs based on semver (#4153) 2022-10-12 21:12:44 +02:00
Rubén Rincón Blanco 366cd5527c Adds llvm-cov tool (#4044) 2022-09-15 08:12:27 +02:00
Fred Tingaud 6b6c9ff7eb Allow having an icon for the tools. (#3894) 2022-07-26 01:59:40 +02:00
Fred Tingaud e76115f152 Make tools output parsing overridable. (#3819) 2022-07-01 00:30:49 +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
Rubén Rincón Blanco 4965bd6c81 All semver comparisons now ensure it's safe to do so (#3562)
* All semver comparisons now ensure it's safe to do so

* Oops, use correct class

* Remove leftover import

* Leave the Zig fixes for another PR

* Fix linter

* Fix test issues

* Make linter happy, yet again

* What?

* Address PR review
2022-04-26 15:24:40 +02:00
Jeremy Rifkin 74efcfa754 Preprocessor output panel (#3330) 2022-02-11 15:42:41 +01:00
Patrick Quist e24f724e47 Options cleanup (#2924)
* getting rid of compiler.libs

* old widget no longer needed

* move supportedLibraries code to base-compiler

* bugfix

* oops

* grmbl

* bugfix remote msvc compilers
2021-09-13 20:22:39 +02:00
RabsRincon 854fdf7127 Some more semver tests 2021-08-28 02:43:44 +02:00
RabsRincon 0b75857df3 Only focus on the first word of semver for ordering
Helps with #2860
2021-08-28 02:40:05 +02:00
RabsRincon 565a4f7b48 Actually fix Windows options-handler tests for realsies now 2021-08-13 06:11:32 +02:00
RabsRincon 2607bf580a Fix options-handler tools tests in Windows 2021-08-13 06:03:53 +02:00
RabsRincon 39aac5341b Add basic options-handler tools parse test 2021-08-11 08:54:27 +02:00
Rubén Rincón Blanco f3acbc972a Adds .hidden for libraries (#2780)
* Adds .hidden for libraries
* Add test for new hidden property
2021-07-19 21:53:54 -05:00
Patrick Quist 4a158e1ff4 Library widget revamp (#2223)
* Use new widget for the ever-expanding library count
2020-09-27 01:59:40 +02:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Patrick Quist 697c8e9296 support library options to be passed on to the compiler (#2215) 2020-09-25 02:09:47 +02:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Austin Morton fb2f43b579 Ensure sentry environment is set for node backend
fixes #2104
2020-07-27 14:11:52 -04:00
Patrick Quist cf7e0b029f [WIP] Fetch binaries for libraries before building (#1945)
* allow liblink also in lib group

* basic working version of lib binaries via conan

* refactored buildenvsetup into classes

* draft of more library readme

* things that aren't really needed

* dont request from conan if theres nothing to link

* conditionally

* its getting late

* download libraries with "native js"

* add libs

* Update c++.amazon.properties

* Update c++.amazon.properties

* Update c++.amazon.properties

* Update buildenvsetup-ceconan.js

* support library alias client- & server-side

* .

* merge master

* url change

* path fix

* disable broken compilers

* buggy clang compilers

* removed disabled compiler

* Update c++.amazon.properties

* bugfixes and add library lookupversion

* libuv and openssl update

* add libs

* test if tbb works with tbb_debug

* normal tbb

* rpath current folder as well for .so's

* add new tbb version and switch folders

* disable ulib
2020-07-15 01:33:54 +02:00
Patrick Quist 5687e01a68 dont reset ldpath by default (#1944) 2020-04-30 14:44:57 +02:00
Austin Morton 1b7fe24990 Perform some general maintenance on the test suite (#1840) 2020-02-18 00:03:15 -05:00
Partouf 2a214b576d autodetect static libraries by -l options 2019-10-30 15:47:06 +01:00
Partouf 717dd1286b bugfix 2019-10-26 16:49:24 +02:00
Partouf 0c1d824c9d coverage improvement 2019-10-26 16:14:57 +02:00
Partouf dc3a534b4b bugfix1 2019-10-26 16:07:14 +02:00
Partouf fcbeb14ed4 Merge remote-tracking branch 'matt/master' into staticlibs 2019-10-25 17:36:39 +02:00
Alessandro Vergani a49e960bd7 Fix sever comparison for single digit
This fixes #1598 by making 'x' < 'x.1'
2019-10-09 14:16:20 +02:00
Partouf f66a07433a sort static libs based on dependencies 2019-10-08 23:56:53 +02:00
Partouf 6d6edfbec0 more static linking 2019-10-06 21:29:00 +02:00
Partouf 37686d8032 fix unittests 2019-08-15 17:00:32 +02:00
Partouf d5694bbea7 test fix win32 2019-07-12 14:40:06 +02:00
Matt Godbolt 895bfd5913 Compiler Explorer Team->Authors (for consistency) 2019-05-30 16:33:07 -05:00
RabsRincon 8242db38a9 Add some type documentation to some lib files 2018-07-09 14:04:36 +02:00
RabsRincon 8ce9259a9e Fix library parser not adding lib paths
Thanks to @shubhdev for catching this one too :)
2018-06-28 23:21:52 +02:00
RabsRincon 0e790662bc Add semver ordering to compilers 2018-06-19 12:54:28 +02:00