-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.ts
More file actions
80 lines (72 loc) · 2.09 KB
/
package.ts
File metadata and controls
80 lines (72 loc) · 2.09 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
import { BunPm, definePackage } from '@opk/ts-pkg'
function fixPathScript(search: string, replace: string): string {
return `replace-in-files --string='${search}' --replacement='${replace}' './**/*.{js,ts,vue}' '!./package.*'`
}
export default definePackage({
pm: BunPm,
name: '@a35hie/nuxt-site',
description: 'My personal website.',
author: {
name: 'ash',
url: 'https://a35.dev/',
},
version: '6.6.2',
license: 'Apache-2.0',
private: false,
type: 'module',
repository: {
type: 'git',
url: 'https://github.com/main35/NuxtSite',
},
scripts: {
// code runs
dev: 'nuxi dev --host 0.0.0.0 --port 5173',
preview: 'bun run build && nuxt preview --port 4173',
build: 'nuxt build',
ci: 'bun install && bun run build',
// code style
prettier: 'oxfmt --write .',
fixPaths: [
fixPathScript('@/data/', '$/'),
fixPathScript('@/types/', ':/'),
fixPathScript('@/components/', '+/'),
fixPathScript('@/utils/', '&/'),
].join(' && '),
lint: 'eslint . --fix',
format: 'bun run prettier && bun run fixPaths && bun run lint',
fastFormat: 'bun run prettier && bun run lint',
// code prep
verifyTranslations: 'bun run utils/verifyTranslations.ts',
generate: 'nuxt generate',
postinstall: 'nuxt prepare',
},
dependencies: {
'@iconify/vue': '^5.0.0',
'@nuxtjs/i18n': '^10.2.3',
'@opk/ts-pkg': '^0.6.1',
cobe: '^0.6.5',
'floating-vue': '^5.2.2',
html2canvas: '^1.4.1',
marked: '^17.0.3',
'postcss-load-config': '^6.0.1',
'posthog-js': '^1.358.0',
vue: '^3.5.29',
'vue-progressive-blur': '^1.0.2',
'vue-router': '^5.0.3',
},
devDependencies: {
'@types/node': '^24.11.0',
'@typescript-eslint/parser': '^8.56.1',
'@vite-pwa/nuxt': '^1.1.1',
eslint: '^10.0.2',
'eslint-plugin-import': '^2.32.0',
'eslint-plugin-simple-import-sort': '^12.1.1',
nuxt: '^4.3.1',
oxfmt: '^0.42.0',
'postcss-import': '^16.1.1',
'replace-in-files-cli': '^4.0.0',
sass: '^1.97.3',
'vue-eslint-parser': '^10.4.0',
},
})