forked from liby/hexo-util-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 2.78 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "@sukka/hexo-util-rs",
"version": "0.0.12",
"description": "Utilities for Hexo using rust rewrite.",
"main": "index.js",
"repository": "https://github.com/liby/hexo-util-rs.git",
"license": "MIT",
"keywords": [
"napi-rs",
"NAPI",
"N-API",
"Rust",
"node-addon",
"node-addon-api",
"hexo",
"util",
"utilities"
],
"files": [
"index.d.ts",
"index.js",
"utils.js",
"common/cache.js"
],
"napi": {
"name": "hexo-util",
"triples": {
"defaults": true,
"additional": [
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"i686-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"x86_64-unknown-freebsd",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-linux-androideabi"
]
}
},
"engines": {
"node": ">= 10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "node -r @swc-node/register benchmark/bench.ts",
"build": "napi build --platform --release --js utils.js --pipe \"prettier -w\"",
"build:debug": "napi build --platform --js utils.js --pipe \"prettier -w\"",
"format": "run-p format:prettier format:rs",
"format:prettier": "prettier . -w",
"format:rs": "cargo fmt",
"lint": "eslint . -c ./.eslintrc.yml",
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",
"version": "napi version"
},
"devDependencies": {
"@napi-rs/cli": "^2.9.0",
"@swc-node/register": "^1.5.1",
"@types/hexo-util": "^0.6.4",
"@types/node": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"ava": "^4.3.0",
"benny": "^3.7.1",
"chalk": "^5.0.1",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"hexo-util": "^2.6.1",
"husky": "^8.0.1",
"lint-staged": "^13.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"string-strip-html": "8",
"striptags": "^3.2.0",
"typescript": "^4.7.3"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
"eslint -c .eslintrc.yml --fix"
],
"*.@(js|ts|tsx|yml|yaml|md|json)": [
"prettier --write"
]
},
"ava": {
"require": [
"@swc-node/register"
],
"extensions": [
"ts"
],
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
},
"workerThreads": false
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"packageManager": "yarn@3.2.2"
}