forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
94 lines (94 loc) · 2.74 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
{
"name": "@withfig/autocomplete",
"version": "1.28.1",
"description": "Fig Autocomplete Spec Linter",
"schemaVersion": "v7",
"browserslist": [
"safari >=11"
],
"scripts": {
"dev": "\"$npm_execpath\" run build && source scripts/dev.sh",
"test": "tsc --noEmit && echo 'All specs passed validation. You are ready to push!'",
"copy": "func() { mkdir -p ~/.fig/autocomplete/$(dirname ${1}.js); cp \"$(pwd)\"/specs/${1}.js ~/.fig/autocomplete/${1}.js; }; func",
"copy:all": "rsync -a --include '*/' --include '*.js' --exclude '*' $(pwd)/specs/ ~/.fig/autocomplete/",
"create-boilerplate": "./scripts/create-boilerplate.sh",
"create-example": "./scripts/create-example.sh",
"build": "ts-node-script scripts/compiler.ts",
"lint": "eslint '**/*.ts' && npx prettier --check '**/*.ts'",
"lint:fix": "eslint '**/*.ts' --fix && npx prettier --write '**/*.ts'",
"prepare": "husky install"
},
"fig": {
"dev": {
"description": "Watching and compile .ts files in ./dev",
"icon": "fig:https://template?badge=🛠",
"priority": 100
},
"create-boilerplate": {
"description": "Create a new completion spec"
},
"create-example": {
"description": "Create an example completion spec"
},
"test": {
"description": "Typecheck all .ts files in /dev"
},
"copy": {
"description": "Copy a CLI completion spec to ~/.fig/autocomplete"
},
"copy:all": {
"description": "Copy all files from /specs to ~/.fig/autocomplete"
},
"build": {
"description": "Compile all files in /dev"
},
"lint": {
"description": "Check for linting issues"
},
"lint:fix": {
"description": "Fix linting issues"
},
"prepare": {
"description": "Install husky"
}
},
"prettier": {
"trailingComma": "es5",
"printWidth": 80
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"pretty-quick --staged"
]
},
"files": [
"specs/**/*.js"
],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/inquirer": "^7.3.1",
"@types/node": "^14.14.33",
"@types/progress": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"chalk": "^4.1.0",
"chokidar": "^3.5.1",
"danger": "^10.6.4",
"esbuild": "^0.12.15",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-compat": "^3.13.0",
"eslint-plugin-fig-linter": "file:scripts/eslint-plugin-fig-linter",
"eslint-plugin-prettier": "^3.3.1",
"fast-glob": "^3.2.7",
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"prettier": "2.2.1",
"pretty-quick": "^3.1.0",
"progress": "^2.0.3",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
}
}