|
1 |
| -# Easy Deployment |
| 1 | +# Easy Deployment |
2 | 2 |
|
3 |
| -Deploy your frontend project quickly and easily. |
| 3 | +[](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment) |
| 4 | +[](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment) |
| 5 | +[](https://marketplace.visualstudio.com/items?itemName=liying.easy-deployment) |
4 | 6 |
|
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.** |
8 | 8 |
|
9 |
| -For example if there is an image subfolder under your extension project workspace: |
10 | 9 |
|
11 |
| -\!\[feature X\]\(images/feature-x.png\) |
| 10 | +## Features |
12 | 11 |
|
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. |
14 | 14 |
|
15 |
| -## Requirements |
| 15 | + |
16 | 16 |
|
17 |
| -If you have any requirements or dependencies, add a section describing those and how to install and configure them. |
18 | 17 |
|
19 | 18 | ## Extension Settings
|
20 | 19 |
|
21 |
| -Include if your extension adds any VS Code settings through the `contributes.configuration` extension point. |
22 |
| - |
23 |
| -For example: |
24 |
| - |
25 | 20 | This extension contributes the following settings:
|
26 | 21 |
|
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) |
0 commit comments