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

[WIP] Lunaria V1.0 #155

Draft
wants to merge 58 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
bc75b12
Update `packageManager` to [email protected]
yanthomasdev Aug 15, 2024
641a233
Reorganize monorepo setup
yanthomasdev Aug 15, 2024
2bffdd7
Replace Prettier with Biome
yanthomasdev Aug 16, 2024
12d67bf
v1 foundation
yanthomasdev Sep 9, 2024
faefab9
Fix publish workflow and Biome check issues
yanthomasdev Sep 9, 2024
e2dd31f
Move Biome CI into core package only (temporary)
yanthomasdev Sep 9, 2024
b311d37
Fix errors missing message parameter
yanthomasdev Sep 9, 2024
4d61c3b
Attempt at fixing "cannot find module"
yanthomasdev Sep 9, 2024
ea23d95
Move check for file existence up
yanthomasdev Sep 9, 2024
94f7a6c
Handle edge case in finding latest change
yanthomasdev Sep 9, 2024
a66e433
Change a few dependencies
yanthomasdev Sep 9, 2024
e8fa61d
Move configuration loading into class
yanthomasdev Sep 9, 2024
093a352
Update `path-to-regexp`
yanthomasdev Sep 12, 2024
70e39d0
Fix `findFileConfig()` matching
yanthomasdev Sep 12, 2024
d588a82
test: basic caching function
yanthomasdev Sep 14, 2024
205487f
Add git caching
yanthomasdev Sep 14, 2024
ed2b45a
Remove dependency on empathic
yanthomasdev Sep 16, 2024
4e31e85
Merge branch 'v1' of https://github.com/yanthomasdev/lunaria into v1
yanthomasdev Sep 16, 2024
12c4040
Add integrations support
yanthomasdev Oct 4, 2024
0e8a44c
Add tracking tests and fix `@lunaria-ignore`
yanthomasdev Oct 13, 2024
9054a79
Biome format and check
yanthomasdev Oct 13, 2024
ff2cccc
Remove nextra example
yanthomasdev Oct 13, 2024
5b6ee76
Update `jiti` to `v2.3.3` and move async code
yanthomasdev Oct 13, 2024
b55cdcd
Improve a few errors
yanthomasdev Oct 13, 2024
d2f7645
Update Biome to `v1.9.3`
yanthomasdev Oct 13, 2024
dac1d7c
Remove solved `TODO`s
yanthomasdev Oct 13, 2024
92655af
Add dictionaries tests and fix bug
yanthomasdev Oct 14, 2024
cbe2bff
Add external repo support
yanthomasdev Oct 21, 2024
387b1c5
Use async version of `node:fs` modules
yanthomasdev Oct 22, 2024
082caa4
Filter out unlocalizable files
yanthomasdev Oct 22, 2024
a219bee
Make patterns less restrictive
yanthomasdev Nov 6, 2024
0aebd79
Fix support for yaml dictionary files
yanthomasdev Nov 6, 2024
0bf48b2
Add support for custom parameters in patterns
yanthomasdev Nov 7, 2024
c128ce1
Make config readable
yanthomasdev Nov 8, 2024
f52e5c3
Add git hosting links to public API
yanthomasdev Nov 8, 2024
06931b3
Force `pkg.pr.new` rebuild
yanthomasdev Nov 9, 2024
45a07eb
Merge branch 'main' into v1
yanthomasdev Nov 9, 2024
f81d0fb
Update Starlight example
yanthomasdev Nov 11, 2024
3523c58
Fix cache creation issue
yanthomasdev Nov 11, 2024
592e4ff
Await dictionaries individually
yanthomasdev Nov 11, 2024
ae1b8a7
Properly sort entries
yanthomasdev Nov 12, 2024
f00ede3
Fix `findFileConfig()` issue
yanthomasdev Nov 12, 2024
e57b9f7
Fix edge case in path compilation from patterns
yanthomasdev Nov 13, 2024
6d3c5d8
Remove VitePress example
yanthomasdev Nov 13, 2024
32ec387
Fix issue with getting localizedPath
yanthomasdev Nov 13, 2024
8825f83
Fix typo in error message
yanthomasdev Nov 13, 2024
f3e0577
Update examples
yanthomasdev Nov 13, 2024
5f38136
Change `findFileConfig` logic again
yanthomasdev Nov 13, 2024
62a858f
Make Biome happy
yanthomasdev Nov 13, 2024
bef33c0
Rename `findFileConfig` and improve logic
yanthomasdev Nov 22, 2024
2cb6111
Use full picomatch import
yanthomasdev Nov 22, 2024
0c6dcb4
Fix matching issue in `findFilesEntry`
yanthomasdev Nov 22, 2024
59c4b19
Update `external` example
yanthomasdev Nov 22, 2024
add3ea3
Trim lunaria directives' paths and globs
yanthomasdev Nov 22, 2024
267c8e4
Test adding limited concurrency
yanthomasdev Nov 23, 2024
bdbc42a
Revert "Test adding limited concurrency"
yanthomasdev Nov 23, 2024
4c8b9b0
Update dependencies
yanthomasdev Nov 25, 2024
bb58040
Add limited concurrency
yanthomasdev Nov 28, 2024
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
5 changes: 1 addition & 4 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "yanthomasdev/lunaria" }
],
"changelog": ["@changesets/changelog-github", { "repo": "yanthomasdev/lunaria" }],

