softleader-nuxt-core 1.0.0 → 1.0.4
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/.eslintrc.cjs +25 -0
- package/.prettierrc +10 -0
- package/nuxt.config.ts +5 -1
- package/package.json +10 -5
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
node: true,
|
|
6
|
+
es2022: true
|
|
7
|
+
},
|
|
8
|
+
extends: [
|
|
9
|
+
'@nuxt/eslint-config',
|
|
10
|
+
'plugin:@typescript-eslint/recommended'
|
|
11
|
+
],
|
|
12
|
+
parser: '@typescript-eslint/parser',
|
|
13
|
+
parserOptions: {
|
|
14
|
+
ecmaVersion: 2022,
|
|
15
|
+
sourceType: 'module'
|
|
16
|
+
},
|
|
17
|
+
plugins: ['@typescript-eslint'],
|
|
18
|
+
rules: {
|
|
19
|
+
// 自訂規則
|
|
20
|
+
'vue/multi-word-component-names': 'off',
|
|
21
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
22
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
23
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
24
|
+
}
|
|
25
|
+
}
|
package/.prettierrc
ADDED
package/nuxt.config.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { createResolver } from '@nuxt/kit'
|
|
2
|
+
|
|
3
|
+
const { resolve } = createResolver(import.meta.url)
|
|
4
|
+
|
|
1
5
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
2
6
|
export default defineNuxtConfig({
|
|
3
7
|
compatibilityDate: "2024-04-03",
|
|
@@ -9,7 +13,7 @@ export default defineNuxtConfig({
|
|
|
9
13
|
},
|
|
10
14
|
|
|
11
15
|
// CSS 配置
|
|
12
|
-
css: ["./styles/main.css"],
|
|
16
|
+
css: [resolve("./styles/main.css")],
|
|
13
17
|
|
|
14
18
|
// Runtime 配置
|
|
15
19
|
runtimeConfig: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "softleader-nuxt-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Nuxt 3 Core Layer - 可重用的基礎架構",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"styles",
|
|
12
12
|
"nuxt.config.ts",
|
|
13
13
|
"tsconfig.base.json",
|
|
14
|
+
".eslintrc.cjs",
|
|
15
|
+
".prettierrc",
|
|
14
16
|
"README.md"
|
|
15
17
|
],
|
|
16
18
|
"exports": {
|
|
@@ -22,18 +24,21 @@
|
|
|
22
24
|
"typecheck": "nuxi typecheck"
|
|
23
25
|
},
|
|
24
26
|
"dependencies": {
|
|
25
|
-
"@nuxt/kit": "^3.15.4"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
27
|
+
"@nuxt/kit": "^3.15.4",
|
|
28
28
|
"@nuxt/eslint-config": "^0.5.7",
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
30
30
|
"@typescript-eslint/parser": "^8.18.2",
|
|
31
31
|
"eslint": "^9.17.0",
|
|
32
|
-
"nuxt": "^3.15.4",
|
|
33
32
|
"prettier": "^3.4.2",
|
|
34
33
|
"typescript": "^5.7.3",
|
|
35
34
|
"vue-tsc": "^2.2.0"
|
|
36
35
|
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"nuxt": "^3.15.4"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"nuxt": "^3.0.0 || ^4.0.0"
|
|
41
|
+
},
|
|
37
42
|
"keywords": [
|
|
38
43
|
"nuxt3",
|
|
39
44
|
"layer",
|