-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
88 lines (88 loc) · 2.57 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
87
88
{
"name": "sunlight-x",
"version": "0.0.4",
"description": "Sunlight highlighter refactored for Node.js",
"main": "babel-out/sunlight.js",
"keywords": [
"highlight",
"syntax"
],
"author": "WC Leung <lwchkg@gmail.com>",
"contributors": [
"WC Leung <lwchkg@gmail.com>"
],
"homepage": "https://github.com/lwchkg/sunlight-x/",
"bugs": {
"url": "https://github.com/lwchkg/sunlight-x/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/lwchkg/sunlight-x.git"
},
"license": "Apache-2.0",
"files": [
"babel-out/",
"compiled-assets/"
],
"engines": {
"node": ">=12"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.0.0",
"@babel/preset-typescript": "^7.21.5",
"@tsconfig/node12": "^1.0.11",
"@types/jest": "^29.5.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.2",
"babel-jest": "^29.5.0",
"codacy-coverage": "^3.4.0",
"cross-env": "^7.0.3",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "29.5.0",
"less": "^4.1.3",
"minicat": "^1.0.0",
"prettier": "^2.8.8",
"utf8": "^3.0.0"
},
"dependencies": {
"jsdom": "^22.1.0"
},
"jest": {
"coverageReporters": [
"lcov"
],
"testMatch": [
"**/test/**/*.ts?(x)"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/babel-out/",
"/fixtures/",
"/code-snippets/"
]
},
"scripts": {
"babel": "babel",
"codacy-coverage-upload": "minicat ./coverage/lcov.info | codacy-coverage",
"compile": "yarn run compile-js && yarn run compile-css",
"compile-css": "lessc style/sunlight.less compiled-assets/sunlight.css && lessc style/sunlight-defaultfont.less compiled-assets/sunlight-defaultfont.css",
"compile-debug": "yarn run compile-js-debug && yarn run compile-css",
"compile-js": "cross-env NODE_ENV=production babel -d babel-out/ src/",
"compile-js-debug": "babel -d babel-out/ src/",
"eslint": "eslint",
"eslint-check": "eslint --print-config .eslintrc | eslint-config-prettier-check",
"eslint-run": "eslint .",
"jest": "jest",
"jest-coverage": "jest --coverage --maxWorkers=4",
"lessc": "lessc",
"lint": "yarn run eslint-run",
"prepare": "yarn run compile",
"prettier": "prettier \"./**/*.js\" --ignore-path .eslintignore --write",
"test": "yarn run compile-css && yarn run jest-coverage",
"test-with-lint": "yarn run compile-css && yarn run lint && yarn run jest-coverage"
}
}