mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
// noinspection ES6PreferShortImport: IntelliJ IDE hint to avoid warning to use `~/contributors`, will fail on build if changed
|
|
/* PWA DISABLED */
|
|
export const pwaDisabled = false
|
|
|
|
/* Texts */
|
|
export const vitestName = 'Vitest'
|
|
export const vitestShortName = 'Vitest'
|
|
export const vitestDescription = 'A blazing fast unit test framework powered by Vite'
|
|
|
|
/* CDN fonts and styles */
|
|
export const googleapis = 'https://fonts.googleapis.com'
|
|
export const gstatic = 'https://fonts.gstatic.com'
|
|
export const font = `${googleapis}/css2?family=Readex+Pro:wght@200;400;600&display=swap`
|
|
|
|
/* vitepress head */
|
|
export const ogUrl = 'https://vitest.dev/'
|
|
export const ogImage = `${ogUrl}og.png`
|
|
|
|
/* GitHub and social links */
|
|
export const releases = 'https://github.com/vitest-dev/vitest/releases'
|
|
export const contributing = 'https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md'
|
|
export const discord = 'https://chat.vitest.dev'
|
|
export const twitter = 'https://twitter.com/vitest_dev'
|
|
|
|
/* Avatar/Image/Sponsors servers */
|
|
export const preconnectLinks = [googleapis, gstatic]
|
|
export const preconnectHomeLinks = [googleapis, gstatic]
|
|
|
|
/* PWA runtime caching urlPattern regular expressions */
|
|
export const pwaFontsRegex = new RegExp(`^${googleapis}/.*`, 'i')
|
|
export const pwaFontStylesRegex = new RegExp(`^${gstatic}/.*`, 'i')
|