"commit": false,
"fixed": [],
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/format.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Commit Preview
on:
pull_request:
push:
branches:
- '**'
tags:
- '!**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code using Git
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: ${{ github.head_ref }}

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'

- name: Install Dependencies
run: pnpm i

- name: Build Packages
run: pnpm run build:core

- run: pnpx pkg-pr-new publish --compact './packages/core'
23 changes: 23 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Code Quality
on:
push:
pull_request:

jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: ${{ github.head_ref }}

- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest

# TODO: Make the job apply to other packages
- name: Run Biome
run: biome ci ./packages/core/**/*
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Check out code using Git
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
ref: ${{ github.head_ref }}
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

Expand All @@ -22,7 +24,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'pnpm'

- name: Install Dependencies
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# dependencies
node_modules/
**/node_modules/

# build output
dist/

# generated directories/files
.turbo/
.astro/
.next/
.vitepress/
*.tsbuildinfo

# logs
npm-debug.log*
yarn-debug.log*
Expand Down
16 changes: 0 additions & 16 deletions .prettierignore

This file was deleted.

23 changes: 0 additions & 23 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# TODO
64 changes: 64 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"indentStyle": "tab",
"indentWidth": 2,
"lineWidth": 100,
"formatWithErrors": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"useNodejsImportProtocol": "error"
},
"correctness": {
"noUnusedImports": "error"
},
"suspicious": {
"noConsole": {
"options": {
"allow": ["warn", "error", "info", "time", "timeEnd"]
},
"level": "error"
}
}
}
},
"javascript": {
"formatter": {
"trailingCommas": "all",
"quoteStyle": "single",
"semicolons": "always"
}
},
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
},
"formatter": {
"indentStyle": "space",
"trailingCommas": "none"
}
},
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
},
"overrides": [
{
"include": ["package.json"],
"json": {
"formatter": {
"lineWidth": 1
}
}
}
]
}
11 changes: 0 additions & 11 deletions build.preset.ts

This file was deleted.

21 changes: 0 additions & 21 deletions docs/.gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import starlight from '@astrojs/starlight';
import { defineConfig } from 'astro/config';
import starlightLinksValidator from 'starlight-links-validator';
import starlightBlog from 'starlight-blog';
import starlightLinksValidator from 'starlight-links-validator';

const site = 'https://lunaria.dev/';

Expand All @@ -25,11 +25,11 @@ export default defineConfig({
head: [
{
tag: 'meta',
attrs: { property: 'og:image', content: site + 'og.jpg?v=1' },
attrs: { property: 'og:image', content: `${site}og.jpg?v=1` },
},
{
tag: 'meta',
attrs: { property: 'twitter:image', content: site + 'og.jpg?v=1' },
attrs: { property: 'twitter:image', content: `${site}og.jpg?v=1` },
},
],
sidebar: [
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/ShowcaseCard.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import type { ImageMetadata } from 'astro';
import { Image } from 'astro:assets';
import type { ImageMetadata } from 'astro';
import MediaCard from './MediaCard.astro';

interface Props {
Expand All @@ -11,7 +11,7 @@ interface Props {
const { href, title } = Astro.props;

const thumbnails = import.meta.glob<{ default: ImageMetadata }>(
'../assets/showcase/*{.png,.jpg,.jpeg,.webp,.avif}'
'../assets/showcase/*{.png,.jpg,.jpeg,.webp,.avif}',
);
const thumbnail = thumbnails[`../assets/showcase/${Astro.props.thumbnail}`];
if (!thumbnail) {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ShowcaseSites.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import Card from './ShowcaseCard.astro';
import FluidGrid from './FluidGrid.astro';
import Card from './ShowcaseCard.astro';
---

<FluidGrid>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
import { defineCollection } from 'astro:content';
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
import { blogSchema } from 'starlight-blog/schema';

export const collections = {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/styles/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--overlay-blurple: hsla(var(--purple-hsl), 0.2);
}

:root[data-theme='light'] {
:root[data-theme="light"] {
--purple-hsl: 262, 80%, 56%;
}

Expand All @@ -12,7 +12,7 @@
linear-gradient(215deg, var(--overlay-blurple), transparent 40%),
radial-gradient(var(--overlay-blurple), transparent 40%) no-repeat -60vw -40vh / 105vw 200vh,
radial-gradient(var(--overlay-blurple), transparent 65%) no-repeat 50% calc(100% + 20rem) /
60rem 30rem;
60rem 30rem;
}

[data-has-hero] header {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--sl-color-black: #1a171c;
}
/* Light mode colors. */
:root[data-theme='light'] {
:root[data-theme="light"] {
--sl-color-accent-low: #d7d0ff;
--sl-color-accent: #7a23f8;
--sl-color-accent-high: #371b70;
Expand Down
Loading