-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
95 lines (95 loc) · 3.74 KB
/
package.json
File metadata and controls
95 lines (95 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"name": "cosmic",
"private": true,
"engines": {
"node": ">=v16.13",
"npm": ">=8.1"
},
"main": "packages/app/dist/index.cjs",
"scripts": {
"prepare": "npx only-allow pnpm",
"build": "npm run build:main && npm run build:preload && npm run build:core && npm run build:module && npm run build:site",
"build:main": "cd ./packages/app && vite build",
"build:preload": "cd ./packages/preload && vite build",
"build:preload:types": "dts-cb -i \"packages/preload/tsconfig.json\" -o \"packages/preload/exposedInMainWorld.d.ts\"",
"build:site": "cd ./packages/site && vite build",
"build:core": "npm -C ./packages/core run build",
"build:module": "node scripts/build-modules.js",
"compile": "cross-env MODE=production npm run build && electron-builder build --config .electron-builder.config.js",
"test": "npm run test:main && npm run test:preload && npm run test:site && npm run test:e2e",
"test:e2e": "npm run build && vitest run",
"test:main": "vitest run -r packages/app --passWithNoTests",
"test:preload": "vitest run -r packages/preload --passWithNoTests",
"test:site": "vitest run -r packages/site --passWithNoTests",
"watch": "node scripts/watch.js",
"format": "stylelint --fix packages/**/*.{css,less} && eslint '**/*.{js,ts,jsx,vue}' --fix",
"lint": "eslint . --ext js,ts,vue",
"typecheck:main": "tsc --noEmit -p packages/app/tsconfig.json",
"typecheck:preload": "tsc --noEmit -p packages/preload/tsconfig.json",
"typecheck:site": "npm run build:preload:types",
"typecheck:vue": "vue-tsc --noEmit -p ./tsconfig.json",
"typecheck": "npm run typecheck:main && npm run typecheck:preload && npm run typecheck:site",
"clean": "rimraf ./node_modules/.vite & rimraf dist & pnpm run clean -r",
"commit": "git-cz"
},
"devDependencies": {
"@ecomfe/stylelint-config": "^1.1.2",
"@typescript-eslint/eslint-plugin": "5.10.1",
"@typescript-eslint/parser": "^5.19.0",
"@vitejs/plugin-vue": "2.1.0",
"@vue/test-utils": "2.0.0-rc.18",
"cosmic-icon": "0.0.11",
"cross-env": "7.0.3",
"csstype": "^2.6.20",
"dotenv": "~16.0.0",
"dts-for-context-bridge": "0.7.1",
"electron": "16.0.7",
"electron-builder": "23.0.3",
"electron-devtools-installer": "3.2.0",
"eslint": "8.7.0",
"eslint-plugin-vue": "8.3.0",
"fs-extra": "^10.0.1",
"git-cz": "~4.8.0",
"graphql": "~16.3.0",
"happy-dom": "2.30.1",
"nano-staged": "0.5.0",
"playwright": "1.18.0",
"rimraf": "^3.0.2",
"simple-git-hooks": "2.7.0",
"stylelint": "^14.8.2",
"typescript": "4.5.5",
"unplugin-icons": "^0.13.4",
"unplugin-vue-components": "^0.17.21",
"vite": "2.7.13",
"vite-dts": "^1.0.4",
"vite-plugin-import-maps": "^0.1.2",
"vitest": "0.2.3",
"vue-tsc": "0.32.1"
},
"dependencies": {
"@vueuse/gesture": "^2.0.0-beta.1",
"cosmic-ui-alpha": "^0.0.49",
"cosmic-vue": "0.0.68",
"electron-updater": "4.6.5",
"qrcode": "^1.5.0",
"reflect-metadata": "^0.1.13",
"resolve": "^1.22.0",
"rxjs": "^7.5.5",
"ts-mixer": "^6.0.1",
"uuid": "^8.3.2",
"vue": "3.2.29"
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged",
"pre-push": "npm run typecheck && npm run test"
},
"nano-staged": {
"*.{js,ts,vue}": "eslint --cache --fix"
},
"author": "cosmic-design <admin@cosmic.design>",
"config": {
"commitizen": {
"path": "git-cz"
}
}
}