forked from jemmyw/vscode-rails-fast-nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
172 lines (172 loc) · 4.67 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"name": "rails-fast-nav",
"displayName": "Rails Fast Nav",
"description": "Ruby on Rails Navigation",
"version": "1.3.6",
"publisher": "jemmyw",
"repository": {
"type": "git",
"url": "https://github.com/jemmyw/vscode-rails-fast-nav.git"
},
"icon": "images/icon.png",
"author": {
"name": "Jeremy Wells"
},
"license": "MIT",
"homepage": "https://marketplace.visualstudio.com/items?itemName=jemmyw.rails-fast-nav",
"engines": {
"vscode": "^1.39.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:**/bin/rails",
"workspaceContains:**/script/rails"
],
"main": "./dist/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Rails Fast Navigation Configuration",
"properties": {
"rails.appDir": {
"type": "string",
"default": "app",
"description": "Absolute or relative (to first workspace root) path to Rails app directory"
},
"rails.viewFileExtension": {
"type": "string",
"default": "html.erb",
"description": "Default extension when creating a view"
},
"rails.grapeDir": {
"type": "string",
"default": "grape",
"description": "Absolute or relative path to Grape directory"
}
}
},
"commands": [
{
"command": "rails.fastNavigation",
"title": "Rails: Fast Navigation"
},
{
"command": "rails.switchToView",
"title": "Rails: Switch to View"
},
{
"command": "rails.switchToController",
"title": "Rails: Switch to Controller"
},
{
"command": "rails.switchToControllerTest",
"title": "Rails: Switch to Controller Test"
},
{
"command": "rails.switchToModel",
"title": "Rails: Switch to Model"
},
{
"command": "rails.switchToTest",
"title": "Rails: Switch to Test"
},
{
"command": "rails.switchToSpec",
"title": "Rails: Switch to Spec"
},
{
"command": "rails.switchToFixture",
"title": "Rails: Switch to Fixture"
},
{
"command": "rails.switchToModelTest",
"title": "Rails: Switch to Model Test"
},
{
"command": "rails.switchToGrapeApi",
"title": "Rails: Switch to Grape Api"
},
{
"command": "rails.createView",
"title": "Rails: Create View"
},
{
"command": "rails.createSpec",
"title": "Rails: Create Spec"
}
],
"keybindings": [
{
"command": "rails.fastNavigation",
"key": "alt+r",
"when": "editorTextFocus"
},
{
"command": "rails.switchToModel",
"key": "alt+m",
"when": "editorTextFocus"
},
{
"command": "rails.switchToController",
"key": "alt+c",
"when": "editorTextFocus"
},
{
"command": "rails.switchToControllerTest",
"key": "alt+a",
"when": "editorTextFocus"
},
{
"command": "rails.switchToView",
"key": "alt+v",
"when": "editorTextFocus"
},
{
"command": "rails.switchToTest",
"key": "alt+y",
"when": "editorTextFocus"
},
{
"command": "rails.switchToModelTest",
"key": "alt+a",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./",
"test-prepare": "npm run test-compile && npm run copyTestProject",
"test": "rimraf out; npm run test-prepare && extest setup-and-run -e test-resources/ext -o out/test/settings.json out/test/extension.test.js",
"test-quick": "npm run test-prepare && extest run-tests -e test-resources/ext -o out/test/settings.json out/test/extension.test.js",
"copyTestProject": "cp -r src/test/project/* out/test; cp src/test/settings.json out/test"
},
"devDependencies": {
"@types/chai": "^4.2.16",
"@types/fs-extra": "^8.0.1",
"@types/glob": "^7.1.1",
"@types/inflected": "^1.1.29",
"@types/mocha": "^5.2.7",
"@types/node": "^12.11.1",
"@types/vscode": "^1.39.0",
"chai": "^4.3.4",
"glob": "^7.1.4",
"mocha": "^6.2.1",
"rimraf": "^2.7.1",
"ts-loader": "^6.2.0",
"typescript": "^3.6.4",
"unexpected": "^12.0.0",
"vscode-extension-tester": "^4.0.2",
"vscode-test": "^1.2.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9"
},
"dependencies": {
"fs-extra": "^8.1.0",
"inflected": "^2.0.2"
}
}