-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove package minification * Rework core configuration system * Move Vitepress example into new configuration system * Add new configuration system support to `create-lunaria` package * Update README to reflect new configuration system * Create stale-gorillas-cross.md * Update README.md
- Loading branch information
1 parent
b7003ec
commit 8fea07a
Showing
16 changed files
with
214 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@lunariajs/core": patch | ||
"create-lunaria": patch | ||
--- | ||
|
||
Reworked core configuration system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ export default definePreset({ | |
rollup: { | ||
esbuild: { | ||
target: 'es2022', | ||
minify: true, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"repository": "https://github.com/Yan-Thomas/lunaria", | ||
"rootDir": "./examples/vitepress", | ||
"dashboard": { | ||
"url": "https://localhost:3000/" | ||
}, | ||
"defaultLocale": { | ||
"label": "English", | ||
"lang": "en", | ||
"content": { | ||
"location": "**/*.md", | ||
"ignore": ["pt/*.md", "es/*.md"] | ||
}, | ||
"dictionaries": { | ||
"location": "ui/en/*.{js,cjs,mjs,ts,yml,json}", | ||
"optionalKeys": { | ||
"ui/nav.json": ["today"], | ||
"ui/ui.cjs": ["type"], | ||
"ui/ui.js": ["type"], | ||
"ui/ui.mjs": ["type"], | ||
"ui/ui.mts": ["type"], | ||
"ui/ui.ts": ["type"], | ||
"ui/ui.yml": ["here"] | ||
} | ||
} | ||
}, | ||
"locales": [ | ||
{ | ||
"label": "Português", | ||
"lang": "pt", | ||
"content": { | ||
"location": "pt/**/*.md" | ||
}, | ||
"dictionaries": { | ||
"location": "ui/pt/*.{js,cjs,mjs,ts,yml,json}" | ||
} | ||
}, | ||
{ | ||
"label": "Spanish", | ||
"lang": "es", | ||
"content": { | ||
"location": "es/**/*.md" | ||
}, | ||
"dictionaries": { | ||
"location": "ui/es/*.{js,cjs,mjs,ts,yml,json}" | ||
} | ||
} | ||
], | ||
"translatableProperty": "i18nReady", | ||
"renderer": "./renderer.config.js" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineRendererConfig, html } from '@lunariajs/core'; | ||
|
||
export default defineRendererConfig({ | ||
slots: { | ||
afterTitle: () => html`<p>This is an example slotted component!</p>`, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type { LunariaUserConfig } from './types.js'; | ||
import type { LunariaUserRendererConfig } from './types.js'; | ||
|
||
export { html } from 'lit-html'; | ||
export type * from './types.js'; | ||
|
||
export function defineConfig(opts: LunariaUserConfig) { | ||
export function defineRendererConfig(opts: LunariaUserRendererConfig) { | ||
return opts; | ||
} |
Oops, something went wrong.