Add sort pre-commit hook (#284)
This commit is contained in:
Родитель
8a7c3d03a2
Коммит
79d5d8fe69
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npx vscode-sort-package-json
|
|
@ -34,13 +34,14 @@
|
|||
"eslint-plugin-import": "^2.22.1",
|
||||
"glob": "^7.1.6",
|
||||
"gulp": "^4.0.2",
|
||||
"husky": "^7.0.2",
|
||||
"mocha": "^8.3.2",
|
||||
"mocha-junit-reporter": "^2.0.0",
|
||||
"mocha-multi-reporters": "^1.5.1",
|
||||
"ts-node": "^7.0.1",
|
||||
"typescript": "^4.3.5",
|
||||
"vsce": "^1.87.1",
|
||||
"vscode-azureextensiondev": "^0.10.0",
|
||||
"vscode-azureextensiondev": "^0.10.2",
|
||||
"vscode-test": "^1.5.2",
|
||||
"webpack": "^5.28.0",
|
||||
"webpack-cli": "^4.6.0"
|
||||
|
@ -5215,6 +5216,21 @@
|
|||
"node": ">=10.17.0"
|
||||
}
|
||||
},
|
||||
"node_modules/husky": {
|
||||
"version": "7.0.2",
|
||||
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz",
|
||||
"integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"husky": "lib/bin.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/typicode"
|
||||
}
|
||||
},
|
||||
"node_modules/ignore": {
|
||||
"version": "4.0.6",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
|
||||
|
@ -10235,11 +10251,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/vscode-azureextensiondev": {
|
||||
"version": "0.10.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-azureextensiondev/-/vscode-azureextensiondev-0.10.0.tgz",
|
||||
"integrity": "sha512-xlu1TZhTjnYtEWLnBhC4tqEafGwNcVi/J9Z1pzTtapDCDiTKTR5NS0FMmqJgKGaiaJG2Kidcv/rF6qSbid1KJA==",
|
||||
"version": "0.10.2",
|
||||
"resolved": "https://registry.npmjs.org/vscode-azureextensiondev/-/vscode-azureextensiondev-0.10.2.tgz",
|
||||
"integrity": "sha512-P+ozMOQnP2l06ZcR/TYBr/ORHpBvtcHFBC0ksxzhU40NvDcZ69v0DaD2UrLG59Tqu3bRL0uMe8Z3optJJB8Tcw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@azure/arm-subscriptions": "^2.0.0",
|
||||
"@azure/ms-rest-azure-env": "^2.0.0",
|
||||
|
@ -10251,6 +10266,9 @@
|
|||
"terser-webpack-plugin": "^5.0.0",
|
||||
"ts-loader": "^5.3.3",
|
||||
"webpack": "5.28.0"
|
||||
},
|
||||
"bin": {
|
||||
"vscode-sort-package-json": "scripts/sortPackageJson.mjs"
|
||||
}
|
||||
},
|
||||
"node_modules/vscode-azureextensiondev/node_modules/@types/estree": {
|
||||
|
@ -15457,6 +15475,12 @@
|
|||
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
|
||||
"dev": true
|
||||
},
|
||||
"husky": {
|
||||
"version": "7.0.2",
|
||||
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz",
|
||||
"integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==",
|
||||
"dev": true
|
||||
},
|
||||
"ignore": {
|
||||
"version": "4.0.6",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
|
||||
|
@ -19380,9 +19404,9 @@
|
|||
}
|
||||
},
|
||||
"vscode-azureextensiondev": {
|
||||
"version": "0.10.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-azureextensiondev/-/vscode-azureextensiondev-0.10.0.tgz",
|
||||
"integrity": "sha512-xlu1TZhTjnYtEWLnBhC4tqEafGwNcVi/J9Z1pzTtapDCDiTKTR5NS0FMmqJgKGaiaJG2Kidcv/rF6qSbid1KJA==",
|
||||
"version": "0.10.2",
|
||||
"resolved": "https://registry.npmjs.org/vscode-azureextensiondev/-/vscode-azureextensiondev-0.10.2.tgz",
|
||||
"integrity": "sha512-P+ozMOQnP2l06ZcR/TYBr/ORHpBvtcHFBC0ksxzhU40NvDcZ69v0DaD2UrLG59Tqu3bRL0uMe8Z3optJJB8Tcw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@azure/arm-subscriptions": "^2.0.0",
|
||||
|
|
103
package.json
103
package.json
|
@ -37,37 +37,31 @@
|
|||
"preview": true,
|
||||
"activationEvents": [
|
||||
"azureVirtualMachines.selectSubscriptions",
|
||||
"onCommand:azureVirtualMachines.refresh",
|
||||
"onCommand:azureVirtualMachines.loadMore",
|
||||
"onCommand:azureVirtualMachines.addSshKey",
|
||||
"onCommand:azureVirtualMachines.createVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.createVirtualMachineAdvanced",
|
||||
"onCommand:azureVirtualMachines.startVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.restartVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.stopVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.addSshKey",
|
||||
"onCommand:azureVirtualMachines.deleteVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.loadMore",
|
||||
"onCommand:azureVirtualMachines.openInPortal",
|
||||
"onCommand:azureVirtualMachines.viewProperties",
|
||||
"onCommand:azureVirtualMachines.refresh",
|
||||
"onCommand:azureVirtualMachines.reportIssue",
|
||||
"onCommand:azureVirtualMachines.restartVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.startVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.stopVirtualMachine",
|
||||
"onCommand:azureVirtualMachines.viewProperties",
|
||||
"onView:azVmTree"
|
||||
],
|
||||
"main": "./main.js",
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "azureVirtualMachines.selectSubscriptions",
|
||||
"title": "Select Subscriptions...",
|
||||
"icon": "$(filter)"
|
||||
"command": "azureVirtualMachines.addSshKey",
|
||||
"title": "%azureVirtualMachines.addSshKey%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.refresh",
|
||||
"title": "%azureVirtualMachines.refresh%",
|
||||
"category": "Azure Virtual Machines",
|
||||
"icon": "$(refresh)"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.loadMore",
|
||||
"title": "%azureVirtualMachines.loadMore%",
|
||||
"command": "azureVirtualMachines.copyIpAddress",
|
||||
"title": "%azureVirtualMachines.copyIpAddress%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
|
@ -81,55 +75,61 @@
|
|||
"title": "%azureVirtualMachines.createVirtualMachineAdvanced%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.startVirtualMachine",
|
||||
"title": "%azureVirtualMachines.startVirtualMachine%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.restartVirtualMachine",
|
||||
"title": "%azureVirtualMachines.restartVirtualMachine%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.stopVirtualMachine",
|
||||
"title": "%azureVirtualMachines.stopVirtualMachine%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.addSshKey",
|
||||
"title": "%azureVirtualMachines.addSshKey%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.deleteVirtualMachine",
|
||||
"title": "%azureVirtualMachines.deleteVirtualMachine%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.loadMore",
|
||||
"title": "%azureVirtualMachines.loadMore%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.openInPortal",
|
||||
"title": "%azureVirtualMachines.openInPortal%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.copyIpAddress",
|
||||
"title": "%azureVirtualMachines.copyIpAddress%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.viewProperties",
|
||||
"title": "%azureVirtualMachines.viewProperties%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.openInRemoteSsh",
|
||||
"title": "%azureVirtualMachines.openInRemoteSsh%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.refresh",
|
||||
"title": "%azureVirtualMachines.refresh%",
|
||||
"category": "Azure Virtual Machines",
|
||||
"icon": "$(refresh)"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.reportIssue",
|
||||
"title": "%azureVirtualMachines.reportIssue%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.restartVirtualMachine",
|
||||
"title": "%azureVirtualMachines.restartVirtualMachine%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.selectSubscriptions",
|
||||
"title": "Select Subscriptions...",
|
||||
"icon": "$(filter)"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.startVirtualMachine",
|
||||
"title": "%azureVirtualMachines.startVirtualMachine%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.stopVirtualMachine",
|
||||
"title": "%azureVirtualMachines.stopVirtualMachine%",
|
||||
"category": "Azure Virtual Machines"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.viewProperties",
|
||||
"title": "%azureVirtualMachines.viewProperties%",
|
||||
"category": "Azure Virtual Machines"
|
||||
}
|
||||
],
|
||||
"views": {
|
||||
|
@ -228,7 +228,7 @@
|
|||
"explorer/context": [],
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "azureVirtualMachines.selectSubscriptions",
|
||||
"command": "azureVirtualMachines.loadMore",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
|
@ -236,7 +236,7 @@
|
|||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "azureVirtualMachines.loadMore",
|
||||
"command": "azureVirtualMachines.selectSubscriptions",
|
||||
"when": "never"
|
||||
}
|
||||
],
|
||||
|
@ -288,13 +288,14 @@
|
|||
"eslint-plugin-import": "^2.22.1",
|
||||
"glob": "^7.1.6",
|
||||
"gulp": "^4.0.2",
|
||||
"husky": "^7.0.2",
|
||||
"mocha": "^8.3.2",
|
||||
"mocha-junit-reporter": "^2.0.0",
|
||||
"mocha-multi-reporters": "^1.5.1",
|
||||
"ts-node": "^7.0.1",
|
||||
"typescript": "^4.3.5",
|
||||
"vsce": "^1.87.1",
|
||||
"vscode-azureextensiondev": "^0.10.0",
|
||||
"vscode-azureextensiondev": "^0.10.2",
|
||||
"vscode-test": "^1.5.2",
|
||||
"webpack": "^5.28.0",
|
||||
"webpack-cli": "^4.6.0"
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
{
|
||||
"extension.description": "An Azure Virtual Machines extension for Visual Studio Code.",
|
||||
"azureVirtualMachines.refresh": "Refresh",
|
||||
"azureVirtualMachines.loadMore": "Load More",
|
||||
"azureVirtualMachines.addSshKey": "Add SSH Key...",
|
||||
"azureVirtualMachines.copyIpAddress": "Copy IP Address",
|
||||
"azureVirtualMachines.createVirtualMachine": "Create Virtual Machine...",
|
||||
"azureVirtualMachines.createVirtualMachineAdvanced": "Create Virtual Machine... (Advanced)",
|
||||
"azureVirtualMachines.openInPortal": "Open in Portal",
|
||||
"azureVirtualMachines.startVirtualMachine": "Start",
|
||||
"azureVirtualMachines.restartVirtualMachine": "Restart",
|
||||
"azureVirtualMachines.stopVirtualMachine": "Stop",
|
||||
"azureVirtualMachines.deleteVirtualMachine": "Delete...",
|
||||
"azureVirtualMachines.addSshKey": "Add SSH Key...",
|
||||
"azureVirtualMachines.enableOutputTimestamps": "Prepends each line displayed in the output channel with a timestamp.",
|
||||
"azureVirtualMachines.promptForPassphrase": "Prompts for a passphrase when creating a Linux Azure Virtual Machine.",
|
||||
"azureVirtualMachines.copyIpAddress": "Copy IP Address",
|
||||
"azureVirtualMachines.viewProperties": "View Properties",
|
||||
"azureVirtualMachines.loadMore": "Load More",
|
||||
"azureVirtualMachines.openInPortal": "Open in Portal",
|
||||
"azureVirtualMachines.openInRemoteSsh": "Connect to Host via Remote SSH",
|
||||
"azureVirtualMachines.reportIssue": "Report Issue..."
|
||||
"azureVirtualMachines.promptForPassphrase": "Prompts for a passphrase when creating a Linux Azure Virtual Machine.",
|
||||
"azureVirtualMachines.refresh": "Refresh",
|
||||
"azureVirtualMachines.reportIssue": "Report Issue...",
|
||||
"azureVirtualMachines.restartVirtualMachine": "Restart",
|
||||
"azureVirtualMachines.startVirtualMachine": "Start",
|
||||
"azureVirtualMachines.stopVirtualMachine": "Stop",
|
||||
"azureVirtualMachines.viewProperties": "View Properties",
|
||||
"extension.description": "An Azure Virtual Machines extension for Visual Studio Code."
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче