-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
53 lines (53 loc) · 1.88 KB
/
package.json
File metadata and controls
53 lines (53 loc) · 1.88 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
{
"name": "jacksoncode-github-io",
"version": "2.1.0",
"description": "CodeClub - 程序员技术博客与学习资源导航",
"author": "Jackson",
"license": "MIT",
"homepage": "https://jacksoncode.github.io",
"repository": {
"type": "git",
"url": "https://github.com/jacksoncode/jacksoncode.github.io.git"
},
"scripts": {
"start": "npx live-server --port=3000 --open=/index.html",
"serve": "npx http-server -p 3000 -c-1",
"optimize:images": "echo '请安装: npm install -g imagemin-cli optipng jpegoptim'",
"optimize:css": "npx csso css/*.css -o dist/css/",
"audit": "npm audit && npm audit fix",
"clean": "rm -rf node_modules/.cache .sass-cache dist/",
"build": "echo '静态网站,无需构建'",
"deploy": "git add . && git commit -m 'deploy' && git push",
"lighthouse": "npx lighthouse https://jacksoncode.github.io --view --preset=desktop",
"sitemap": "npx sitemap-generator https://jacksoncode.github.io --output-path=./sitemap-auto.xml",
"test": "node tests/security.test.js",
"test:coverage": "echo '测试覆盖率功能待实现'",
"lint": "npx eslint js/ --ext .js",
"lint:fix": "npx eslint js/ --ext .js --fix",
"format": "npx prettier --write \"**/*.{js,css,html,json,md}\"",
"format:check": "npx prettier --check \"**/*.{js,css,html,json,md}\"",
"webp:convert": "./optimize-images-webp.sh",
"validate": "npm run lint && npm run format:check && npm run test"
},
"devDependencies": {
"bootstrap": "^5.3.3",
"@fortawesome/fontawesome-free": "^6.5.1",
"csso-cli": "^4.0.2",
"http-server": "^14.1.1",
"lighthouse": "^11.0.0",
"live-server": "^1.2.2",
"eslint": "^8.50.0",
"prettier": "^3.0.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"keywords": [
"程序员导航",
"技术博客",
"学习资源",
"AI工具",
"编程"
]
}