forked from roguedex-dev/roguedex
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
79 lines (79 loc) · 3.2 KB
/
Copy pathpackage.json
File metadata and controls
79 lines (79 loc) · 3.2 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
{
"name": "template",
"version": "1.0.0",
"description": "template for a project with a git hook for automated code formatting on git commit",
"main": "",
"type": "module",
"config": {
"code_paths": "./src/**/*.{js,jsx,json,ts}",
"style_paths": "./src/**/*.{css,less,scss}",
"html_paths": "./src/**/*.{html,htm}",
"all_paths": "./src/**/*"
},
"scripts": {
"prepare": "husky",
"clean": "rimraf --glob dist/*",
"build": "npm run clean && webpack",
"build-test": "npm run clean && webpack --env development",
"package": "npm run build",
"jsdoc-gen": "jsdoc -r ./src/ -d ./jsdoc-out",
"check-lint:code": "npx eslint %npm_package_config_code_paths% --config eslint.config.mjs",
"check-format:code": "npx prettier %npm_package_config_code_paths% --config .prettierrc --check",
"check-lint:style": "npx stylelint %npm_package_config_style_paths% --config .stylelint.config.mjs",
"check-format:style": "npx prettier %npm_package_config_style_paths% --config .prettierrc --check",
"check-format:html": "npx prettier %npm_package_config_html_paths% --config .prettierrc --check",
"fix-lint:code": "npx eslint %npm_package_config_code_paths% --config eslint.config.mjs --cache --fix",
"fix-lint:style": "npx stylelint %npm_package_config_style_paths% --config .stylelint.config.mjs --cache --fix",
"format:code": "npx prettier %npm_package_config_code_paths% --config .prettierrc --write --ignore-unknown",
"format:style": "npx prettier %npm_package_config_style_paths% --config .prettierrc --write --ignore-unknown",
"format:html": "npx prettier %npm_package_config_html_paths% --config .prettierrc --write --ignore-unknown",
"fix-lint:all": "npm run lint:code && npm run lint:style",
"fix:all": "npm run format:code && npm run format:style && npm run format:html",
"prettier-watch": "npx onchange %npm_package_config_all_paths% -- prettier --config .prettierrc --check --ignore-unknown {{changed}}",
"stylelint-watch": "npx onchange %npm_package_config_all_paths% -- npm run check-lint:style {{changed}}",
"test": "echo Pre-commit hook test (\".husky/pre-commit\"); edit me to enable \"lint-staged\""
},
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@eslint/compat": "^1.0.1",
"babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"husky": "^9.0.11",
"jsdoc": "^4.0.3",
"onchange": "^7.1.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.7",
"stylelint": "^16.5.0",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"zip-webpack-plugin": "^4.0.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./src/**/*.{js,jsx,json,ts}": [
"eslint --config eslint.config.mjs --quiet --cache --fix",
"prettier --config .prettierrc --write --ignore-unknown",
"git add"
],
"./src/**/*.{css,less,scss}": [
"stylelint --config .stylelint.config.mjs --cache --fix",
"prettier --config .prettierrc --write --ignore-unknown",
"git add"
],
"./src/**/*.{html,htm}": [
"prettier --config .prettierrc --write --ignore-unknown",
"git add"
]
}
}