Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
added 'applyValuesTo' for packages and targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Apr 29, 2017
1 parent 1663a00 commit f69405d
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log (vs-deploy)

## 8.16.0 (April 29th, 2017; apply values to packages and targets)

* added `applyValuesTo` settings for [packages](https://github.com/mkloubert/vs-deploy/wiki#packages-) and [targets](https://github.com/mkloubert/vs-deploy/wiki#targets-), that define objects with lists of property names and their values that should be applied to the underlying setting object

## 8.15.0 (April 29th, 2017; execute commands on FTP server)

* added `beforeUpload`, `closing`, `connected` and `uploaded` for [ftp](https://github.com/mkloubert/vs-deploy/wiki/target_ftp) targets, which can execute commands on a server (s. [Execute commands on server](https://github.com/mkloubert/vs-deploy/wiki/target_ftp#execute-commands-on-server))
Expand Down
202 changes: 201 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vs-deploy",
"displayName": "Deploy",
"description": "Commands for deploying files of your workspace to a destination.",
"version": "8.15.1",
"version": "8.16.0",
"publisher": "mkloubert",
"engines": {
"vscode": "^1.6.0"
Expand Down Expand Up @@ -941,6 +941,16 @@
"type": "boolean",
"description": "Indicates if a 'fast' file check should be used for 'deploy on save' for this package or not.",
"default": false
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that package.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
}
}
}
Expand Down Expand Up @@ -1195,6 +1205,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -2248,6 +2268,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -3314,6 +3344,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -4347,6 +4387,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -5393,6 +5443,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -6461,6 +6521,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -7624,6 +7694,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -8692,6 +8772,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -9733,6 +9823,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -10807,6 +10907,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -11850,6 +11960,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -12885,6 +13005,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -13949,6 +14079,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -15088,6 +15228,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -16298,6 +16448,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -17330,6 +17490,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -18391,6 +18561,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -19422,6 +19602,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down Expand Up @@ -20467,6 +20657,16 @@
],
"default": 0
},
"applyValuesTo": {
"description": "A list of property names and their values that should be applied to that target.",
"type": "object",
"patternProperties": {
".*": {
"description": "The value (with optional placeholders) that should be applied to the property.",
"type": "string"
}
}
},
"deployed": {
"type": "array",
"items": {
Expand Down
16 changes: 14 additions & 2 deletions src/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@ export interface AfterDeployedWaitOperation extends AfterDeployedOperation, Depl
export interface AfterDeployedWebDeployOperation extends AfterDeployedOperation, DeployWebDeployOperation {
}

/**
* An object that can apply to (its) properties by using
* generated values by placeholders.
*/
export interface Applyable {
/**
* A list of property names and their values
* that should be applied to that object.
*/
applyValuesTo?: { [prop: string]: any };
}

/**
* Describes an event handler that is raised BEFORE a file starts to be deployed.
*
Expand Down Expand Up @@ -974,7 +986,7 @@ export enum DeployOperationKind {
/**
* A package.
*/
export interface DeployPackage extends ConditionalItem, Hideable, MachineItem, PlatformItem, Sortable {
export interface DeployPackage extends Applyable, ConditionalItem, Hideable, MachineItem, PlatformItem, Sortable {
/**
* Settings for a "package button".
*/
Expand Down Expand Up @@ -1335,7 +1347,7 @@ export interface DeploySqlOperation extends DeployOperation {
/**
* A target.
*/
export interface DeployTarget extends ConditionalItem, Hideable, MachineItem, PlatformItem, Sortable {
export interface DeployTarget extends Applyable, ConditionalItem, Hideable, MachineItem, PlatformItem, Sortable {
/**
* List of operations that should be invoked BEFORE
* target is being deployed.
Expand Down
Loading

0 comments on commit f69405d

Please sign in to comment.