Anki/ts
Damien Elmes 3dad3c90d0 add .sql file formatter
Uses the logic from the sqltools VSCode add-on, with a workaround
for the use of 'type' in some table columns.

By detecting the presence of 'BUILD_WORKSPACE_DIRECTORY' we can tell
if the rule is running in test mode or was run directly, avoiding the
need for separate check and fix rules. It might be nice to extend this
to other formatting rules in the future as well.
2021-01-09 14:22:49 +10:00
..
congrats remove empty es6 group; reference original ts_library instead 2021-01-02 21:18:10 +10:00
graphs Include review and relearn cards for ease graph 2021-01-08 17:57:47 +01:00
lib Fix one-off error for Histograms: 2021-01-07 17:14:31 +01:00
patches update to rules_nodejs 3.0.0 2020-12-23 16:05:15 +10:00
sass initial Bazel conversion 2020-11-01 14:26:58 +10:00
.eslintrc.js initial Bazel conversion 2020-11-01 14:26:58 +10:00
.gitignore Add Mathjax filegroup 2020-11-14 14:14:25 +01:00
.prettierignore make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
.prettierrc initial Bazel conversion 2020-11-01 14:26:58 +10:00
add.sh add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
BUILD.bazel add .sql file formatter 2021-01-09 14:22:49 +10:00
copy.bzl Add base argument to copy_select_files 2021-01-01 14:39:15 +01:00
eslint.bzl initial Bazel conversion 2020-11-01 14:26:58 +10:00
format.sh make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
licenses.json Add css-browser-selector as bazel rule, and update from 0.4.0 to 0.6.5 2020-12-31 16:27:52 +01:00
package.json add .sql file formatter 2021-01-09 14:22:49 +10:00
prettier.bzl make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
README.md add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
rollup.config.js initial Bazel conversion 2020-11-01 14:26:58 +10:00
sql_format.bzl add .sql file formatter 2021-01-09 14:22:49 +10:00
sql_format.ts add .sql file formatter 2021-01-09 14:22:49 +10:00
svelte.bzl initial Bazel conversion 2020-11-01 14:26:58 +10:00
tsconfig.json add .sql file formatter 2021-01-09 14:22:49 +10:00
update-licenses.sh add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
update.sh add add.sh helper for adding dependency and updating licenses 2020-12-31 12:20:51 +10:00
vendor.bzl merge separate vendor rules into single rule 2021-01-02 11:14:00 +10:00
yarn.lock add .sql file formatter 2021-01-09 14:22:49 +10:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias