@wp-wipe/bundler

0.5.4 • Public • Published

WPWipe

Next Generation Tooling for Wordpress Theme development

  • 📦 Gutenberg Blocks
  • 🛠️ Tailwind ready
  • ⚡️ Blazingly fast build time
  • 💡 Simple to use

Usage

Installation

To get started, first install the bundler to your theme

npm i @wpwipe/bundler

Then add the following scripts to your package.json

{
  "scripts": {
    "dev": "wpwipe --watch",
    "build": "wpwipe --minify"
  }
}

Configuration

Watch

You can use the watch parameter in your command to watch the content of the root folder

wpwipe --watch

Minify

You can use the --minify parameter in your command to minify the output

wpwipe --minify

Gutenberg Blocks

All files ending in _.block.jsx, _.block.tsx, _.block.js, or _.block.ts will be automatically imported in your admin js file.

Likewise, if you name a file _.block.css or _.block.scss it will be included in output of the frontend and backend stylesheet if a @blocks; directive is present.

Tailwind

You can use the @tailwind; directive ant tailwind will be included in your stylesheet. It will include component and utilities, but not the css reset (as it conflicts with basic theme styling). The files scanned for utility classes will be based on the location of the tailwind.config.js file

/* @tailwind base; */
@tailwind components;
@tailwind utilities;

** Note ** We recomend using the following structure for usage in the admin as some tailwind class my conflict with wordpress' style. (nesting is the reason why the custom @tailwind; exists)

.editor-styles-wrapper {
  @tailwind;
  @blocks;
}

The ecosystem

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.42latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.42
0.5.30
0.5.21
0.5.10
0.5.00
0.4.70
0.4.60
0.4.50
0.4.30
0.4.20
0.4.10
0.4.00
0.3.70
0.3.60
0.3.50
0.3.40
0.3.20
0.3.10
0.3.00
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.10
0.1.00

Package Sidebar

Install

npm i @wp-wipe/bundler

Weekly Downloads

3

Version

0.5.4

License

MIT

Unpacked Size

43.6 kB

Total Files

18

Last publish

Collaborators

  • balise