mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Avoid :pages prefix on ts/*, so build rule matches folder location
This commit is contained in:
parent
a06e2335c4
commit
79779f915e
2 changed files with 3 additions and 6 deletions
|
@ -136,11 +136,7 @@ fn build_css(build: &mut Build) -> Result<()> {
|
|||
)?;
|
||||
}
|
||||
let other_ts_css = build.inputs_with_suffix(
|
||||
inputs![
|
||||
":ts:editor",
|
||||
":ts:pages:editable",
|
||||
":ts:reviewer:reviewer.css"
|
||||
],
|
||||
inputs![":ts:editor", ":ts:editable", ":ts:reviewer:reviewer.css"],
|
||||
".css",
|
||||
);
|
||||
build.add_action(
|
||||
|
|
|
@ -218,7 +218,7 @@ fn build_and_check_pages(build: &mut Build) -> Result<()> {
|
|||
build.add_dependency("ts:tag-editor", inputs![glob!["ts/tag-editor/**"]]);
|
||||
|
||||
let mut build_page = |name: &str, html: bool, deps: BuildInput| -> Result<()> {
|
||||
let group = format!("ts:pages:{name}");
|
||||
let group = format!("ts:{name}");
|
||||
let deps = inputs![deps, glob!(format!("ts/{name}/**"))];
|
||||
let extra_exts = if html { &["css", "html"][..] } else { &["css"] };
|
||||
build.add_action(
|
||||
|
@ -231,6 +231,7 @@ fn build_and_check_pages(build: &mut Build) -> Result<()> {
|
|||
extra_exts,
|
||||
},
|
||||
)?;
|
||||
build.add_dependency("ts:pages", inputs![format!(":{group}")]);
|
||||
build.add_action(
|
||||
format!("check:svelte:{name}"),
|
||||
SvelteCheck {
|
||||
|
|
Loading…
Reference in a new issue