Commit graph

30 commits

Author SHA1 Message Date
Oliver Blanthorn fcb55685d2
Update to ts6
Most of the changed lines in this are from random
breaking changes in typedoc meaning that lots of
docstrings needed to be rewritten
2026-07-20 00:24:35 +02:00
glacambre 2bd1f5502b
Re-implement metadata API on top of tsdoc output 2026-07-19 11:09:47 +02:00
Oliver Blanthorn c2a3dfab61
Switch to dynamically loaded imports
This doesn't actually seem to work though - TridactylThemeDefault still
appears in the root classes
2021-07-04 19:13:37 +02:00
Oliver Blanthorn 77dee7869a
Merge branch 'master' into quicker_ramda 2021-05-02 12:22:48 +01:00
Oliver Blanthorn eb979892ff
Remove web-ext-types
The definitely typed package is fine now
2021-05-01 13:35:39 +02:00
Oliver Blanthorn 9fe79529c7
WIP: swap ramda for rambda
It supports TS a bit better and is a bit quicker.

But it has fewer functions
2021-04-29 17:52:41 +02:00
Oliver Blanthorn f5359f3370
Enable esModuleInterop rule 2021-04-10 21:44:59 +02:00
Oliver Blanthorn 8079d124e6
Re-enable typechecking on proper builds 2021-04-10 21:43:23 +02:00
Oliver Blanthorn e2db6478ea
Add recommended ts settings 2021-04-07 14:00:23 +02:00
Oliver Blanthorn a119551ce8
Fix #2624: add types for Ramda 2020-07-15 21:18:05 +01:00
Oliver Blanthorn 441e42efdb
Cheat: fix unit tests by keeping old types around 2020-07-01 17:39:34 +01:00
Oliver Blanthorn e065c54b76
Swap to DefinitelyTyped types
I was getting fed up with web-ext-types missing some types
2020-07-01 17:37:48 +01:00
Jakub Okoński dd422cd136 Enable some low-hanging TypeScript strictness options 2019-10-20 13:09:21 +02:00
Jakub Okoński 8030143ace Share the same tsconfig by adding overrides in new jest config 2019-10-18 16:02:53 +02:00
Jakub Okoński 67fa18b4ec Add a separate tsconfig for tests
Tests run with nodejs + jest types, while the web extension code
runs with browser + web-ext type roots.
2019-10-18 13:07:38 +02:00
Oliver Blanthorn 62b8bf0992
Merge branch 'replace-flatten' 2019-09-20 18:05:10 +01:00
ELLIOTTCABLE a05d1629d1
(- meta fix typo) Lowercase tsconfig values 2019-09-16 21:47:26 -05:00
rektrex ce1abee512 include es2019.array lib 2019-09-11 00:59:03 +05:30
Oliver Blanthorn 3ec27fd40c
Merge branch 'reorganize-directories' 2018-10-04 13:59:19 +01:00
Saul Reynolds-Haertle b8e0459e6b Build a performance counters system so I can start optimizing things
Complete a circular buffer so we don't log too much data, config
settings for turning it on and off (default off, becuase performance)
and for changing the size of the buffer, an excmd for dumping the raw
json so you can pore over it, and for when you just want to
sanity-check yourself instead of groveling over your data for six days
with a deep learning toolkit and three hundred CPUs of compute, an
excmd for pretty-printing your stats in a nice histogram.

I didn't think far enough ahead and only implemented the easy way to
instrument a function, which is with a decorator. I'm getting _really_
angry at typescript not being able to handle decorators on free
functions. bah. I'll figure out a good way to wrap free
functions. Maybe just go the stupid route and make you change
`export async function foo(args)` to `export foo = measured(async
function(args) ...`. But that would break excmd parsing, so... :/

I think that I already want to do a refactor to break excmd.ts into a
bunch of one-line wrappers referencing implementations spread
throughout a bunch of libraries. This would go nicely with that.

Other things I did while I was here:
* Fix the ugliness we had with (window as any).tri by monkey-patching
  the tri property into the window object in tridactyl.d.ts
2018-09-30 12:01:07 -07:00
Saul Reynolds-Haertle ac114562b6 Configure absolute path resolution in ts and webpack
This lets us write imports like "@src/stuff" instead of "../../stuff"
2018-09-29 18:03:36 -07:00
chocolateboy 0953425cf5 improve pagination:
- prefer the canonical forms over fallback patterns
  (fixes rockpapershotgun.com, Discourse etc.):

  1) link[rel]
  2) a[rel]
  3) a::text(pattern)

- tighten fallback patterns (fixes Google, GitHub etc.)

- remove site-specific patterns
2017-11-23 15:07:48 +00:00
Colin Caine ec01dadf27 completions: add fuse.js and html-tagged-template 2017-11-22 21:30:36 +00:00
Colin Caine 8e18de7495 build: use strict 2017-11-22 21:30:36 +00:00
Oliver Blanthorn 85d6eba2b5
Revert "Merge branch 'Koushien-completions'"
This reverts commit 0aa14bb754, reversing
changes made to eae9cd0dab.
2017-11-21 20:28:48 +00:00
Colin Caine 1045eadc0e completions: WIP 2017-11-21 05:15:52 +00:00
Colin Caine e55d174747 completions: add fuse.js and html-tagged-template 2017-11-21 05:15:52 +00:00
Colin Caine 0eceb10bfb dev: fix ts-node REPL mode 2017-10-08 16:34:02 +01:00
Colin Caine dd757fbef4 tests: add jest 2017-10-05 01:53:02 +01:00
Colin Caine 5964430fe1 Convert to es6 modules
Motivation:

 - Most test frameworks expect modules
 - I'm told they're the future

Changes:

 - Every typescript source file is now an es6 module
 - Build system is now webpack (tho rollup makes nicer outputs)
 - Outputs of buildsystem are one js file per entry point (background,
   content, commandline_frame)
 - These bundled js files are generated by traversing the dependency
   graph of each entry point
2017-10-02 01:17:32 +01:00
Renamed from src/tsconfig.json (Browse further)