Catch invalid lines (i.e. not a comment and not a prop).
Also refine the PROP_RE so that the 'key' can't have a space (this could
be made more correct by allowing space around '=', but we don't have
any, so....)
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
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>
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
If we don't have a `.git` directory during build, then don't try and run `git` commands to get e.g. history and last changed for policy files and changelog.
Closes#4497
* 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
Checks that paths in .amazon.properties are starting with
/opt/compiler-explorer/.
Also rename cppx_blue default config file (was .default. instead of .defaults.).
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
- Renames orphancompiler.py script to propscheck.py, the name fits better
- Fixes Go props to make them easier to maintain
- Alphabetically sorts some listings in the code
- Adds tests to the props checker script (No idea how to integrate those so it's manual for now)
- Adds 2 missing limit cases for Motd filtering
- Better naming of functions in existing templates
- Added LLVM Ir and Preprocessor templates
- Improved screenshot generation script
- Improved config file format (now the full URL can just be copied in instead of manually trimming the `https://godbolt.org/#`)
- Added `docs/AddingASiteTemplate.md`
* Baseline for the ui
* Backend system / frontend baseline
* Automated screenshot generation / integration
* added copyright
* Style improvements
* Reworked config / integrated images into webpack
* Added tree ide template and updated the screenshot generation script
* Added screenshots for each theme
* Updated screenshots to use embed mode and hide the site header
* Added test case, removed leftover console.log
* Renamed /api/getSiteTemplates to /api/siteTemplates
* Renamed site template type
* Use webpack loaders to generate both the pug output and the SHA256 hash of it
* Uniformly use pug for HTML templating
* Policy hashes are entirely client-side
* No longer need to have the policy documents available to the server side
* Use webpack to autogenerate the files.
That way, we always generate them consistently, be it through
`make` or building for prod. This fixes the `make` issue, and also
means we've further unified the way we build and run with `make`
vs prod.
Unfortunately this doesn't work for `make dev`; which sees the
handlebars content only. That's probably ok though, I think.
* build the release in-place in out/dist
* run the tsc compiler on the code so everything is pre-transpiled
* serve the various generated html snippets uniformly from the web page so they come from one place.
* Group some files to their own folders
In etc/scripts/, added disasms/, docenizers/, and util/ folders
In lib/, added mapfiles/, and parsers/ folders (+moved google.js to
shortener)
In static/, added widgets/ folder
Added cypress folder to .gitignore
* Address Matt's PR reviews
* Move new Pane renaming to folder