mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
use ts_project for aqt/data/web/js
We're now ts_project only, and are less likely to run into issues with future rules_nodejs updates.
This commit is contained in:
parent
3d416b4a68
commit
89279f7f5e
2 changed files with 10 additions and 12 deletions
|
@ -1,22 +1,21 @@
|
||||||
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
||||||
|
load("//ts:typescript.bzl", "typescript")
|
||||||
load("//ts:copy.bzl", "copy_files_into_group")
|
load("//ts:copy.bzl", "copy_files_into_group")
|
||||||
load("//ts:prettier.bzl", "prettier_test")
|
load("//ts:prettier.bzl", "prettier_test")
|
||||||
load("//ts:eslint.bzl", "eslint_test")
|
load("//ts:eslint.bzl", "eslint_test")
|
||||||
|
|
||||||
ts_library(
|
js_library(
|
||||||
name = "pycmd",
|
name = "pycmd",
|
||||||
srcs = ["pycmd.d.ts"],
|
srcs = ["pycmd.d.ts"],
|
||||||
tsconfig = "tsconfig.json",
|
|
||||||
visibility = ["//qt/aqt/data/web/js:__subpackages__"],
|
visibility = ["//qt/aqt/data/web/js:__subpackages__"],
|
||||||
)
|
)
|
||||||
|
|
||||||
ts_library(
|
typescript(
|
||||||
name = "aqt",
|
name = "aqt",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
["*.ts"],
|
["*.ts"],
|
||||||
exclude = ["*.d.ts"],
|
exclude = ["*.d.ts"],
|
||||||
),
|
),
|
||||||
tsconfig = "tsconfig.json",
|
|
||||||
deps = [
|
deps = [
|
||||||
"pycmd",
|
"pycmd",
|
||||||
"@npm//@types/jquery",
|
"@npm//@types/jquery",
|
||||||
|
@ -24,12 +23,6 @@ ts_library(
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "aqt_es5",
|
|
||||||
srcs = ["aqt"],
|
|
||||||
output_group = "es5_sources",
|
|
||||||
)
|
|
||||||
|
|
||||||
copy_files_into_group(
|
copy_files_into_group(
|
||||||
name = "editor",
|
name = "editor",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -49,7 +42,7 @@ copy_files_into_group(
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "js",
|
name = "js",
|
||||||
srcs = [
|
srcs = [
|
||||||
"aqt_es5",
|
"aqt",
|
||||||
"editor",
|
"editor",
|
||||||
"mathjax.js",
|
"mathjax.js",
|
||||||
"reviewer",
|
"reviewer",
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
{
|
{
|
||||||
|
"extends": "../../../../../ts/tsconfig.json",
|
||||||
|
"include": ["*.ts"],
|
||||||
|
"references": [],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"lib": ["es2019", "dom", "dom.iterable"],
|
"lib": ["es2019", "dom", "dom.iterable"],
|
||||||
|
"types": ["jquery", "jqueryui"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"strictNullChecks": false,
|
"strictNullChecks": false,
|
||||||
|
"strictPropertyInitialization": false,
|
||||||
"noImplicitThis": false,
|
"noImplicitThis": false,
|
||||||
"esModuleInterop": true
|
"esModuleInterop": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue