Skip to content

Commit 728ec5d

Browse files
committed
Update README
1 parent 5e519f0 commit 728ec5d

6 files changed

+58
-102
lines changed

.vscodeignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ node_modules
1616
out/
1717
src/
1818
tsconfig.json
19-
webpack.config.js
19+
webpack.config.js
20+
pics/

CHANGELOG.md

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

3-
All notable changes to the "easy-deployment" extension will be documented in this file.
43

5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
4+
## [0.0.1]
65

7-
## [Unreleased]
8-
9-
- Initial release
6+
- Initial release

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 独毒火
3+
Copyright (c) 2020 LiYing
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+53-53
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
# Easy Deployment
1+
# Easy Deployment
22

3-
Deploy your frontend project quickly and easily.
3+
[![Version](https://vsmarketplacebadge.apphb.com/version-short/liying.easy-deployment.svg)](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment)
4+
[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/liying.easy-deployment.svg)](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment)
5+
[![Rating](https://vsmarketplacebadge.apphb.com/rating-short/liying.easy-deployment.svg)](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment)
46

5-
## Features
6-
7-
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
7+
**Deploy your frontend project quickly and easily.**
88

9-
For example if there is an image subfolder under your extension project workspace:
109

11-
\!\[feature X\]\(images/feature-x.png\)
10+
## Features
1211

13-
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
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-
## Requirements
15+
![Extension menus](https://github.com/liying2008/easy-deployment/blob/master/pics/extension_commands.png)
1616

17-
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
1817

1918
## Extension Settings
2019

21-
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22-
23-
For example:
24-
2520
This extension contributes the following settings:
2621

27-
* `myExtension.enable`: enable/disable this extension
28-
* `myExtension.thing`: set to `blah` to do something
29-
30-
## Known Issues
31-
32-
Calling out known issues can help limit users opening duplicate issues against your extension.
33-
34-
## Release Notes
35-
36-
Users appreciate release notes as you update your extension.
37-
38-
### 1.0.0
39-
40-
Initial release of ...
41-
42-
### 1.0.1
43-
44-
Fixed issue #.
45-
46-
### 1.1.0
47-
48-
Added features X, Y, and Z.
49-
50-
-----------------------------------------------------------------------------------------------------------
51-
52-
## Working with Markdown
53-
54-
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55-
56-
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
57-
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
58-
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
59-
60-
### For more information
61-
62-
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63-
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
64-
65-
**Enjoy!**
22+
```json
23+
"easyDeployment.config": {
24+
"configurations": [
25+
{
26+
"name": "dev",
27+
"local": {
28+
"projectPath": ".",
29+
"buildCmd": "yarn build",
30+
"outputDir": "dist/spa",
31+
},
32+
"remote": {
33+
"deploymentPath": "~/nginx/html",
34+
"backupOriginalFiles": true,
35+
"backupTo": "~/backup",
36+
"deleteOriginalFiles": true,
37+
"postCmd": "ls -alF"
38+
},
39+
"ssh": {
40+
"host": "192.168.1.200",
41+
"port": 22,
42+
"username": "pi",
43+
"password": "",
44+
"privateKey": "~/.ssh/id_rsa"
45+
}
46+
}
47+
]
48+
}
49+
```
50+
51+
* Please set it according to your actual needs.
52+
* You can choose between `password` and `privateKey` in the ssh configuration.
53+
* There can be multiple configurations in the outer configurations, and the `name` attribute cannot be repeated.
54+
55+
56+
## Quick Start
57+
58+
- Install [Easy Deployment](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment).
59+
- Configure `easyDeployment.config` in `settings.json` in the workspace.
60+
- Right click in Explorer and select `Build & deploy` or `Deploy only`.
61+
62+
63+
## License
64+
65+
MIT © [Li Ying](https://github.com/liying2008)

pics/extension_commands.png

15.5 KB
Loading

vsc-extension-quickstart.md

-42
This file was deleted.

0 commit comments

Comments
 (0)