refactor(config): update config + types

This commit is contained in:
Walid 2023-02-10 12:41:47 +01:00
parent bb304f8805
commit 7c3e436d85
Signed by: Walidoux
GPG Key ID: CCF21881FE8BEBAF
2 changed files with 11 additions and 12 deletions

View File

@ -1,4 +1,4 @@
type PCKeys = type SEOKeys =
| 'shortName' | 'shortName'
| 'longName' | 'longName'
| 'description' | 'description'
@ -7,8 +7,6 @@ type PCKeys =
| 'defaultLocale' | 'defaultLocale'
type PCIconsKeys = 'default' | 'image' | 'apple' | '16_16' | '32_32' type PCIconsKeys = 'default' | 'image' | 'apple' | '16_16' | '32_32'
type PCProps = Record<PCKeys, string> export interface SEODefaultValues extends Partial<Record<SEOKeys, string>> {
icons?: Record<PCIconsKeys, string>
export interface PCDefaultValues extends PCProps {
icons: Record<PCIconsKeys, string>
} }

View File

@ -1,11 +1,12 @@
import { PCDefaultValues } from 'types/projectConfig' import { SEODefaultValues } from 'types/config'
export const projectConfig: PCDefaultValues = { export const PROJECT_NAME = 'Boilerplate'
shortName: 'Boilerplate',
longName: 'Next.Js Boilerplate', export const SEOConfig: SEODefaultValues = {
description: shortName: PROJECT_NAME,
'The latest Next.js boilerplate starter code/time saver with Typescript / SCSS. Including linters such as: Prettier, Eslint and Stylelint.', longName: `Next.Js ${PROJECT_NAME}`,
url: 'Unknown project url', description: `My Next.JS ${PROJECT_NAME} with TS - Tailwind CSS and much more.`,
url: 'https://next-app-boilerplate.vercel.app/',
defaultLocale: 'en', defaultLocale: 'en',
color: '#775aaa', color: '#775aaa',
icons: { icons: {