Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Commit

Permalink
Build README.md from readme.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Feb 9, 2016
1 parent aec5075 commit 5623a22
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Gruntfile.js
Expand Up @@ -27,6 +27,14 @@ module.exports = function( grunt ) {
files: ['lib/**/*.php', 'tests/*.php', '*.php']
},

wp_readme_to_markdown: {
your_target: {
files: {
'README.md': 'readme.txt'
}
},
},

phpunit: {
'default': {
cmd: 'phpunit',
Expand Down Expand Up @@ -54,6 +62,9 @@ module.exports = function( grunt ) {
}, this.async());
});

grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );

grunt.registerTask( 'test', [ 'phpcs', 'phplint', 'phpunit:default', 'phpunit:multisite' ] );
grunt.util.linefeed = '\n';

Expand Down
20 changes: 18 additions & 2 deletions README.md
@@ -1,5 +1,21 @@
# wp-api-meta-endpoints
# WP REST API Meta Endpoints #
**Contributors:** rmccue, rachelbaker, danielbachhuber, joehoyle
**Tags:** json, rest, api, rest-api
**Requires at least:** 4.4
**Tested up to:** 4.5-alpha
**Stable tag:** 0.1.0
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Feature plugin for meta Endpoints
WP REST API companion plugin for post meta endpoints.

## Description ##

[![Build Status](https://travis-ci.org/WP-API/wp-api-meta-endpoints.svg?branch=master)](https://travis-ci.org/WP-API/wp-api-meta-endpoints)

WP REST API companion plugin for post meta endpoints.

## Changelog ##

### 0.1.0 (February 9, 2016) ###
* Initial release.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -11,6 +11,7 @@
"devDependencies": {
"grunt": "^0.4.5",
"grunt-phpcs": "^0.4.0",
"grunt-wp-readme-to-markdown": "~0.9.0",
"phplint": "^1.6.1"
}
}
2 changes: 2 additions & 0 deletions readme.txt
Expand Up @@ -11,6 +11,8 @@ WP REST API companion plugin for post meta endpoints.

== Description ==

[![Build Status](https://travis-ci.org/WP-API/wp-api-meta-endpoints.svg?branch=master)](https://travis-ci.org/WP-API/wp-api-meta-endpoints)

WP REST API companion plugin for post meta endpoints.

== Changelog ==
Expand Down

0 comments on commit 5623a22

Please sign in to comment.