pressship 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/wordpress-plugin-publish/SKILL.md +153 -0
- package/README.md +285 -280
- package/assets/logo-new.png +0 -0
- package/assets/pressship-dark.png +0 -0
- package/assets/pressship-square-dark.png +0 -0
- package/assets/pressship-square.png +0 -0
- package/assets/pressship-symbol-dark.png +0 -0
- package/assets/pressship-symbol.png +0 -0
- package/assets/pressship-wordmark-dark.png +0 -0
- package/assets/pressship-wordmark.png +0 -0
- package/assets/pressship.png +0 -0
- package/dist/cli.js +40 -2
- package/dist/cli.js.map +1 -1
- package/dist/package/ignore.js +2 -0
- package/dist/package/ignore.js.map +1 -1
- package/dist/plugin/demo.d.ts +44 -0
- package/dist/plugin/demo.js +207 -0
- package/dist/plugin/demo.js.map +1 -0
- package/dist/plugin/info.d.ts +84 -0
- package/dist/plugin/info.js +209 -0
- package/dist/plugin/info.js.map +1 -0
- package/dist/plugin/list.d.ts +24 -0
- package/dist/plugin/list.js +174 -0
- package/dist/plugin/list.js.map +1 -0
- package/dist/svn/credentials.d.ts +9 -0
- package/dist/svn/credentials.js +94 -0
- package/dist/svn/credentials.js.map +1 -0
- package/dist/svn/get.d.ts +45 -0
- package/dist/svn/get.js +139 -0
- package/dist/svn/get.js.map +1 -0
- package/dist/svn/release.d.ts +1 -0
- package/dist/svn/release.js +90 -13
- package/dist/svn/release.js.map +1 -1
- package/dist/svn/subversion.d.ts +18 -0
- package/dist/svn/subversion.js +171 -0
- package/dist/svn/subversion.js.map +1 -0
- package/dist/utils/paths.d.ts +1 -0
- package/dist/utils/paths.js +3 -0
- package/dist/utils/paths.js.map +1 -1
- package/dist/wordpress-org/publish.d.ts +1 -0
- package/dist/wordpress-org/publish.js +4 -2
- package/dist/wordpress-org/publish.js.map +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wordpress-plugin-publish
|
|
3
|
+
description: Use this skill when publishing, submitting, reuploading, packaging, checking, or releasing WordPress.org plugins with Pressship. It covers safe Pressship workflows for local plugin directories, pending WordPress.org submissions, approved plugin releases, Plugin Check review, package exclusions, WordPress Playground demos, and authentication.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# WordPress Plugin Publish
|
|
7
|
+
|
|
8
|
+
Use Pressship for WordPress.org plugin submission and release work. Prefer `npx pressship` unless the user explicitly wants the local checkout version.
|
|
9
|
+
|
|
10
|
+
## Safety Rules
|
|
11
|
+
|
|
12
|
+
- Never publish, submit, reupload, or release without first running a dry run, unless the user explicitly says to skip it.
|
|
13
|
+
- Do not push git commits or tags unless the user explicitly asks.
|
|
14
|
+
- Report Plugin Check findings clearly. Do not hide them just because Pressship can continue.
|
|
15
|
+
- Use repeatable excludes for large or source-only files. Prefer `.pressshipignore` when the project already has one.
|
|
16
|
+
- If Pressship prompts interactively, answer only with user-approved or obvious plugin metadata.
|
|
17
|
+
- If authentication fails, run `npx pressship login` and let the user complete WordPress.org login.
|
|
18
|
+
|
|
19
|
+
## Orientation
|
|
20
|
+
|
|
21
|
+
From the plugin directory:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx pressship whoami
|
|
25
|
+
npx pressship status .
|
|
26
|
+
npx pressship info .
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Use `status` to determine whether `publish` will target a pending submission reupload or an approved SVN release.
|
|
30
|
+
|
|
31
|
+
## Local Playground Test
|
|
32
|
+
|
|
33
|
+
Start a local WordPress Playground with the plugin mounted:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx pressship demo .
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Useful options:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx pressship demo . --port 9401
|
|
43
|
+
npx pressship demo . --wp 6.8 --php 8.3
|
|
44
|
+
npx pressship demo . --reset
|
|
45
|
+
npx pressship demo . --skip-browser
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Package Check
|
|
49
|
+
|
|
50
|
+
Create and validate a WordPress-installable zip without uploading:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npx pressship pack .
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
For projects with bulky assets or source-only files, pass explicit ignores:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx pressship pack . --ignore "assets/**" --ignore "src/**" --ignore "node_modules/**"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Inspect package file count and included paths. Make sure the ZIP contains runtime PHP, built assets, `readme.txt`, and any required examples or static assets.
|
|
63
|
+
|
|
64
|
+
## Submit Or Reupload Pending Review
|
|
65
|
+
|
|
66
|
+
Use this for new plugins or WordPress.org submissions still awaiting review.
|
|
67
|
+
|
|
68
|
+
Dry run first:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npx pressship publish . --dry-run -y
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Then upload:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
npx pressship publish . -y
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
When the project contains large non-distribution directories, repeat the same ignore flags in both commands:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npx pressship publish . --dry-run -y \
|
|
84
|
+
--ignore "assets/**" \
|
|
85
|
+
--ignore "src/**" \
|
|
86
|
+
--ignore "scripts/**" \
|
|
87
|
+
--ignore "package.json" \
|
|
88
|
+
--ignore "package-lock.json" \
|
|
89
|
+
--ignore ".github/**" \
|
|
90
|
+
--ignore "node_modules/**" \
|
|
91
|
+
--ignore "dist/**"
|
|
92
|
+
|
|
93
|
+
npx pressship publish . -y \
|
|
94
|
+
--ignore "assets/**" \
|
|
95
|
+
--ignore "src/**" \
|
|
96
|
+
--ignore "scripts/**" \
|
|
97
|
+
--ignore "package.json" \
|
|
98
|
+
--ignore "package-lock.json" \
|
|
99
|
+
--ignore ".github/**" \
|
|
100
|
+
--ignore "node_modules/**" \
|
|
101
|
+
--ignore "dist/**"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
After upload, confirm:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npx pressship status .
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Release Approved Plugin
|
|
111
|
+
|
|
112
|
+
Use this only when the plugin is already approved and the user wants a WordPress.org release.
|
|
113
|
+
|
|
114
|
+
Dry run first:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
npx pressship publish . --release --dry-run -y
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Then release:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
npx pressship publish . --release -y
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
If Pressship cannot infer the slug or username:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
npx pressship release . --slug my-plugin --username WpOrgUser --dry-run
|
|
130
|
+
npx pressship release . --slug my-plugin --username WpOrgUser -y
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Version Bumps
|
|
134
|
+
|
|
135
|
+
Only run version bumps when the user asks:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
npx pressship version patch .
|
|
139
|
+
npx pressship version minor .
|
|
140
|
+
npx pressship version major .
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
After a version bump, review changed plugin headers, `readme.txt` stable tag, and changelog.
|
|
144
|
+
|
|
145
|
+
## Final Report
|
|
146
|
+
|
|
147
|
+
Always include:
|
|
148
|
+
|
|
149
|
+
- Whether a dry run was run.
|
|
150
|
+
- Package size and notable included/excluded files.
|
|
151
|
+
- Plugin Check result summary.
|
|
152
|
+
- Upload/release status and slug.
|
|
153
|
+
- Whether git was left untouched or changed.
|