diff --git a/index.tera b/index.tera index eed4a4d..b15791c 100644 --- a/index.tera +++ b/index.tera @@ -1,6 +1,7 @@ --- whiskers: - version: "2.0.0" + version: "2.2.0" + filename: "src/index.ts" --- import { JupyterFrontEnd, diff --git a/jupyterlab.tera b/jupyterlab.tera index db1b46a..b7280b8 100644 --- a/jupyterlab.tera +++ b/jupyterlab.tera @@ -1,6 +1,7 @@ --- whiskers: - version: "2.0.0" + version: "2.2.0" + filename: "src/palettes.ts" --- export class CatppuccinPalettes { setConfigColors(brandColor: string, accentColor: string) { @@ -17,7 +18,7 @@ export class CatppuccinPalettes { {%- for id, flavor in flavors %} setColors{{flavor.name | slugify | capitalize}}() { - {%- for name, color in flavor.colors -%} + {%- for name, color in flavor.colors %} document.documentElement.style.setProperty('--ctp-plt-{{name}}', '#{{color.hex}}'); {%- endfor %} } diff --git a/justfile b/justfile index ece5bca..724cf71 100644 --- a/justfile +++ b/justfile @@ -1,21 +1,10 @@ -# Print out all recipes when running `just` _default: - @just --list + @just --list -# Variables -output := "src" -whiskers_cmd := "whiskers" - -# Create the output directory -setup: - mkdir -p {{output}} - -# Remove all files in the output directory clean: - rm -fv {{output}}/* + rm -fv src/* -# Generate all flavors -all: setup - {{whiskers_cmd}} jupyterlab.tera > {{output}}/palettes.ts - {{whiskers_cmd}} index.tera > {{output}}/index.ts - jlpm run prettier +build: + whiskers jupyterlab.tera + whiskers index.tera + jlpm run prettier