-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
229 lines (229 loc) · 6.69 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
"name": "powerapps-portal-local-development",
"displayName": "PowerApps Portal Local Development",
"description": "Local source control of power apps portals code including web files like images or style sheets, web templates and content snippets.",
"version": "0.4.1",
"icon": "resources/icons/icon.png",
"homepage": "https://github.com/felixSchober/VSCode-PowerAppsPortal-Extension",
"bugs": "https://github.com/felixSchober/VSCode-PowerAppsPortal-Extension/issues",
"author": {
"name": "Felix Schober",
"email": "github@felix-schober.de"
},
"license": "MIT",
"preview": true,
"publisher": "FelixSchober",
"repository": {
"url": "https://github.com/felixSchober/VSCode-PowerAppsPortal-Extension",
"type": "git"
},
"engines": {
"vscode": "^1.69.0"
},
"categories": [
"SCM Providers",
"Other"
],
"galleryBanner": {
"color": "#742774",
"theme": "dark"
},
"keywords": [
"Power Apps Portals",
"Power Pages",
"PowerPages",
"Dataverse",
"Dynamics",
"PowerApps Portal",
"Liquid",
"Power Platform"
],
"qna": "marketplace",
"activationEvents": [
"onCommand:powerapps-portal-local-development.configureExtension",
"workspaceContains:.portal"
],
"main": "./dist/extension",
"contributes": {
"commands": [
{
"command": "powerapps-portal-local-development.source-control.commit",
"title": "PowerApps Portals: Commit local changes to Portal",
"icon": "$(cloud-upload)"
},
{
"command": "powerapps-portal-local-development.source-control.refresh",
"title": "PowerApps Portals: Refresh Portal data",
"icon": "$(cloud-download)"
},
{
"command": "powerapps-portal-local-development.source-control.discard",
"title": "PowerApps Portals: Discard local changes",
"icon": "$(discard)"
},
{
"command": "powerapps-portal-local-development.configureExtension",
"title": "PowerApps Portals: Configure"
}
],
"configuration": {
"type": "object",
"title": "PowerApps Portal Configuration",
"properties": {
"powerappsPortals.aadTenantId": {
"type": "string",
"default": "",
"description": "Id of the tenant for where the Azure AD app registration is registered in"
},
"powerappsPortals.dynamicsInstanceName": {
"type": "string",
"default": "",
"description": "the name of your instance. E.g. org7acas9gc if the url to your org is org7c98f08c.crm4.dynamics.com"
},
"powerappsPortals.dynamicsCrmRegion": {
"type": "string",
"enum": [
"crm",
"crm2",
"crm3",
"crm4",
"crm5",
"crm6",
"crm7",
"crm8",
"crm9",
"crm11"
],
"enumDescriptions": [
"North America",
"South America",
"Canada",
"EMEA",
"APAC",
"Australia",
"Japan",
"India",
"North America 2 (US Gov)",
"UK"
],
"default": "",
"description": "Portal Region"
},
"powerappsPortals.authenticationMethod": {
"type": "string",
"enum": [
"User Authentication",
"Application User"
],
"enumDescriptions": [
"(recommended)",
""
],
"default": "",
"description": "Authentication method for portal connections. 'User Authentication' uses the device code flow so you will directly log in with your user account. All actions will be under your user context. In contrast, 'Application user' uses a client credential authentication and an application user in Dynamics needs to be created."
},
"powerappsPortals.aadClientId": {
"type": "string",
"default": "",
"description": "Client Id of your AAD app registration e.g. 65f4ee4c-bbec-4059-b2ce-05e8e8acc679"
},
"powerappsPortals.useFoldersForFiles": {
"type": "boolean",
"default": false,
"description": "Specifies if the extension should use folders for web files instead of putting it all in one folder (default)"
},
"powerappsPortals.runPeriodicFetches": {
"type": "boolean",
"default": true,
"description": "If set to true the extension will periodically fetch data from Dynamics to keep everything up to date. (default true)"
},
"powerappsPortals.hideCommitWarning": {
"type": "boolean",
"default": false,
"description": "If true it will no longer show the warning when committing data to the portal."
},
"powerappsPortals.askLegacyWebFilesMigration": {
"type": "boolean",
"default": true,
"description": "If true this setting will make sure to ask the user if he wants to migrate his workspace to use the new folder mode instead of the flat file mode"
}
}
},
"menus": {
"scm/title": [
{
"command": "powerapps-portal-local-development.source-control.commit",
"group": "navigation",
"when": "scmProvider == powerappsPortal"
},
{
"command": "powerapps-portal-local-development.source-control.discard",
"group": "navigation",
"when": "scmProvider == powerappsPortal"
},
{
"command": "powerapps-portal-local-development.source-control.refresh",
"group": "navigation",
"when": "scmProvider == powerappsPortal"
}
]
}
},
"scripts": {
"build": "webpack --mode development",
"build-and-lint": "npm run build && npm run lint",
"build-debug": "npm run build debug",
"build-edge-watch": "webpack --env debug --env devtoolsBaseUri=http://localhost:3000/vscode_app.html",
"build-watch": "npm run build && npm run watch",
"lint": "eslint . --ext .ts --fix",
"vscode:prepublish": "webpack --mode production",
"package": "vsce package",
"deploy": "vsce publish -p"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/keytar": "4.4.2",
"@types/mime-types": "^2.1.1",
"@types/mocha": "^8.2.3",
"@types/node": "^14.18.21",
"@types/vscode": "^1.69.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"eslint": "^8.6.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^38.0.7",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-security": "^1.4.0",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"prettier": "^2.4.1",
"prettier-package-json": "^2.6.0",
"glob": "^7.2.3",
"mocha": "^8.4.0",
"ts-loader": "^8.4.0",
"typescript": "^4.7.4",
"vsce": "^1.103.1",
"vscode-test": "^1.6.1",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
},
"dependencies": {
"@azure/msal-common": "^4.5.1",
"@azure/msal-node": "^1.11.0",
"adal-node": "^0.2.3",
"dynamics-web-api": "^1.7.5",
"keytar": "^7.9.0",
"mime-types": "^2.1.35"
},
"lint-staged": {
"*.{ts}": [
"prettier --write",
"eslint --fix"
],
"{,**/}*.json": [
"prettier-package-json --tab-width 4 --write"
]
}
}