@dargmuesli/nuxt-vio 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
package/nuxt.config.ts CHANGED
@@ -1,6 +1,30 @@
1
+ import { SITE_NAME } from './utils/constants'
2
+
1
3
  // https://v3.nuxtjs.org/api/configuration/nuxt.config
2
4
  export default defineNuxtConfig({
5
+ app: {
6
+ head: {
7
+ htmlAttrs: {
8
+ lang: "en", // fallback data to prevent invalid html at generation
9
+ },
10
+ titleTemplate: `%s`,
11
+ title: SITE_NAME, // fallback data to prevent invalid html at generation
12
+ },
13
+ },
14
+ css: ['@/assets/css/main.css'],
3
15
  nitro: {
4
16
  compressPublicAssets: true,
5
17
  },
6
- })
18
+ postcss: {
19
+ plugins: { tailwindcss: {}, autoprefixer: {} },
20
+ },
21
+ typescript: {
22
+ shim: false,
23
+ strict: true,
24
+ tsConfig: {
25
+ vueCompilerOptions: {
26
+ htmlAttributes: [], // https://github.com/johnsoncodehk/volar/issues/1970#issuecomment-1276994634
27
+ },
28
+ },
29
+ },
30
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,6 +27,7 @@
27
27
  "lint": "eslint ."
28
28
  },
29
29
  "dependencies": {
30
+ "@nuxtjs/i18n": "8.0.0-beta.10",
30
31
  "vue-gtag": "2.0.1"
31
32
  },
32
33
  "devDependencies": {
@@ -1 +1,16 @@
1
- export const CYPRESS_BASE_URL = 'http://localhost:3000'
1
+ import { LocaleObject } from "@nuxtjs/i18n/dist/runtime/composables";
2
+
3
+ export const CYPRESS_BASE_URL = "http://localhost:3000";
4
+ export const LOCALES: LocaleObject[] = [
5
+ {
6
+ code: "en",
7
+ name: "English",
8
+ iso: "en", // Will be used as catchall locale by default.
9
+ },
10
+ {
11
+ code: "de",
12
+ name: "Deutsch",
13
+ iso: "de",
14
+ },
15
+ ];
16
+ export const SITE_NAME = "Vio";