-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpackage.json
86 lines (86 loc) · 2.73 KB
/
package.json
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
{
"name": "website",
"version": "1.0.0",
"description": "DITA-OT Website",
"homepage": "https://github.com/dita-ot/website",
"repository": {
"type": "git",
"url": "https://github.com/dita-ot/website.git"
},
"license": "Apache-2.0",
"scripts": {
"check": "npm run prettier-check && npm run stylelint",
"fix:style": "stylelint \"css/*.scss\" --fix",
"fmt": "npm run format",
"format": "npm run format:config && npm run format:docs && npm run format:html && npm run format:script && npm run format:style",
"format:config": "prettier --write \"**/*.{json,yaml,yml}\"",
"format:docs": "prettier --write \"**/*.md\"",
"format:html": "prettier --write \"**/*.html\"",
"format:script": "prettier --write \"**/*.{js,ts}\"",
"format:style": "prettier --write \"**/*.scss\"",
"install": "PARCEL_WORKERS=0 parcel build _js/plugins.js _js/main.js --dist-dir js --public-url /js",
"lint-staged": "lint-staged",
"prepare": "husky",
"prettier": "prettier --write \"**/*.{html,js,json,md,scss,ts,yaml,yml}\"",
"prettier-check": "prettier --check \"**/*.{html,js,json,md,scss,ts,yaml,yml}\"",
"stylelint": "stylelint \"css/*.scss\"",
"test": "jest && npm run test:script && npm run stylelint",
"test:script": "npx eslint --ignore-path .prettierignore \"**/*.{js,ts}\""
},
"lint-staged": {
"*.{html,js,json,md,scss,yaml,yml}": [
"prettier --write"
],
"*.{css,scss}": [
"stylelint"
]
},
"stylelint": {
"extends": [
"stylelint-config-twbs-bootstrap"
],
"ignoreFiles": [
"css/bootstrap/**/*.scss",
"css/main.scss",
"js/*.css"
],
"rules": {
"no-descending-specificity": null,
"no-irregular-whitespace": null,
"selector-class-pattern": null,
"selector-max-id": 1,
"selector-max-type": 3,
"selector-no-qualifying-type": null,
"@stylistic/number-leading-zero": "always"
}
},
"dependencies": {
"jquery": "^3.7.1",
"urijs": "^1.19.11",
"whatwg-fetch": "^3.6.20"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@types/jest": "^27.4.1",
"babel-plugin-prismjs": "^2.1.0",
"babel-preset-es2015": "^6.3.13",
"es6-promise": "^4.2.8",
"eslint": "8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "5.2.1",
"husky": "^9.1.7",
"jest": "^27.5.1",
"lint-staged": "15.2.10",
"object.values": "^1.2.0",
"parcel": "^2.12.0",
"prettier": "3.4.2",
"prismjs": "^1.29.0",
"process": "^0.11.10",
"stylelint": "^16.9.0",
"stylelint-config-twbs-bootstrap": "^15.0.0",
"ts-jest": "^27.1.3",
"typescript": "^4.6.2"
}
}