Commit graph

125 commits

Author SHA1 Message Date
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
Oliver Blanthorn
47f90395eb
Rerename Windows native install script 2018-07-25 14:39:59 +01:00
Oliver Blanthorn
02bb39a1cb
Fix weekly beta users 2018-07-23 15:35:16 +01:00
Oliver Blanthorn
6aef512fce
Dedupe people with dodgy email addresses 2018-07-23 12:31:44 +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
3f445de847
Add script for finding number of weekly users on buildbot 2018-07-02 13:24:53 +01:00
Oliver Blanthorn
9818f8d0cb
Change changelog notification to small nag bar 2018-06-17 18:35:48 +01:00
glacambre
125759b483
Keep newtab's changelog button grey once changelog has been read 2018-06-16 15:55:33 +02:00
Colin Caine
e710296d70 Fix authors not appearing when run non-interactively
git shortlog behaves differently when it's run non-interactively.
2018-06-08 13:34:41 +01:00
Colin Caine
5458f67a69 Add debugging to author script
Trying to find issue with buildbot
2018-06-08 13:19:03 +01:00
glacambre
54faf82428
scripts/{pretty,common}: Fix pretty failing on multiple files
When trying to run scripts/pretty with multiple ugly files staged, the
for loop would treat two space-separated file names as a single file
name. This prevented pretty from working on my machine.

I fixed this issue by making cachedJS() (renamed to cachedFiles since it
returns more than js files) return file names as a newline-separated
list and using IFS=$'\n' to split the filenames on this character.
2018-06-03 16:08:45 +02:00
Oliver Blanthorn
58c3eba08c
Make pyinstaller actually test that it works 2018-05-28 15:01:26 +01:00
Colin Caine
dba79b79bd
Try to fix winpython extraction 2018-05-28 14:54:34 +01:00
Oliver Blanthorn
595a49d0fb
Merge branch 'master' of github.com:cmcaine/tridactyl into gsbabil-gsbabil/windows-compiled-native-messenger-support 2018-05-28 14:16:57 +01:00
Oliver Blanthorn
2cc5662764
Output exe in artifacts with xpis etc 2018-05-28 14:00:05 +01:00
Colin Caine
c9df9b5f14
Fix hardcoded directory dependencies 2018-05-28 13:12:07 +01:00