Skip to content

willtpwise/blog-forms

Repository files navigation

Plugin Pack

Wordpress plugin pack, running a Webpack build system. Features include browsersync, ES6 & Babel.js and SASS.

Prerequisites

  • A local Wordpress install, running on MAMP
  • Node.js & npm

If you're not familiar with the above, I suggest following these two walkthroughs.

Installing

Follow these steps to install the plugin pack.

Step 1

Drop a copy of this repo into your local Wordpress site's plugin directory. E.g. wp-content/plugins/my-plugin/

Step 2

CD to the plugin's directory and init the builder

$ ./bin/pluginpack.sh <name> <MAMP>

Replace with the name of your plugin and use quotes to enclose

Replace with your MAMP site URL and make sure to include the whole URL (E.g. http://localhost:8888/local-wp/)

# E.g.
$ ./bin/pluginpack.sh "My Plugin" http://localhost:8888/local-wp/

Step 3

Install the repo's dependencies

$ npm install

Tip: You can also use yarn for all the commands in this repo

Step 4

From your Wordpress admin screen, 'activate' the plugin

Step 5

Spin up the developer environment

$ npm run dev

Step 6

Your favorite browser should open up http://localhost:xxxx and in it should be a proxied version of your Wordpress install. Login to your site, then activate the plugin through the Dashboard/Plugins screen.

Step 7

If your Wordpress admin screen sends you a successful install message then you're good to go. Head over to plugin-pack/index.php and start developing.

When you're ready to build for production (with minification, hash URLs, etc) just stop the dev command with ctrl + c then run the build command.

$ npm run build

Problems or Issues

Open a pull request with a fix, or log an issue in the issues tab.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors