Skip to content

Commit

Permalink
Make building and packaging different processes for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd authored and pereirinha committed Oct 6, 2020
1 parent 9af6f78 commit 83575c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ Contact us [https://cloudinary.com/contact](https://cloudinary.com/contact)

Stay tuned for updates, tips and tutorials: [Blog](https://cloudinary.com/blog), [Twitter](https://twitter.com/cloudinary), [Facebook](https://www.facebook.com/Cloudinary).

## Development

### Create a Plugin Release Package

Run `npm run package` to create the plugin release in the `/build` directory and package it as `cloudinary-image-management-and-manipulation-in-the-cloud-cdn.zip` in the root directory.

### Deployment to WordPress.org

1. Tag a release from the `master` branch on GitHub.

2. Run `npm run deploy` to deploy the version referenced in the `cloudinary.php` file of the current branch.

3. Run `npm run deploy-assets` to deploy just the WP.org plugin assets such as screenshots, icons and banners.

## License #######################################################################

Expand Down
4 changes: 2 additions & 2 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = function( grunt ) {
} );

grunt.registerTask(
'build', [
'package', [
'clean',
'copy',
'compress',
Expand All @@ -68,7 +68,7 @@ module.exports = function( grunt ) {

grunt.registerTask(
'deploy', [
'build',
'package',
'wp_deploy',
]
);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"dev": "cross-env webpack --mode=development --watch",
"build": "cross-env webpack --mode=production",
"package": "npm run build && grunt package",
"deploy": "npm run build && grunt deploy",
"deploy-assets": "grunt deploy-assets"
},
Expand Down

0 comments on commit 83575c3

Please sign in to comment.