-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
43 lines (43 loc) · 1.68 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
{
"name": "gfa",
"module": "src/gfa.ts",
"bin": {
"gfa": "./dist/gfa"
},
"type": "module",
"scripts": {
"clean": "rimraf ./build ./dist",
"dev": "tsx src/gfa.ts",
"test": "tsx src/test.ts",
"build": "run-s clean build:init build:bundle build:shebang build:executable",
"build:init": "node -e \"const fs = require('fs'); fs.mkdirSync('dist'); fs.mkdirSync('build');\"",
"build:bundle": "esbuild ./src/gfa.ts --bundle --platform=node --target=node20.9 --minify --tree-shaking=true --outdir=./build",
"build:shebang": "node -e \"const fs = require('fs'); fs.writeFileSync('./dist/gfa', fs.readFileSync('./src/prolog.txt', 'utf-8') + fs.readFileSync('./build/gfa.js', 'utf-8'));\"",
"build:executable": "node -e \"const fs = require('fs'); fs.chmodSync('./dist/gfa', 0o755);\"",
"deploy": "run-s lint build deploy:copy",
"deploy:copy": "node -e \"const fs = require('fs'); const os = require('os'); fs.writeFileSync(os.homedir() + '/bin/gfa', fs.readFileSync('./dist/gfa', 'utf-8'));\"",
"lint": "run-s lint:format lint:ts lint:tsc",
"lint:ts": "eslint .",
"lint:tsc": "tsc -p tsconfig.json",
"lint:format": "prettier ./src --check",
"lint:formatfix": "prettier ./src --write"
},
"devDependencies": {
"@eslint/js": "8.56.0",
"@types/node": "20.14.6",
"@typescript-eslint/eslint-plugin": "7.13.1",
"@typescript-eslint/parser": "7.13.1",
"esbuild": "0.21.5",
"eslint": "8.56.0",
"npm-run-all": "4.1.5",
"prettier": "3.3.2",
"rimraf": "5.0.7",
"tsx": "4.15.7",
"typescript": "5.4.5",
"typescript-eslint": "7.13.1"
},
"dependencies": {
"ansi-escapes": "7.0.0",
"ansi-styles": "6.2.1"
}
}