generated from redte-ch/redte.ch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
333876e
commit 33e5541
Showing
10 changed files
with
208 additions
and
69 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
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
.yarn | ||
dist | ||
node_modules | ||
.env* | ||
!.env.example |
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 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,44 @@ | ||
/** | ||
* Site configuration. | ||
* | ||
* @module app | ||
*/ | ||
|
||
type Sitemap = { | ||
i18n: { | ||
defaultLocale: string | ||
locales: { [key: string]: string } | ||
} | ||
lastmod: Date | ||
} | ||
|
||
const sitemap: Sitemap = { | ||
i18n: { | ||
defaultLocale: 'fr', | ||
locales: { fr: 'fr-FR' } | ||
}, | ||
lastmod: new Date() | ||
} | ||
|
||
type Config = { | ||
site: string | ||
sitemap: Sitemap | ||
} | ||
|
||
type App = { | ||
production: Config | ||
development: Config | ||
} | ||
|
||
const app: App = { | ||
production: { | ||
site: 'https://maisonquiroga.art', | ||
sitemap | ||
}, | ||
development: { | ||
site: 'http://localhost:4321', | ||
sitemap | ||
} | ||
} | ||
|
||
export default app |
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,61 @@ | ||
/** | ||
* Assets configuration. | ||
* | ||
* @module assets | ||
*/ | ||
|
||
type Compression = { | ||
Image: boolean | ||
HTML: boolean | ||
SVG: boolean | ||
} | ||
|
||
const compression: Compression = { | ||
Image: false, | ||
HTML: true, | ||
SVG: false | ||
} | ||
|
||
type Inline = 'always' | 'auto' | 'never' | ||
const inline: Inline = 'always' | ||
|
||
type Output = string | ||
const output = 'public' | ||
|
||
type Fonts = (url: string) => { | ||
fallbacks: string[] | ||
resolvePath: (id: string) => URL | ||
} | ||
|
||
const fonts: Fonts = (url) => { | ||
return { | ||
fallbacks: ['Helvetica'], | ||
resolvePath: (id) => new URL(`public/${id}`, url) | ||
} | ||
} | ||
|
||
type Config = { | ||
compression: Compression | ||
fonts: Fonts | ||
inline: Inline | ||
output: Output | ||
} | ||
|
||
const config: Config = { | ||
compression, | ||
fonts, | ||
inline, | ||
output | ||
} | ||
|
||
type Assets = { | ||
production: Config | ||
development: Config | ||
} | ||
|
||
const assets: Assets = { | ||
production: config, | ||
development: config | ||
} | ||
|
||
export default assets |
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