@web-baseline/nuxt-css-layer 0.1.0 → 0.2.0

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/README.zh-CN.md CHANGED
@@ -13,8 +13,8 @@ _✨ 在 Nuxt 中使用 CSS 级联层 ✨_
13
13
 
14
14
  ## 特性
15
15
 
16
- - 为 CSS 文件添加级联层(使用 [@web-baseline/postcss-wrap-up-layer](https://github.com/web-baseline/postcss-wrap-up-layer))
17
- - 允许 Vue SFC 的 `<style>` 块设置 CSS 级联层 (使用 [@web-baseline/vite-plugin-vue-style-layer](https://github.com/web-baseline/postcss-wrap-up-layer/blob/main/README.zh-CN.md))
16
+ - 为 CSS 文件添加级联层(使用 [@web-baseline/postcss-wrap-up-layer](https://github.com/web-baseline/postcss-wrap-up-layer/blob/main/README.zh-CN.md))
17
+ - 允许 Vue SFC 的 `<style>` 块设置 CSS 级联层 (使用 [@web-baseline/vite-plugin-vue-style-layer](https://github.com/web-baseline/vite-plugin-vue-style-layer))
18
18
  - CSS 级联层排序
19
19
 
20
20
  ## 快速开始
package/dist/module.d.mts CHANGED
@@ -9,6 +9,6 @@ interface ModuleOptions {
9
9
  ignoreOnlyComments?: PluginOptions$1['ignoreOnlyComments'];
10
10
  cssLayerOrder?: string | string[];
11
11
  }
12
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
12
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
13
13
 
14
14
  export { type ModuleOptions, _default as default };
package/dist/module.d.ts CHANGED
@@ -9,6 +9,6 @@ interface ModuleOptions {
9
9
  ignoreOnlyComments?: PluginOptions$1['ignoreOnlyComments'];
10
10
  cssLayerOrder?: string | string[];
11
11
  }
12
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
12
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
13
13
 
14
14
  export { type ModuleOptions, _default as default };
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "nuxt-css-layer",
3
3
  "configKey": "cssLayer",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.6.0",
6
+ "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
8
8
  }
9
9
  }
package/dist/types.d.mts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module.js'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['cssLayer']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['cssLayer']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['cssLayer']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['cssLayer']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { ModuleOptions, default } from './module.js'
1
+ export { type ModuleOptions, default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['cssLayer']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['cssLayer']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['cssLayer']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['cssLayer']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { ModuleOptions, default } from './module'
1
+ export { type ModuleOptions, default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-baseline/nuxt-css-layer",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Use css cascade layers in Nuxt",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,6 +27,7 @@
27
27
  "nuxt-module"
28
28
  ],
29
29
  "scripts": {
30
+ "prepare": "nuxt-module-build prepare",
30
31
  "prepack": "nuxt-module-build build",
31
32
  "dev": "nuxi dev playground",
32
33
  "dev:build": "nuxi build playground",
@@ -34,8 +35,8 @@
34
35
  "release": "npm run build && changelogen --release && npm publish && git push --follow-tags",
35
36
  "build": "npm run dev:prepare && npm run lint && npm run test && npm run prepack",
36
37
  "lint": "eslint .",
37
- "test": "vitest run",
38
- "test:watch": "vitest watch",
38
+ "test": "nuxi prepare test/fixtures/basic && vitest run",
39
+ "test:watch": "nuxi prepare test/fixtures/basic && vitest watch",
39
40
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
40
41
  },
41
42
  "author": "TM-SunnyDay <sunnyday@chongying.studio> (https://github.com/TM-SunnyDay/)",
@@ -45,23 +46,25 @@
45
46
  },
46
47
  "dependencies": {
47
48
  "@nuxt/kit": "^3.11.2",
48
- "@web-baseline/postcss-wrap-up-layer": "^0.1.0",
49
- "@web-baseline/vite-plugin-vue-style-layer": "^0.1.0"
49
+ "@web-baseline/postcss-wrap-up-layer": "^0.2.0",
50
+ "@web-baseline/vite-plugin-vue-style-layer": "^0.2.0"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@element-plus/nuxt": "^1.0.9",
53
54
  "@nuxt/devtools": "^1.2.0",
54
55
  "@nuxt/eslint-config": "^0.3.10",
55
- "@nuxt/module-builder": "^0.6.0",
56
+ "@nuxt/module-builder": "^0.8.4",
56
57
  "@nuxt/schema": "^3.11.2",
57
- "@nuxt/test-utils": "^3.12.1",
58
+ "@nuxt/test-utils": "^3.15.4",
58
59
  "@types/node": "^20.12.11",
60
+ "@vitest/ui": "^2.1.8",
59
61
  "changelogen": "^0.5.5",
60
62
  "element-plus": "^2.7.3",
61
63
  "eslint": "^9.2.0",
62
- "nuxt": "^3.12.2",
64
+ "nuxt": "^3.15.1",
63
65
  "typescript": "latest",
64
- "vitest": "^1.6.0",
66
+ "vitest": "^2.1.8",
65
67
  "vue-tsc": "^2.0.16"
66
- }
68
+ },
69
+ "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
67
70
  }