Commit Graph

40 Commits

Author SHA1 Message Date
Damien Elmes
46b80ca773 move node_modules into root folder [action required]
Recommend removing ts/node_modules folder before attempting to
build after this update.

This moves ts/node_modules into the root of the project to work around
https://github.com/ankitects/anki/pull/1405#issuecomment-936213861

Also fixes the sass errors shown when running scripts/svelte-check
2021-10-07 11:42:27 +10:00
Damien Elmes
e46ca4ee54 update svelte-check
Invoking from scripts/svelte-check is currently broken due to sass
imports - it appears to have been broken some time back.
2021-09-29 12:27:27 +10:00
Damien Elmes
fc0035306c drop Rust Analyzer Bazel rule
With proper excludes set up, starting it outside of Bazel is similarly
fast, and unit tests work correctly. It also makes initial Bazel startup
faster, as the Rust sources no longer need to be fetched.
2021-07-19 23:27:11 +10:00
Damien Elmes
1011dfec9b add script to run Rust Analyzer using Bazel's build products
Considerably speeds up initial load, but have not done much testing
yet.
2021-05-04 20:06:42 +10:00
Damien Elmes
9a3f9e12ea enable webengine port in scripts/ts-run 2021-04-16 11:48:46 +10:00
Damien Elmes
9a409c7b8c fix scripts/svelte-check invocation
@hgiesel there are a couple of warnings shown there that are not currently
being picked up with the Bazel tests
2021-04-16 10:28:37 +10:00
Damien Elmes
3e6df402ae add example script to run svelte-check outside Bazel
todo: investigate why it's reporting one issue that is not caught
when testing with Bazel
2021-04-15 14:32:38 +10:00
Damien Elmes
0b8ae7225a add a shortcut to speed up local ts dev
@hgiesel if you're not already doing something like this, you might
find this useful
2021-04-14 23:21:33 +10:00
Damien Elmes
c6540a082a Revert "add formatting experiment for posterity"
This reverts commit a63edb989d.
2021-04-14 19:12:14 +10:00
Damien Elmes
a63edb989d add formatting experiment for posterity 2021-04-14 19:12:05 +10:00
Damien Elmes
c49d6ce49f run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
Damien Elmes
01049b1289 add an updated script to run mypy as a daemon
Sadly doesn't work on Windows
2021-04-14 18:10:38 +10:00
Damien Elmes
62423bd041 add missing copyright headers to *.svelte 2021-04-13 19:02:41 +10:00
Damien Elmes
28fdbd67ae add missing copyright headers to *.rs 2021-04-13 18:59:16 +10:00
Damien Elmes
e520e8df02 add missing copyright headers to *.ts 2021-04-13 18:57:08 +10:00
Damien Elmes
948fc5f777 add missing copyright headers to *.py 2021-04-13 18:45:35 +10:00
Damien Elmes
6f7a4bf29e update rules_rust with worker refactor
If you were using the optional Rust worker support, please see the
change to development.md
2021-03-30 17:24:51 +10:00
Damien Elmes
89d249b3b6 update to the latest rules_rust + security framework update 2021-03-27 19:28:19 +10:00
Damien Elmes
dfbb415db3 accept args in scripts/runopt 2021-01-12 18:47:08 +10:00
Damien Elmes
13f26ac684 force worker off for release ./run 2021-01-12 18:47:08 +10:00
Damien Elmes
d01391b40d disable worker when building wheels
Will override a user.bazelrc setting, except if it's specified
for a specific OS (eg build:windows)
2020-12-12 10:27:18 +10:00
Damien Elmes
0cbb60169c simplify wheel building 2020-12-10 20:27:21 +10:00
Damien Elmes
0afdbdf7e0 move Linux & Mac tests to Buildkite 2020-12-08 22:23:27 +10:00
Damien Elmes
bce1f56dde document optimized builds and add helper script 2020-12-07 11:50:03 +10:00
Damien Elmes
1e8e4ee603 move other i18n scripts to ftl/ 2020-11-22 15:41:14 +10:00
Damien Elmes
0b848eae56 update remaining python format strings to Fluent 2020-11-22 14:57:53 +10:00
Damien Elmes
7fe41a364a add script to extract FTL strings 2020-11-19 11:26:09 +10:00
Damien Elmes
fcb3283a9d move ftl into top level ftl/ folder; make it source of truth for aqt
This avoids the need to modify the external repo before new strings
can be used in aqt.
2020-11-18 16:20:58 +10:00
Damien Elmes
c9a6fe4aab update synci18n.py 2020-11-18 13:43:25 +10:00
Damien Elmes
1c5f94d46f strip out unused gettext refs 2020-11-18 13:22:51 +10:00
Damien Elmes
adbef730a6 ensure repos.bzl is up to date at end of run 2020-11-11 21:26:47 +10:00
Damien Elmes
64fffd1bfc add option to skip pot update; update sha1 after commit 2020-11-11 21:23:27 +10:00
Damien Elmes
8d4df820cc update i18n scripts
- export updated .po files for consumption
- add a script to pull and push translations
2020-11-11 21:08:06 +10:00
Damien Elmes
f8f2839b55 add pyqtwebengine to wheel deps and bump minimum required pyqt 2020-11-11 10:33:49 +10:00
Damien Elmes
e5059a5dff update Windows CI 2020-11-09 19:09:23 +10:00
Damien Elmes
3f47ff9abd fix missing buildinfo on Windows 2020-11-05 11:21:27 +10:00
Damien Elmes
c179a2b45b extract version from defs.bzl; gate buildhash on optimized build 2020-11-04 14:02:08 +10:00
Damien Elmes
0d354da93a move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
Damien Elmes
aea0a6fcc6 initial Bazel conversion
Running and testing should be working on the three platforms, but
there's still a fair bit that needs to be done:

- Wheel building + testing in a venv still needs to be implemented.
- Python requirements still need to be compiled with piptool and pinned;
need to compile on all platforms then merge
- Cargo deps in cargo/ and rslib/ need to be cleaned up, and ideally
unified into one place
- Currently using rustls to work around openssl compilation issues
on Linux, but this will break corporate proxies with custom SSL
authorities; need to conditionally use openssl or use
https://github.com/seanmonstar/reqwest/pull/1058
- Makefiles and docs still need cleaning up
- It may make sense to reparent ts/* to the top level, as we don't
nest the other modules under a specific language.
- rspy and pylib must always be updated in lock-step, so merging
rspy into pylib as a private module would simplify things.
- Merging desktop-ftl and mobile-ftl into the core ftl would make
managing and updating translations easier.
- Obsolete scripts need removing.
- And probably more.
2020-11-01 14:26:58 +10:00
Damien Elmes
a686f2cf44 vendor rename script 2020-04-14 19:49:07 +10:00