https://github.com/flowdee/pretty-code
Pretty Code
https://github.com/flowdee/pretty-code
Last synced: about 1 month ago
JSON representation
Pretty Code
- Host: GitHub
- URL: https://github.com/flowdee/pretty-code
- Owner: flowdee
- License: gpl-3.0
- Created: 2018-02-24T02:42:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T05:04:48.000Z (about 7 years ago)
- Last Synced: 2025-02-02T15:48:53.691Z (3 months ago)
- Language: PHP
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# WordPress Plugin Boilerplate
Here you can find the boilerplate I created and personally use in order to develop Open Source and premium WordPress plugins.
## Features
* Solid and tested base for plugin development
* Integrated grunt workflow supporting LESS and JS compiling, text-domain checker (optional)
* Scripts: Loading CSS & JS files on your admin settings page & frontend
* Settings: Prepared settings page including a handful example fields
* Plugin Links: Prepared link to settings page and a custom URL via the plugins overview page
* Ready for translations## Setup
### Placeholders
Due to the fact that I used placeholder names, prefixes and labels, you update some text strings and file names. Let's assume your plugin will be called "Jumping Donut":
* Search for: `Plugin Name` and replace with: `Jumping Donut`
* Search for: `Pretty_Code` and replace with: `Jumping_Donut`
* Search for: `PRETTY_CODE` and replace with: `JUMPING_DONUT`
* Search for: `pretty_code` and replace with: `jumping_donut`
* Search for: `pretty-code` and replace with: `jumping-donut`
* Search for: `plugin_prefix` and replace with: `jd_` _(This will be used for prefixing functions and I suggest using an unique and shorter one)_Additionally please take a look into the plugin files and replace those as well:
* Search for: `pretty-code` and replace with: `jumping-donut`_In case I missed some placeholders, please gimme a shout._
### Assets (CSS & Javascript)
#### Variant 1: Grunt (LESS, Uglify etc.)
In case you want to use the grunt workflow simply execute the following commands via your console:``` php
// Installing dependencies
npm install// Run watcher while developing and updating less/js files
npm watch// Finish the work and generating the zip file of the plugin
npm finish
```#### Variant 2: Default editing
If you don't want to use grunt, just edit the CSS/JS files under `/pretty-code/assets/...` on your own.### Credits
This WordPress Plugin Boilerplate was developed by [flowdee](http://flowdee.de/).
You like my work? [Support me](https://donate.flowdee.de/) or not. I don't mind, as long as I was able to help you :wink: