Skip to content

Commit 37873c1

Browse files
committed
update README
1 parent 038af45 commit 37873c1

5 files changed

+71
-13
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22

33

4-
## [0.0.1]
4+
## 0.0.2 (2020-09-22)
5+
6+
- After deployment, delete the local packaging file.
7+
- Update the README file.
8+
9+
## 0.0.1 (2020-09-21)
510

611
- Initial release

README.md

+56-4
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@
99

1010
## Features
1111

12-
- Select "Build & deploy" to build your project and deploy it to a remote server.
13-
- Selecting "Deploy only" will only execute the deployment process.
12+
- Select "Build & Deploy" to build your project and deploy it to a remote server.
13+
- Selecting "Deploy Only" will only execute the deployment process.
1414

15-
![Extension menus](https://github.com/liying2008/easy-deployment/blob/master/pics/extension_commands.png)
15+
![Extension menus](https://raw.githubusercontent.com/liying2008/easy-deployment/master/pics/extension_commands.png)
1616

17+
Commands in command palette:
18+
19+
![Command palette](https://raw.githubusercontent.com/liying2008/easy-deployment/master/pics/command_palette.png)
1720

1821
## Extension Settings
1922

2023
This extension contributes the following settings:
2124

2225
```json
26+
{
2327
"easyDeployment.config": {
2428
"configurations": [
2529
{
@@ -46,18 +50,66 @@ This extension contributes the following settings:
4650
}
4751
]
4852
}
53+
}
4954
```
5055

56+
**Details for each configuration item are as follows:**
57+
58+
* `local` configuration (Configuration of local project):
59+
60+
| Key | Defaults | Description |
61+
| ---- | ---- | ---- |
62+
| `projectPath` | . | Project root path (relative path) |
63+
| `buildCmd` | yarn build | Build command for local project |
64+
| `outputDir` | dist | Compiled product output path (relative path) |
65+
66+
* `remote` configuration (Configuration of remote server):
67+
68+
| Key | Defaults | Description |
69+
| ---- | ---- | ---- |
70+
| `deploymentPath` | | Remote deployment path (absolute path) |
71+
| `backupOriginalFiles` | false | Do you need to back up the original files? |
72+
| `backupTo` | ~/backup | Backup path (absolute path) of the original files |
73+
| `deleteOriginalFiles` | false | Do you need to delete the original files? |
74+
| `postCmd` | | Command executed after deployment |
75+
76+
* `ssh` configuration (Configuration of ssh connection):
77+
78+
| Key | Defaults | Description |
79+
| ---- | ---- | ---- |
80+
| `host` | | Hostname or IP address of the server |
81+
| `port` | 22 | Port number of the server |
82+
| `username` | | Username for authentication |
83+
| `password` | | Password for password-based user authentication |
84+
| `privateKey` | | Private key (absolute path) for either key-based or hostbased user authentication (OpenSSH format) |
85+
86+
**Note:**
87+
5188
* Please set it according to your actual needs.
5289
* You can choose between `password` and `privateKey` in the ssh configuration.
90+
* If you use `privateKey`, remember to put the local ssh public key into the server's `authorized_keys` file.
91+
* The remote server needs to be a **Linux** machine.
5392
* There can be multiple configurations in the outer configurations, and the `name` attribute cannot be repeated.
5493

5594

5695
## Quick Start
5796

5897
- Install [Easy Deployment](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment).
5998
- Configure `easyDeployment.config` in `settings.json` in the workspace.
60-
- Right click in Explorer and select `Build & deploy` or `Deploy only`.
99+
- Right click in Explorer and select `Build & Deploy` or `Deploy Only`.
100+
101+
102+
## Thanks
103+
104+
- [archiverjs/node-archiver](https://github.com/archiverjs/node-archiver)
105+
- [steelbrain/node-ssh](https://github.com/steelbrain/node-ssh)
106+
107+
108+
## Source Code
109+
110+
[https://github.com/liying2008/easy-deployment](https://github.com/liying2008/easy-deployment)
111+
112+
Binary package can be obtained from [this link.](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment)
61113

62114

63115
## License

package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"deploy",
99
"publish"
1010
],
11-
"version": "0.0.1",
11+
"version": "0.0.2",
1212
"publisher": "LiYing",
1313
"icon": "images/icon.png",
1414
"repository": {
@@ -34,12 +34,12 @@
3434
{
3535
"category": "Easy Deployment",
3636
"command": "easy-deployment.buildAndDeploy",
37-
"title": "Build & deploy"
37+
"title": "Build & Deploy"
3838
},
3939
{
4040
"category": "Easy Deployment",
4141
"command": "easy-deployment.deployOnly",
42-
"title": "Deploy only"
42+
"title": "Deploy Only"
4343
}
4444
],
4545
"menus": {
@@ -59,6 +59,7 @@
5959
"properties": {
6060
"easyDeployment.config": {
6161
"type": "object",
62+
"description": "Build and deploy related configurations for `Easy Deployment`",
6263
"properties": {
6364
"configurations": {
6465
"type": "array",
@@ -78,12 +79,12 @@
7879
"projectPath": {
7980
"type": "string",
8081
"default": ".",
81-
"description": "Project root path."
82+
"description": "Project root path (relative path)."
8283
},
8384
"outputDir": {
8485
"type": "string",
8586
"default": "dist",
86-
"description": "Compiled product output path."
87+
"description": "Compiled product output path (relative path)."
8788
},
8889
"buildCmd": {
8990
"type": "string",
@@ -98,7 +99,7 @@
9899
"properties": {
99100
"deploymentPath": {
100101
"type": "string",
101-
"description": "Remote deployment path."
102+
"description": "Remote deployment path (absolute path)."
102103
},
103104
"backupOriginalFiles": {
104105
"type": "boolean",
@@ -108,7 +109,7 @@
108109
"backupTo": {
109110
"type": "string",
110111
"default": "~/backup",
111-
"description": "Backup path of the original files."
112+
"description": "Backup path (absolute path) of the original files."
112113
},
113114
"deleteOriginalFiles": {
114115
"type": "boolean",
@@ -144,7 +145,7 @@
144145
},
145146
"privateKey": {
146147
"type": "string",
147-
"description": "Private key for either key-based or hostbased user authentication (OpenSSH format)."
148+
"description": "Private key (absolute path) for either key-based or hostbased user authentication (OpenSSH format)."
148149
}
149150
}
150151
}

pics/command_palette.png

6.69 KB
Loading

pics/extension_commands.png

20.2 KB
Loading

0 commit comments

Comments
 (0)