An open API service indexing awesome lists of open source software.

https://github.com/anspress/anspress-boilerplate-extension

Generate AnsPress extensions base source codes
https://github.com/anspress/anspress-boilerplate-extension

Last synced: 4 months ago
JSON representation

Generate AnsPress extensions base source codes

Awesome Lists containing this project

README

          

# AnsPress boilerplate extension

This is a AnsPress extension base code generator grunt template. You can use this template to generate source codes of AnsPress extension.
Simply answer the questions when prompted and your extension will be built by grunt.

> NOTE: This is not a AnsPress extension but it is a AnsPress extension generator, it means you can't use this project file directly in WordPress

[grunt-init]: http://gruntjs.com/project-scaffolding

## Installation
If you haven't already done so, install [grunt-init][]:

```
npm install -g grunt-init
```

Once grunt-init is installed, place this template in your `~/.grunt-init/` directory. It's recommended that you use git to clone this template into that directory, as follows:

### Linux/Mac Users

```
git clone git@github.com:wp3/anspress-boilerplate-extension.git ~/.grunt-init/anspress-boilerplate-extension
```

### Windows Users

```
git clone git@github.com:wp3/anspress-boilerplate-extension.git %USERPROFILE%/.grunt-init/anspress-boilerplate-extension
```

## Usage

1. At the command-line, create a new directory in wp-content/plugins
2. cd into an empty directory
3. run the following command and follow the prompts

```
grunt-init anspress-boilerplate-extension
```

## Support

Have question ? feel free to ask here: http://anspress.io/questions/ask/

## Credit

Most of this is copied from [grunt-wp-plugin](https://github.com/10up/grunt-wp-plugin) by 10up, so thanks to them!