@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 +13 -0
- package/app/app.vue +3 -12
- package/app/components/{HelloWorld.vue → HelloWorld/Index.vue} +3 -2
- package/app/layouts/default.vue +11 -0
- package/eslint.config.ts +3 -0
- package/modules/assets/index.ts +2 -2
- package/modules/assets/runtime/assets/core-main.css +6 -0
- package/modules/assets/runtime/assets/core-tw.css +2 -4
- package/nuxt.config.ts +0 -4
- package/package.json +11 -16
- package/app/components/BaseItem.vue +0 -8
- package/app/components/NewItem.vue +0 -15
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
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
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
|
-
|
|
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>
|
package/eslint.config.ts
ADDED
package/modules/assets/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, installModule } from '
|
|
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
|
})
|
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.
|
|
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
|
-
"@
|
|
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
|
-
"
|
|
27
|
-
"
|
|
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
|
}
|