Austin Morton
67cdfe7417
Fix installation of git hook when using worktrees or spaces
...
When using git worktrees the hooks directory may not exist.
Also need to quote the arguments for cases where paths have spaces.
2020-11-03 03:42:49 -05:00
Austin Morton
044dcfbf88
Use ES6 Modules ( #2132 )
2020-09-26 16:59:26 -04:00
RabsRincon
4a2ed5f302
Add some minor improvements to travis
...
It now logs the out folder size and does not perform audits,
which saves a whooping 3 seconds total!
2020-08-05 07:22:47 +02:00
Rubén Rincón Blanco
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
Matt Godbolt
420462bdfd
Move thanks to "sponsors"
...
* Implement (server-side) templating and parsing of sponsors to take some
of the toil out of updating what was thanks.html, and pave the way for
making this dynamically loaded outside of the codebase.
* Support corporate sponsorships. Currently showing two (unapproved, NOT
for merging) ideas of possible sponsors.
* Some minor tweaks to try and support small screens better for these.
2020-04-11 18:11:41 -05:00
Matt Godbolt
91b2431e9a
Separate lint from ci-lint and pre-commit. Fixes #1835
2020-02-24 22:02:34 -06:00
Austin Morton
54d37920ed
Fix #1803 by installing prod dependencies before dev dependencies
2020-01-23 02:03:14 -05:00
Matt Godbolt
0c51deb912
Seriously, how many mistakes can one make in two lines of code? See #1791
2020-01-20 07:57:52 -06:00
Matt Godbolt
758b0d4339
Oh my word; I can't believe I still got this wrong. Sorry all. See #1791
2020-01-19 10:26:44 -06:00
Marc Poulhiès
fc08c76371
Make dev target submodule proof
...
When compiler-explorer is used as a submodule, it's git-dir is not
in .git.
2020-01-16 17:57:25 +01:00
Matt Godbolt
d5d8f42f97
Make /bin/sh compatible. See #1791
2020-01-16 07:52:29 -06:00
Matt Godbolt
cb4fa1b02c
Hopefully address #1791
2020-01-15 09:53:38 -06:00
Matt Godbolt
f8b5c64b8d
Use travis build number as sentry release
2020-01-11 15:42:03 -06:00
Matt Godbolt
fd06260a5e
Attempt at getting travis tagging
2020-01-11 15:26:40 -06:00
Matt Godbolt
158a2bfa94
Always install both dev and prod npm dependencies
2019-11-30 08:57:04 -06:00
Austin Morton
419458530f
Support serving static content externally
2019-11-13 23:35:53 -05:00
Matt Godbolt
f669bce76c
Ensure NODE_ENV is set appropriately for dist and run targets. May help with #1665
2019-11-05 18:06:08 -06:00
Matt Godbolt
106361067d
Use appropriate NODE_ENV flags
2019-10-22 21:43:07 -05:00
Matt Godbolt
f86dc3565d
Attempt to address issue found by @emekoi in #1632
2019-10-17 21:51:06 -05:00
Patrick Quist
7caa9f1f23
Update Makefile
2019-08-19 21:16:55 +02:00
Patrick Quist
940cd9cddc
Make debug
2019-08-19 20:52:46 +02:00
RabsRincon
bea2e88faa
Fix dist creation missing dir issue
2019-07-22 14:51:29 +02:00
RabsRincon
125d462f70
Initial try to upgrade webpack
2019-07-10 18:11:52 +02:00
RabsRincon
6cc5a884fe
Trim down dist file
2019-07-08 22:08:02 +02:00
Matt Godbolt
6c1d8146d6
Extract tools. Now relies on external demangling tools
2019-06-01 10:59:00 -05:00
Matt Godbolt
4d2537b41e
WAG: update the node_modules first
2019-05-29 09:49:23 -05:00
Matt Godbolt
0b7773c3bb
Merge pull request #1316 from mattgodbolt/policy-dating
...
Policy dating
2019-05-28 08:59:18 -05:00
Matt Godbolt
65d9d7bc67
Remove c-preload compiler wrapper in favour of firejail. See #429
2019-05-16 14:30:21 -05:00
Matt Godbolt
8a670dd82b
Remove yarn in favour of the new npm features. See #1343
2019-05-03 10:52:16 -05:00
Matt Godbolt
6023245c29
Add some help (thanks to @benrady)
2019-04-30 15:25:21 -05:00
RabsRincon
27eccb968d
Merge branch 'master' into policy-dating
2019-03-24 20:31:42 +01:00
Matt Godbolt
f0d8d3802f
Add a git_hash into the distribution. Fixes #1213
2018-12-07 09:14:25 -06:00
RabsRincon
9ab96c4cad
Initial support for automatic policy dating
2018-10-31 20:09:34 +01:00
Matt Godbolt
c9e66b6598
Speed up xz (hopefully)
2018-08-17 07:06:08 -05:00
Matt Godbolt
4d00413ad4
Add YARN_FLAGS so @mattgodbolt can work on his laptop on the train by doing YARN_FLAGS=--offline
2018-08-01 07:50:43 -05:00
RabsRincon
6677c892fa
Make tests and linter runable from yarn
2018-07-22 22:28:52 +02:00
Matt Godbolt
918cd24849
Handle moved policies
2018-07-14 17:19:24 -05:00
Matt Godbolt
d188e4c673
Hopeful makefile nudge to get things lined up for cookies.html and privacy.html
2018-07-14 16:25:27 -05:00
Matt Godbolt
1e0672c20f
Keep enough of static in the tarball to have the privacy and cookies html around for hashing
2018-07-14 16:03:36 -05:00
RabsRincon
febba19959
Add install-git-hooks as dependecy for dev
2018-07-09 16:32:58 +02:00
RabsRincon
8242db38a9
Add some type documentation to some lib files
2018-07-09 14:04:36 +02:00
RabsRincon
9948642f0a
Fix found exe log not expanding the object
2018-07-09 12:51:29 +02:00
Matt Godbolt
2e7fb1fb3e
Use multiple cores to xz compress
2018-06-09 08:53:34 -05:00
RabsRincon
e1d9737ce9
Make changelog creation a dist build step
2018-03-20 11:26:34 +01:00
Matt Godbolt
d92ef4f2b6
Prevent creation of an empty .node-bin or .yarn-bin if the version check fails. Helps with #850
2018-03-05 08:14:17 -06:00
Matt Godbolt
a0c4b28d7c
Merge pull request #817 from mattgodbolt/install_yarn
...
Use a local-installed yarn. Refactor all the 'find node' stuff out of…
2018-02-16 07:02:07 -06:00
RabsRincon
670afd8921
Move to ESLint
...
Somewhat compilant!
2018-02-13 14:49:07 +01:00
Matt Godbolt
f8468e5d92
Use a local-installed yarn. Refactor all the 'find node' stuff out of the Makefile
2018-02-10 17:10:56 -06:00
jaredwy
7b14f37d50
Adding in a webpack args command line arugment, use this to pass -p for prod builds as this seems to be the right thing to do according to docs. Just some general white space clean up in the webpack config file
2018-02-07 21:15:48 +11:00
jaredwy
61c9c8ca1e
Copy the directory to vs not to vs/vs
2018-02-05 12:49:09 +11:00