Commit graph

62 commits

Author SHA1 Message Date
Oliver Blanthorn 427557f52a
Don't distribute Tridactyl logo source 2021-05-05 18:14:17 +02:00
Oliver Blanthorn c111833b04
Remove webpack 2021-05-05 13:04:14 +02:00
Oliver Blanthorn a9fdde0a2a
Move files all at once once finished 2021-04-12 13:53:59 +02:00
Oliver Blanthorn f84fe6f91e
Skip grammar generation on quick builds 2021-04-10 22:52:22 +02:00
Oliver Blanthorn 3c35f54c5e
Switch to pure esbuild from esbuild-loader 2021-04-10 22:44:34 +02:00
Oliver Blanthorn 8079d124e6
Re-enable typechecking on proper builds 2021-04-10 21:43:23 +02:00
Oliver Blanthorn 9c300ecc62
Add warning to rebuild 2021-04-10 21:28:44 +02:00
Oliver Blanthorn 17b346de13
Add yarn run rebuild for dirty rebuilds 2021-04-09 13:08:47 +02:00
Rummskartoffel 461768592f Replace base64 logo with absolute URL 2021-03-12 23:04:29 +01:00
Oliver Blanthorn 1d9380d183
Don't load all themes into every tab 2021-01-26 21:37:13 +01:00
Oliver Blanthorn 88dfea71aa
Use old native messenger in tests for now 2021-01-11 09:18:21 +01:00
Oliver Blanthorn 5394618d93
Stop installing old native during build 2021-01-10 17:31:38 +01:00
Oliver Blanthorn 81bdda9a9d
Update to webpack version 5 2021-01-02 14:05:19 +01:00
Oliver Blanthorn 42a7ac336c
Fix #2262: make version number more reliable 2020-08-07 16:05:05 +01:00
Oliver Blanthorn cf9c6a69e5
Disable installing native messenger for 'signed' builds 2019-09-23 07:40:05 +01:00
Oliver Blanthorn 1da17bf427
Fix building on windows 2019-05-31 18:44:40 +01:00
Colin Caine 3c618ac7a4 s/npm/yarn 2019-05-31 16:48:53 +01:00
Oliver Blanthorn ed8eaf733f
Fix #869: make webpack error on errors 2019-05-27 12:36:36 +01:00
PHO 3bf01ffde4 Fix build on BSD platforms which aren't OpenBSD
The fix introduced in #142 was incomplete. The same workaround can be applied to all the existing BSDs.
2019-05-21 16:08:09 +09:00
glacambre 37dfddca4e
TSLint: ignore generated files
This enables removing file-specific rules-disabling comments in
excmds.ts
2019-04-12 05:50:01 +02:00
glacambre f16dc99589
TSLint: re-enable no-var-keyword rule 2019-04-10 06:54:10 +02:00
glacambre 5f05833cde
TSLint: re-enable no-variable-usage-before-declaration rule 2019-04-10 06:51:14 +02:00
glacambre bd65146ca8
TSLint: re-enable no-unnecessary-initializer rule 2019-04-10 06:47:46 +02:00
glacambre 3ff4713247
TSLint: re-enable no-trailing-whitespace rule 2019-04-10 06:39:19 +02:00
glacambre 78e662efef
Add shellcheck to travis 2019-03-24 18:28:41 +01:00
glacambre 1e104e4d76
scripts/build.sh: Generate .bracketexpr.generated.ts before metadata
Typescript will complain about it missing on clean builds otherwise.
2019-03-05 12:59:44 +01:00
Nuno Santos 2e3263c544 Fix build.sh to return proper exit code.
Remove background scripts/wait from building script to allow proper return
codes to propagate.

