Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tfirdaus committed Oct 22, 2024
1 parent f772a58 commit 93d042a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ Commands are available to help you with the development process. You can run the
<th>Description</th>
</thead>
<tbody>
<tr>
<td><code>composer&nbsp;archive:zip</code></td>
<td>Creates a zip archive of the plugin files.</td>
</tr>
<tr>
<td><code>composer&nbsp;scoper</code></td>
<td>Scopes the plugin Composer dependencies to prevent namespace conflicts with other plugins.</td>
Expand All @@ -68,6 +64,11 @@ Commands are available to help you with the development process. You can run the
<td><code>npm&nbsp;run&nbsp;build</code></td>
<td>Builds the assets for production. It compiles the assets, like the stylesheets and the JavaScript files, and minifies them for production use.</td>
</tr>
<tr>
<td><code>composer&nbsp;plugin:zip</code></td>
<td>Creates a zip file of the plugin for distribution.</td>
</tr>
</tbody>
</table>

## Plugins
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"archive:zip": "@composer archive --format=zip --file=plugin-name",
"build": [
"wp i18n make-pot --exclude=vendor,dist . inc/languages/plugin-name.pot",
"codex scoper:init --yes --no-dev"
],
"phpcs": "phpcs",
"phpcs:fix": "phpcbf",
"plugin:zip": "@composer archive --format=zip",
"scoper": "codex scoper:init"
},
"scripts-descriptions": {
"archive:zip": "Create a zip archive of the plugin",
"build": "Build the plugin for production",
"phpcs": "Check the codebase for coding standards violations",
"phpcs:fix": "Fix coding standards violations",
"plugin:zip": "Create a zip file of the plugin for distribution",
"scoper": "Scope dependencies namespace with a prefix"
},
"config": {
Expand Down

0 comments on commit 93d042a

Please sign in to comment.