Skip to content

Commit d93dcfb

Browse files
authored
Merge pull request #57 from JeffWinder/main
Vue 3 Sample
2 parents b04c696 + 0ec61fd commit d93dcfb

20 files changed

+10475
-0
lines changed

ui-vue-3-starter/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist/

ui-vue-3-starter/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Vue Starter Plugin
2+
3+
This plugin is a Vue 3 version of https://github.com/AdobeDocs/uxp-photoshop-plugin-samples/tree/main/ui-vue-starter
4+
It uses the Composition API instead of the Options API
5+
6+
## Install dependencies
7+
8+
First ensure that your terminal is in the root of this project. Then:
9+
10+
For `yarn` users, install all dependencies using:
11+
12+
```
13+
yarn install
14+
```
15+
16+
For `npm` users, install all dependencies using:
17+
18+
```
19+
npm install
20+
```
21+
22+
## Build Process
23+
24+
There are two ways to build the plugin for use in Adobe Photoshop:
25+
26+
- `yarn watch` or `npm run watch` will build a development version of the plugin, and recompile everytime you make a change to the source files. The result is placed in `dist`.
27+
- `yarn build` or `npm run build` will build a production version of the plugin and place it in `dist`. It will not update every time you make a change to the source files.
28+
29+
> You **must** run either `watch` or `build` prior to trying to use within Photoshop!
30+
31+
## Launching in Photoshop
32+
33+
You can use the UXP Developer Tools to load the plugin into Photoshop.
34+
35+
If the plugin hasn't already been added to your workspace in the UXP Developer Tools, you can add it by clicking "Add Plugin..." and selecting `dist/manifest.json`. **DO NOT** select the `manifest.json` file inside the `plugin` folder.
36+
37+
Once added, you can load it into Photoshop by clicking the ••• button on the corresponding row, and clicking "Load". Switch to Photoshop and you should see the starter panel.
38+
39+
## What this plugin does
40+
41+
This plugin doesn't do much, but does illustrate how to create a panel in Photoshop with `entrypoints`, where you can see the count of clicks on the button alongwith a hello world message.

0 commit comments

Comments
 (0)