forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
97 lines (97 loc) · 2.79 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
{
"name": "@withfig/autocomplete",
"version": "2.64.1",
"description": "Fig Autocomplete Spec Linter",
"schemaVersion": "v7",
"browserslist": [
"safari >=11"
],
"scripts": {
"dev": "npx @withfig/autocomplete-tools dev",
"create-spec": "npx @withfig/autocomplete-tools create-spec",
"build": "npx @withfig/autocomplete-tools compile; npx ts-node generate-index",
"lint": "eslint '**/*.ts' && npx prettier --check '**/*.ts'",
"lint:fix": "eslint '**/*.ts' --fix && npx prettier --write '**/*.ts'",
"test": "tsc --noEmit && echo 'All specs passed validation. You are ready to push!'",
"copy": "func() { mkdir -p ~/.fig/autocomplete/$(dirname ${1}.js); cp \"$(pwd)\"/build/${1}.js ~/.fig/autocomplete/${1}.js; }; func",
"copy:all": "rsync -a --include '*/' --include '*.js' --exclude '*' $(pwd)/build/ ~/.fig/autocomplete/",
"prepare": "husky install"
},
"fig": {
"dev": {
"description": "Watching and compile .ts files in ./src",
"icon": "fig://template?badge=🛠",
"priority": 100
},
"create-spec": {
"description": "Create a new completion spec"
},
"build": {
"description": "Compile all files in /src"
},
"lint": {
"description": "Check for linting issues"
},
"lint:fix": {
"description": "Fix linting issues"
},
"test": {
"description": "Typecheck all .ts files in /src"
},
"copy": {
"description": "Copy a CLI completion spec to ~/.fig/autocomplete"
},
"copy:all": {
"description": "Copy all files from /build to ~/.fig/autocomplete"
},
"prepare": {
"description": "Install husky"
}
},
"prettier": {
"trailingComma": "es5",
"printWidth": 80
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"pretty-quick --staged"
]
},
"files": [
"build/**/*.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",
"@withfig/autocomplete-tools": "^2.0.1",
"@withfig/autocomplete-types": "^1.5.0",
"@withfig/eslint-plugin-fig-linter": "^1.0.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-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"
},
"dependencies": {
"@types/glob": "^7.2.0",
"fs": "^0.0.1-security",
"glob": "^7.2.0"
}
}