forked from wangtao0101/vscode-js-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
149 lines (149 loc) · 6.12 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"name": "vscode-js-import",
"displayName": "vscode-js-import",
"description": "Intelligent and fast import extension for js in vscode, support import position option and adding import to existing import statement.",
"version": "0.15.5",
"publisher": "wangtao0101",
"repository": {
"type": "git",
"url": "https://github.com/wangtao0101/vscode-js-import.git"
},
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.17.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*",
"onCommand:extension.shortcutImport"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "extension.shortcutImport",
"title": "Shortcut Import"
}
],
"keybindings": [
{
"command": "extension.shortcutImport",
"key": "ctrl+alt+h",
"mac": "cmd+alt+h",
"when": "editorFocus"
}
],
"configuration": {
"type": "object",
"title": "js import configuration",
"properties": {
"js-import.root": {
"type": "string",
"default": "/src",
"description": "the source dir, currently we only support single root",
"scope": "resource"
},
"js-import.alias": {
"type": "object",
"description": "module alias like webpack resolve.alias 或者 typescript compilerOptions.paths, not support nested alias path, e.g { util: 'src/util/' }",
"default": "",
"scope": "resource"
},
"js-import.filesToScan": {
"type": "string",
"default": "**/*.{jsx,js,tsx,ts}",
"description": "Glob for files to watch and scan, e.g ./src/** ./src/app/**/*.js. Defaults to **/*.{jsx,js,ts}",
"scope": "resource"
},
"js-import.excludeFilesToScan": {
"type": "string",
"default": "",
"description": "Glob for files to exclude from watch and scan, e.g **/.meteor/**. Defaults to nothing",
"scope": "resource"
},
"js-import.plainFileSuffix": {
"type": "string",
"default": "css,less,sass",
"description": "suffix of plainFiles, import statement is like 'import 'xxx.less';'. Defaults to css,less,sass",
"scope": "resource"
},
"js-import.plainFileSuffixWithDefaultMember": {
"type": "string",
"default": "json,bmp,gif,jpe,jpeg,png",
"description": "suffix of plainFiles which should be imported with default member, import statement is like 'import json form 'xxx.json';'. Defaults to json,bmp,gif,jpe,jpeg,png",
"scope": "resource"
},
"js-import.insertPosition": {
"type": "string",
"default": "last",
"description": "the insert position of new import statement, first means first of all imports, last means last of all imports, soon we will suport sort",
"scope": "resource"
},
"js-import.commaDangleImport": {
"type": "string",
"default": "never",
"description": "option for comma-dangle to generate import statement, like esline rule imports of comma-dangle, there are four options : never, always, always-multiline, only-multiline",
"scope": "resource"
},
"js-import.codeCompletion": {
"type": "boolean",
"default": "true",
"description": "whether to enable codeCompletion",
"scope": "resource"
},
"js-import.codeCompletionAction": {
"type": "boolean",
"default": "true",
"description": "whether to autofix import when you select completion item, you can set it false to avoid mistaken import, then we will only provide code completion and you can use shutcut or autofix to import identifier",
"scope": "resource"
},
"js-import.quote": {
"type": "string",
"default": "singlequote",
"description": "whether to use singlequote or use doublequote",
"scope": "resource"
},
"js-import.semicolon": {
"type": "boolean",
"default": "true",
"description": "whether to add semicolon after import statement",
"scope": "resource"
},
"js-import.maxLen": {
"type": "number",
"default": "100",
"description": "max-line length like eslint rule max-line, the -1 will disable the rule",
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "cross-env CODE_TESTS_WORKSPACE=test/testRoot node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.40",
"cross-env": "^5.0.0",
"mocha": "^2.3.3",
"typescript": "^2.0.3",
"vscode": "1.1.7"
},
"dependencies": {
"babylon": "^6.17.2",
"leven": "^2.1.0",
"open": "^0.0.5",
"parse-comment-es6": "^0.5.5",
"parse-import-es6": "^0.5.10",
"require-relative": "^0.8.7",
"throttleit": "^1.0.0"
}
}