Skip to content

Commit d7d9bb9

Browse files
author
David Ryan
committed
bump to 2.5
1 parent ce19fe8 commit d7d9bb9

12 files changed

+88
-57
lines changed

.circleci/codesniffer.ruleset.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="timeinc-wp-plugin">
3+
<description>Custom plugin codesniffer exceptions.</description>
4+
<exclude-pattern>vendor/*</exclude-pattern>
5+
<exclude-pattern>lib/composer/*</exclude-pattern>
6+
<exclude-pattern>assets/*</exclude-pattern>
7+
<rule ref="WordPress-VIP"></rule>
8+
</ruleset>

.circleci/config.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/php:7.1-node-browsers
7+
working_directory: ~/repo
8+
steps:
9+
- checkout
10+
- run: sudo chmod 777 -R ~
11+
- run: echo $PWD
12+
- run: ls -lart
13+
- run: env COMPOSER=composer-test.json composer install --prefer-source --no-interaction
14+
- run: sudo ./bin/phpcs --config-set installed_paths $(readlink -f vendor/wp-coding-standards/wpcs/)
15+
- run: env COMPOSER=composer-test.json composer test
16+
notify:
17+
docker:
18+
- image: circleci/node:latest
19+
steps:
20+
- run: sudo apt-get install httpie -y
21+
- run:
22+
name: Notify Slack Channel
23+
command: |
24+
date=$(date +"%s $*")
25+
if [ -z "${DEV_GROUP}" ]; then DEV_GROUP=${CIRCLE_PROJECT_USERNAME}; fi
26+
http POST $SLACK_WEBHOOK \
27+
channel='#seths-slack-bots' \
28+
username="${DEV_GROUP}-Deploybot" \
29+
icon_emoji=':octocat:' \
30+
attachments:="
31+
[{
32+
\"text\":\"CircleCI build ${CIRCLE_BUILD_NUM}. Release notes coming soon.\",
33+
\"author_name\":\"Github User: ${CIRCLE_USERNAME}\",
34+
\"author_link\":\"https://github.com/${CIRCLE_USERNAME}\",
35+
\"author_icon\":\"\",
36+
\"ts\":\"${date}\",
37+
\"color\":\"#36a64f\",
38+
\"fallback\":\"'t'\",
39+
\"title\":\"'Released ${CIRCLE_PROJECT_REPONAME} version ${CIRCLE_TAG} '\",
40+
\"title_link\":\"${CIRCLE_BUILD_URL}\",
41+
\"footer\":\"'${DEV_GROUP} CircleCI Deployment'\",
42+
\"footer_icon\":\"https://logo.clearbit.com/circleci.com/?size=64\"
43+
}]
44+
" \
45+
-v
46+
47+
workflows:
48+
version: 2
49+
build-n-notify:
50+
jobs:
51+
- build:
52+
filters:
53+
tags:
54+
only: /.*/
55+
- notify:
56+
requires:
57+
- build
58+
filters:
59+
tags:
60+
only: /.*/
61+
branches:
62+
ignore: /.*/

DEV-NOTES.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,10 @@
11
# WordPress Development Toolkit
22

3-
Tools and resources for WordPress development.
3+
1. Download and install plugin (should NOT be run in production environments on high-traffic servers where
4+
performance matters...).
45

5-
## INSTALL & CONFIGURE
6-
1. Upload the entire `/wordpress-development-toolkit` directory to the `/wp-content/plugins/` directory.
7-
2. Activate WordPress Development Toolkit through the 'Plugins' menu in WordPress. In WordPress Multisite plugins can be activated
8-
per-site or for the entire network.
6+
2. Activate plugin
97

10-
## FREQUENTLY ASKED QUESTIONS
8+
3. Open Dev Toolkit in Admin Menu
119

12-
## HOW TO DEBUG
13-
14-
### DEVELOPER NOTES
15-
* Main plugin file: `wordpress-development-toolkit.php`.
16-
* Main plugin class: `PHX_WP_DEVKIT\V_1_2\Plugin` in `/app/class-plugin.php`.
17-
* Public functionality loaded in `Plugin::init()`
18-
* Auth'd functionality checked with `is_user_logged_in()` and executed in `Plugin::authenticated_init()`
19-
* PHP in `/app`
20-
* JS & CSS in `/app/assets`
21-
* PHP deps in `/vendor` handled by Composer.
22-
23-
Proper PSR-4 class names i.e. (Some_Class named class-some-class.php) in `/app`, `/app/admin`, and `/app/includes`
24-
are autoloaded and don't require manual declaration.
25-
26-
For more, see DEV-NOTES.md. Note production and development dependencies in package.json and composer.json.
27-
28-
## CONTRIBUTORS
29-
30-
This plugin is maintained by David Ryan - WordPress Phoenix.
31-
||PLUGIN_GITHUB_REPO||/graphs/contributors/
10+
4. Generate New Plugin or access resource guides.

app/admin/class-auth-assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHX_WP_DEVKIT\V_2_1\Admin;
3+
namespace PHX_WP_DEVKIT\V_2_5\Admin;
44

55
/**
66
* Register and enqueue assets used in the WordPress Admin or only when a user is authenticated here.

app/admin/class-generators-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHX_WP_DEVKIT\V_2_1\Admin;
3+
namespace PHX_WP_DEVKIT\V_2_5\Admin;
44

55
class Generators_Page {
66
/**

app/admin/class-plugin-generator-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHX_WP_DEVKIT\V_2_1\Admin;
3+
namespace PHX_WP_DEVKIT\V_2_5\Admin;
44

55
class Plugin_Generator_Form {
66

app/admin/class-product-machine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHX_WP_DEVKIT\V_2_1\Admin;
3+
namespace PHX_WP_DEVKIT\V_2_5\Admin;
44

55
use RecursiveDirectoryIterator;
66
use RecursiveIteratorIterator;

app/admin/class-toolkit-dashboard-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHX_WP_DEVKIT\V_2_1\Admin;
3+
namespace PHX_WP_DEVKIT\V_2_5\Admin;
44

55
class Toolkit_Dashboard_Page {
66
/**

app/admin/plugin-generator-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"app": {
3-
"generator_version": "2.1.0",
3+
"generator_version": "2.5.0",
44
"generator_version_release_dates": {
5-
"2.1.0": "3/6/2018",
5+
"2.5.0": "3/6/2018",
66
"1.0.0": "11/13/2017"
77
},
88
"key": "val",

0 commit comments

Comments
 (0)