-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from goaround/master
Create composer.json
- Loading branch information
Showing
7 changed files
with
324 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS_STORE | ||
*.bak | ||
node_modules/ | ||
vendor | ||
assets/js/functions.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,53 @@ | |
* License: GPLv3 | ||
* License URI: http://www.gnu.org/licenses/gpl-3.0.html | ||
|
||
## Description ## | ||
## Description | ||
Generates a custom feed `dewp-planet` for posts. Adds a checkbox to the _Publish_ meta box in order to explicitly add a post to that custom feed. | ||
|
||
 | ||
|
||
--- | ||
|
||
## Installation | ||
### Via SFTP or backend | ||
1. Download the asset `dewp-planet-feed.zip` from the [latest release](https://github.com/deworg/dewp-planet-feed/releases/latest). | ||
1. Upload the folder `dewp-planet-feed` to the `/wp-content/plugins/` directory, or directly upload the ZIP through the »Plugins« › »Add new« › »Upload plugin« screen in the WordPress backend. | ||
1. Activate the plugin through the »Plugins« menu in WordPress. | ||
|
||
### With Composer | ||
If you would like to pull the plugin with Composer (e.g. with [Bedrock](https://roots.io/bedrock/)) you have to compile the JavaScript assets yourself or use the [Composer Asset Compiler](https://github.com/inpsyde/composer-asset-compiler). This plugin is compatible and even provides the pre-compiled assets for each release. | ||
|
||
To pull this Plugin with Composer, follow these steps: | ||
|
||
1. Add `[email protected]:deworg/dewp-planet-feed.git` as an addional Github repository to your `composer.json`: | ||
```json | ||
"repositories": [ | ||
{ | ||
"type": "github", | ||
"url": "[email protected]:deworg/dewp-planet-feed.git" | ||
} | ||
], | ||
``` | ||
2. Require the plugin | ||
```bash | ||
$ composer require deworg/dewp-planet-feed | ||
``` | ||
3. Compile the assets with `npm install && npm run build:production` in the plugin directory or setup the [Composer Asset Compiler](https://github.com/inpsyde/composer-asset-compiler) with: | ||
```bash | ||
$ composer require inpsyde/composer-assets-compiler | ||
``` | ||
4. If you choose the Composer Asset Compiler, run `composer compile-assets` after every plugin update time or activate auto run in your `composer.json`: | ||
```json | ||
"extra": { | ||
"composer-asset-compiler": { | ||
"auto-run": true, | ||
} | ||
} | ||
``` | ||
5. Done. If you choose auto run, try it with `composer update` or `composer install` | ||
|
||
--- | ||
|
||
## Changelog | ||
|
||
### 0.5.1 – 28.10.2018 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"script": "build:production", | ||
"pre-compiled": { | ||
"env": { | ||
"root": { | ||
"adapter": false | ||
}, | ||
"$default": { | ||
"source": "assets", | ||
"target": "./assets/", | ||
"adapter": "gh-release-zip", | ||
"config": { | ||
"repository": "deworg/dewp-planet-feed" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "deworg/dewp-planet-feed", | ||
"description": "WordPress Plugin: DEWP Planet Feed", | ||
"type": "wordpress-plugin", | ||
"authors": [ | ||
{ | ||
"name": "Florian Brinkmann" | ||
}, | ||
{ | ||
"name": "Caspar Hübinger" | ||
}, | ||
{ | ||
"name": "Dominik Schilling" | ||
}, | ||
{ | ||
"name": "Torsten Landsiedel" | ||
} | ||
], | ||
"require": { | ||
"composer/installers": "^1.0", | ||
"inpsyde/composer-assets-compiler": "^2.0" | ||
}, | ||
"extra": { | ||
"composer-asset-compiler": { | ||
"dependencies": "install", | ||
"script": "build:production" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters