Commit graph

190 commits

Author SHA1 Message Date
Oliver Blanthorn
68aff53e4d
Placate shellcheck 2019-05-29 21:09:58 +01:00
Oliver Blanthorn
4aa422d746
Make shellcheck check more scripts 2019-05-29 17:48:32 +01:00
Oliver Blanthorn
26343e5a5d
Fix #930: make in-browser versions match ex-browser
Additionally, change the 'default' build to be a beta build
in the manifest, and give stable releases prettier version
numbers.
2019-05-27 12:59:25 +01:00
Oliver Blanthorn
ed8eaf733f
Fix #869: make webpack error on errors 2019-05-27 12:36:36 +01:00
Colin Caine
f1f10567f7 version: correct urls
The _beta and _no_new_tab_beta bits come from the names I've picked in the moz web ui
2019-05-22 12:12:35 +01:00
Colin Caine
64160b8d96 sign: set name of nonewtab and beta 2019-05-22 11:42:22 +01:00
Marvin Ewald
acf8f05dc3 Set artifacts-dir for nonewtab 2019-05-22 11:28:05 +01:00
Marvin Ewald
86da9a5eab Add updates.json entry for nonewtab 2019-05-22 11:28:05 +01:00
Marvin Ewald
4d3268176b Make nonewtab regex more robust 2019-05-22 11:28:05 +01:00
Marvin Ewald
ed6c4736c5 Provide build without new tab page 2019-05-22 11:28:05 +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
12aab2a931
Add first selenium test 2019-05-16 17:52:32 +02:00
glacambre
ef03222ae1
Fix precommit hook
Two issues: we were iterating on the same argument and tslint doesn't
like .d.ts files.
2019-04-23 20:27:10 +02:00
Saul Reynolds-Haertle
2e5fdfb63c Run excmds in content. 2019-04-21 02:42:59 -07:00
glacambre
51f88f51c9
Fix errors found by LGTM
https://lgtm.com/projects/g/tridactyl/tridactyl/overview/
2019-04-17 07:18:18 +02: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
52103a0578
Add :issue excmd and autocmd to autofill new issues 2019-04-08 09:10:34 +02:00
glacambre
93a66ec96b
Replace prettier with tslint where possible 2019-04-06 22:52:07 +02:00
glacambre
ce0da074a5
Fix make_tutorial
PR#1412 broke tutorial generation by adding a dot at the beginning of
$page. This fixes that.
2019-03-28 06:08:49 +01:00
glacambre
fdd278f8f2
wine-pyinstaller.sh: Fix checkPrerequisite()
The problem was the `[ ! -f "${bin_loc}" ]` check. `command -v` does not
necessarily return an absolute path (it can just return the name of the
command for builtins) and this is what happened for 'printf'. Thus, the
`[ ! -f` check failed.
This check doesn't really make sense. If `command -v $binary` doesn't
fail you're good to go, it doesn't really matter where $binary is
located.
2019-03-27 12:47:20 +01: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
Nuno Santos
69f21ce91f MacOS build fixes.
- Fix `find` in bodgecss.sh appending an extra /
- Remove bashism from bodgecss.sh which doesn't work in 3.2 (macos
default)
- Remove `-p .` from mktemp which is unnecessary and doesn't exist on macos.
2019-02-22 16:47:17 +01:00
Anton Vilhelm Ásgeirsson
ce10ef2fba Refactor bodgecss to use portable tooling. 2019-02-19 20:31:21 +00:00
Anton Vilhelm Ásgeirsson
66b36cf5ae Replace OSTYPE with uname and add yet another sed variant. 2019-02-19 17:49:40 +00:00
Anton Vilhelm Ásgeirsson
d3e2d3dbec Use utf-8 explicitly for macro script. 2019-02-19 16:58:46 +00:00
Oliver Blanthorn
48a81c8d7b
Add script for linking to GitHub issues 2019-01-22 18:28:53 +00:00
Oliver Blanthorn
815140392b
Temporary fix to stop builds being broken
I'll make the minimum actually check for a minimum sometime before Wine 5 is released
2018-12-14 21:34:50 +00:00
Oliver Blanthorn
3283a71d4d
Remind me to use the checklist when I do a release 2018-12-14 21:09:47 +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
Oliver Blanthorn
1e24424cb5
Fix shebang, mark II 2018-08-31 15:52:34 +01:00
Oliver Blanthorn
ffd82223de
Fix shebang 2018-08-30 22:03:35 +01:00
Colin Caine
a58f8a3439 scripts/pretty warn when we modify working copy 2018-08-29 11:32:07 +01:00
Colin Caine
8387846cda scripts/pretty prettify working tree copy if it matches staged version 2018-08-29 11:24:34 +01:00
Colin Caine
093f065580 scripts/pretty no longer modify working tree
Trying to avoid race conditions with your editor both in reading the
working tree and modifying the index (git staging area).
2018-08-29 10:34:03 +01:00
William G Hatch
e77e2a07fb use /usr/bin/env to find bash 2018-08-24 13:38:49 -06: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