@sbc-connect/nuxt-base 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @sbc-connect/nuxt-base
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5](https://github.com/bcgov/connect-nuxt/pull/5) [`2999779`](https://github.com/bcgov/connect-nuxt/commit/29997796bd3908b2c5ba04319b26cbb00bffe0fc) Thanks [@kialj876](https://github.com/kialj876)! - Updated fonts propagation in base, cleaned up dependencies in layers
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#3](https://github.com/bcgov/connect-nuxt/pull/3) [`401b62a`](https://github.com/bcgov/connect-nuxt/commit/401b62a465c338cb745c14db645797ffaac1ddab) Thanks [@kialj876](https://github.com/kialj876)! - Layer updates
package/app/app.vue CHANGED
@@ -1,14 +1,5 @@
1
1
  <template>
2
- <div class="app-container">
3
- <div class="app-inner-container app-body">
4
- <div class="flex flex-col lg:flex-row lg:gap-6 grow">
5
- <div class="grow max-w-full overflow-hidden">
6
- <HelloWorld />
7
- Base layer text update
8
- <NewItem />
9
- <BaseItem />
10
- </div>
11
- </div>
12
- </div>
13
- </div>
2
+ <nuxt-layout>
3
+ <nuxt-page />
4
+ </nuxt-layout>
14
5
  </template>
@@ -4,10 +4,11 @@ const { myLayer } = useAppConfig()
4
4
 
5
5
  <template>
6
6
  <div class="bg-primary">
7
- <h1>Hello World! NEW x 3!!!</h1>
7
+ Should have bg-primary
8
+ <h1>Hello World!</h1>
8
9
  <pre>{{ myLayer }}</pre>
9
10
  <p class="text-bcGovGray-900">
10
- Hello World text base
11
+ Hello World text base should be bcGovGray-900
11
12
  </p>
12
13
  </div>
13
14
  </template>
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <div class="app-container">
3
+ <div class="app-inner-container app-body">
4
+ <div class="flex flex-col lg:flex-row lg:gap-6 grow">
5
+ <div class="grow max-w-full overflow-hidden">
6
+ <slot />
7
+ </div>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ </template>
@@ -0,0 +1,3 @@
1
+ import eslintConfig from '@sbc-connect/eslint-config'
2
+
3
+ export default eslintConfig
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, installModule } from '@nuxt/kit'
1
+ import { defineNuxtModule, createResolver, installModule } from 'nuxt/kit'
2
2
 
3
3
  // Module options TypeScript interface definition
4
4
  export interface ModuleOptions {
@@ -16,9 +16,9 @@ export default defineNuxtModule<ModuleOptions>({
16
16
  console.info('setting up assets module')
17
17
  const resolver = createResolver(import.meta.url)
18
18
 
19
- // _nuxt.options.css.push(resolver.resolve('./runtime/assets/core-main.css'))
20
19
  _nuxt.options.css.push(resolver.resolve('./runtime/assets/core-tw.css'))
21
20
  _nuxt.options.css.push(resolver.resolve('./runtime/assets/core-layout.css'))
21
+ _nuxt.options.css.push(resolver.resolve('./runtime/assets/core-main.css'))
22
22
  await installModule('@nuxt/ui')
23
23
  }
24
24
  })
@@ -0,0 +1,6 @@
1
+ @import "tailwindcss";
2
+ @import "@nuxt/ui";
3
+ @import "./core-tw.css";
4
+ @import "./core-layout.css";
5
+
6
+ @source "../../../../app/";
@@ -1,7 +1,5 @@
1
- @import "tailwindcss";
2
- @import "@nuxt/ui";
3
-
4
- @source "../../../../";
1
+ @reference "tailwindcss";
2
+ @reference "@nuxt/ui";
5
3
 
6
4
  /* Customize Nuxt UI default tokens */
7
5
  :root {
package/nuxt.config.ts CHANGED
@@ -7,8 +7,6 @@ export default defineNuxtConfig({
7
7
 
8
8
  devtools: { enabled: false },
9
9
 
10
- modules: ['@nuxt/ui'],
11
-
12
10
  alias: {
13
11
  'BCGovFonts': resolve('./public/fonts/BCSans'),
14
12
  'BCGovLogoSmEn': resolve('./public/BCGovLogo/gov_bc_logo_vert_en.png'),
@@ -18,7 +16,5 @@ export default defineNuxtConfig({
18
16
  '#base': resolve('./')
19
17
  },
20
18
 
21
- css: [],
22
-
23
19
  compatibilityDate: '2025-07-10'
24
20
  })
package/package.json CHANGED
@@ -1,30 +1,24 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-base",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
6
  "main": "./nuxt.config.ts",
7
7
  "dependencies": {
8
8
  "@nuxt/ui": "^3.2.0"
9
9
  },
10
10
  "devDependencies": {
11
- "nuxt": "4.0.0",
12
- "typescript": "^5.8.3",
13
- "vue": "latest",
14
- "@nuxtjs/i18n": "^9.5.5",
15
- "@playwright/test": "^1.52.0",
16
11
  "@axe-core/playwright": "^4.10.2",
17
- "@faker-js/faker": "^9.8.0",
18
- "@nuxt/test-utils": "^3.19.1",
19
- "vitest": "^3.2.3",
12
+ "@nuxtjs/i18n": "^9.5.5",
20
13
  "@vitest/coverage-v8": "^3.2.3",
21
- "happy-dom": "^17.6.3",
22
- "otpauth": "^9.4.0",
23
- "@testing-library/vue": "^8.1.0",
24
- "@vue/test-utils": "^2.4.6",
25
14
  "dotenv": "^17.2.0",
26
- "@sbc-connect/playwright-config": "0.0.1",
27
- "@sbc-connect/vitest-config": "0.0.1"
15
+ "nuxt": "4.0.0",
16
+ "typescript": "^5.8.3",
17
+ "vue": "latest",
18
+ "vue-tsc": "^3.0.2",
19
+ "@sbc-connect/playwright-config": "0.0.3",
20
+ "@sbc-connect/vitest-config": "0.0.3",
21
+ "@sbc-connect/eslint-config": "0.0.3"
28
22
  },
29
23
  "scripts": {
30
24
  "preinstall": "npx only-allow pnpm",
@@ -37,6 +31,7 @@
37
31
  "lint:fix": "eslint --fix .",
38
32
  "test": "pnpm run test:unit; pnpm run test:e2e",
39
33
  "test:unit": "vitest run",
40
- "test:e2e": "npx playwright test"
34
+ "test:e2e": "npx playwright test",
35
+ "typecheck": "npx nuxt typecheck"
41
36
  }
42
37
  }
@@ -1,8 +0,0 @@
1
- <script setup lang="ts">
2
- </script>
3
-
4
- <template>
5
- <div class="bg-midnightBlue-950">
6
- Base Layer Component
7
- </div>
8
- </template>
@@ -1,15 +0,0 @@
1
- <script setup lang="ts">
2
- const something = ref(false)
3
- </script>
4
-
5
- <template>
6
- <div class="bg-yellow-500">
7
- I am a new item
8
- <br>
9
- {{ something }}
10
- <br>
11
- more stuff here
12
- <br>
13
- again more stuff
14
- </div>
15
- </template>