mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -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:prettier.bzl", "prettier_test")
|
||||
load("//ts:eslint.bzl", "eslint_test")
|
||||
|
||||
ts_library(
|
||||
js_library(
|
||||
name = "pycmd",
|
||||
srcs = ["pycmd.d.ts"],
|
||||
tsconfig = "tsconfig.json",
|
||||
visibility = ["//qt/aqt/data/web/js:__subpackages__"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
typescript(
|
||||
name = "aqt",
|
||||
srcs = glob(
|
||||
["*.ts"],
|
||||
exclude = ["*.d.ts"],
|
||||
),
|
||||
tsconfig = "tsconfig.json",
|
||||
deps = [
|
||||
"pycmd",
|
||||
"@npm//@types/jquery",
|
||||
|
@ -24,12 +23,6 @@ ts_library(
|
|||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "aqt_es5",
|
||||
srcs = ["aqt"],
|
||||
output_group = "es5_sources",
|
||||
)
|
||||
|
||||
copy_files_into_group(
|
||||
name = "editor",
|
||||
srcs = [
|
||||
|
@ -49,7 +42,7 @@ copy_files_into_group(
|
|||
filegroup(
|
||||
name = "js",
|
||||
srcs = [
|
||||
"aqt_es5",
|
||||
"aqt",
|
||||
"editor",
|
||||
"mathjax.js",
|
||||
"reviewer",
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
{
|
||||
"extends": "../../../../../ts/tsconfig.json",
|
||||
"include": ["*.ts"],
|
||||
"references": [],
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"lib": ["es2019", "dom", "dom.iterable"],
|
||||
"types": ["jquery", "jqueryui"],
|
||||
"strict": true,
|
||||
"noImplicitAny": false,
|
||||
"strictNullChecks": false,
|
||||
"strictPropertyInitialization": false,
|
||||
"noImplicitThis": false,
|
||||
"esModuleInterop": true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue