Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://EditorConfig.org

# top-most EditorConfig file
root = true

[*.{js,jsx,ts,tsx,json,astro}]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = false
20 changes: 8 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ BUILD_DIR := build
REPORTS_DIR := reports
SCRIPTS_DIR := scripts
SOURCES_DIR := sources
PYTHON_VERSION := 3.13

# Font sources
LILEX_ROMAN_SOURCE = $(SOURCES_DIR)/Lilex.glyphs
LILEX_ITALIC_SOURCE = $(SOURCES_DIR)/Lilex-Italic.glyphs

# Internal build variables
OS := $(shell uname)
VENV_DIR = ./venv
VENV_DIR = ./.venv
VENV = . $(VENV_DIR)/bin/activate;

define build-font
@$(VENV) python $(SCRIPTS_DIR)/font.py \
$(VENV) python $(SCRIPTS_DIR)/font.py \
--config "sources/family_config.yaml" \
build $(1)
endef
Expand Down Expand Up @@ -46,9 +47,10 @@ help: ## print this message

.PHONY: configure
configure: requirements.txt ## setup build environment
@rm -rf $(VENV_DIR)
@make $(VENV_DIR)
@$(VENV) python -m youseedee A > /dev/null
@rm -rf "$(VENV_DIR)"
@uv venv --python $(PYTHON_VERSION)
@uv pip install -r requirements.txt
@uv run youseedee A > /dev/null

.PHONY: configure
configure-preview: ## setup preview environment
Expand Down Expand Up @@ -77,7 +79,7 @@ check-sequential: clean-reports ## check each font file quality
lint: ## check code quality
$(VENV) ruff check $(SCRIPTS_DIR)/
$(VENV) pylint $(SCRIPTS_DIR)/
cd preview; pnpm eslint 'src/**/*.{svlete,ts}'
cd preview; pnpm astro-check

.PHONY: preview
preview: ## show CLI special symbols preview
Expand Down Expand Up @@ -150,9 +152,3 @@ install-Darwin:
install-Linux:
@rm -rf ~/.fonts/Lilex
@cp -r build/ttf ~/.fonts/Lilex

$(VENV_DIR): requirements.txt
@rm -rf "$(VENV_DIR)"
@python3.11 -m venv "$(VENV_DIR)"
@$(VENV) pip install wheel
@$(VENV) pip install -r requirements.txt
11 changes: 0 additions & 11 deletions preview/.editorconfig

This file was deleted.

225 changes: 0 additions & 225 deletions preview/.eslintrc

This file was deleted.

42 changes: 21 additions & 21 deletions preview/.gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Logs
logs
*.log
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
.vite

public/*
!public/.gitkeep
# environment variables
.env
.env.production

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
# macOS-specific files
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# jetbrains setting folder
.idea/

# fonts
public/fonts

4 changes: 4 additions & 0 deletions preview/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions preview/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
14 changes: 14 additions & 0 deletions preview/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check
import { defineConfig } from 'astro/config';
import { fileLinker } from './font-linker.mjs';

const FONTS_SOURCE = '../build/variable'
const FONTS_TARGET = './public/fonts'


// https://astro.build/config
export default defineConfig({
integrations: [
fileLinker(FONTS_SOURCE, FONTS_TARGET)
],
});
Loading
Loading