Fixes #1088
2019-02-25 13:52:12 +01:00
Anton Vilhelm Ásgeirsson 66b36cf5ae Replace OSTYPE with uname and add yet another sed variant. 2019-02-19 17:49:40 +00:00
glacambre 9d11aeaf9b
build.sh: Replace [[ with [
[[ is a bashism and is not defined in posix sh. Since the shebang is
 #!/bin/sh, the build script is executed with posix sh and this caused
error messages to be printed when building.
[[ couldn't just be replaced with [ because [ doesn't allow matching
globs, so a switch/case was used instead.
2018-11-27 18:47:58 +01:00
Keegan Carruthers-Smith 74a52a61eb scripts: Use different flags for sed and base64 on Mac
sed and base64 have different flags on darwin (and possibly other
BSDs). Alternatively we could encourage the user to install coreutils and use
gsed and gbase64.
2018-11-26 11:45:48 +02:00
glacambre 4d0f7c84eb
Make the generated metadata typed
This commit makes the compiler pass use different classes in order to
represent the metadata. This enables adding per-class toString/convert
functions. This enables easy type checking and conversion in the `:set`
excmd.
2018-11-04 17:24:16 +01:00
glacambre 1984a66fb9
Add indication that input is being edited in external editor
This commit adds a .TridactylEditing class to input fields that are
being edited in an external editor. In the default theme, this
corresponds to just adding Tridactyl's logo to the input field.

It looks like it is impossible to reference Tridactyl's logo in CSS and
have it work on non-privileged pages so instead of doing that we add a
step to the build process which turns one of Tridactyl's logo into its
base64 representation and embeds it in the default.css theme file.
2018-10-10 18:54:09 +02:00
glacambre f937a29e8a
Update metadata names
3ec27fd broke the commandline by moving config.ts while
metadata-generation/using code relied on its path. This commit updates
the path. A proper fix is to stop using paths and use names instead.
2018-10-04 17:57:44 +02:00
Joao Sa 9b94146c9f Fix build scripts on paths with spaces 2018-09-30 15:25:14 +00:00
glacambre cdb5d0ce83
build.sh: Improve compiler pass
This commit makes sure typescript targets es2016 when compiling
gen_metadata.ts and than when generating metadata, only the necessary
files are parsed (src/excmds.ts and src/config.ts for now). This
slightly improves build time.
2018-09-01 21:23:18 +02:00
glacambre b13956010c
Add list of static themes to generated metadata 2018-08-16 20:56:19 +02:00
glacambre 72db29b298
Move metadata.ts -> .metadata.generated.ts 2018-08-05 18:38:28 +02:00
glacambre 35466971b7
Implement basic excmd completion
This implements excmd completion. We're using the typescript compiler
API in order to get the documentation and the type of every function of
Tridactyl and generate a file named "src/metadata.ts" which contains
this information. Since this file is dependency-less it can be imported
from every source file.

We then write a regular completion source which just uses the data
contained in metadata.ts in order to generate its completions.
2018-08-05 17:12:49 +02:00
Oliver Blanthorn 47f90395eb
Rerename Windows native install script 2018-07-25 14:39:59 +01:00
Babil Golam Sarwar 02c76e0f00
Fix PowerShell auto-close when native-messenger installation fails 2018-07-11 17:08:44 +10:00
Oliver Blanthorn 352863d98d
Merge pull request #620 from gsbabil/gsbabil/add-appveyor-windows-build-support
Add build with Windows support on AppVeyor
2018-05-28 10:24:00 +01:00
Oliver Blanthorn b8e9d4a088
Remove global dependency on nearley,typedoc,marked 2018-05-28 10:22:17 +01:00
Babil Golam Sarwar 8cfdbfa7dd Allow build under both MSYS or MINGW 2018-05-28 14:07:46 +10:00
Oliver Blanthorn 98ad63cfc8
Improve discoverability of contributors 2018-05-23 15:39:40 +01:00
Oliver Blanthorn 535dd5bb67
Make injection of theme scripts automatic 2018-05-20 16:22:45 +01:00
Bruno Oliveira 0feaa3d2ca
Improve Tridactyl theming capabilities 2018-05-20 16:22:46 +01:00
Jeff King 2533dbe75f build.sh: prefer "=" to "==" for comparisons
The double-equals introduced by de39d704a5 and 19e3363c92
are bash-isms, and cause the script to complain when run
with another POSIX shell (e.g. dash, which is the default
/bin/sh on Debian).

We can just use "=" here, as the two are equivalent.
2018-05-17 07:04:03 -07:00
Babil Golam Sarwar e21c20e383
Add PowerShell ExecutionPolicy in build.sh 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar 32e74a0e76
Fix some minor typo and lint errors 2018-05-17 12:19:54 +01:00
Babil Golam Sarwar de39d704a5
Fix Python 3 invocation during build on Windows 2018-05-17 12:19:54 +01:00