Skip to content

A WordPress developer toolkit that kickstarts your next WordPress theme development project with modern tools and workflows.

Notifications You must be signed in to change notification settings

provineet/bootflow-cli

Repository files navigation

WordPress Scaffolding Theme Generator

BOOTFLOW-CLI : A WordPress Developer Toolkit

A WordPress developer toolkit that kickstarts your next WordPress theme development project with modern tools and workflows.

A FOSS (Free & Open Source Software) project. Developed & Maintained by @provineet. Vineet Verma

Version: v1.1.0 License npm Maintainer

🚀 How it works?

Bootflow-cli scaffolds a starter WordPress theme inside your wp-content/themes folder using the values supplied through a CLI interface. The starter theme supports Gulp, SASS, Babel, Webpack, AutoPrefixer, BrowserSync (Reloads your browser while development), assets minification and image optimizations.

You can just start using modern development tools and plugins in your WordPress theme Development Stack with almost no-configuration involved.

⚡️ Quick Installation


⚡️ Create a Fresh Theme

Go your terminal and cd to your local wp-content directory, where you want to start developing the theme and run the below given npx command:

npx bootflow-cli

You will be asked a few questions to generate your theme files, answer them correctly and a fresh copy of your development scaffolding theme will be generated inside your themes folder.


Bootflow-cli installation

The Generated WordPress Theme

Generated Developer WordPress theme supports:

  • Bootstrap 5.x, FontAwesome 5.x
  • SASS Compilation
  • CSS AutoPrefixer
  • JS Babel Transpilation (ES6 Presets)
  • Webpack 5 Script Bundling
  • Assets Minification (CSS, JS, Images)
  • Image Optimizer (JPEG, GIF, PNG and SVGs)
  • CSS Sprite Images
  • BrowserSync for a no-lag browser reload on file changes
  • Gulp Workflow

Generated Theme's Folder Structure

.
└── themes
    └── bootflow
        ├── assets                (hold the compiled CSS,JS,Images)
        │   ├── css
        │   ├── images
        │   ├── js
        │   └── webfonts
        ├── assets_src            ( Static Assets Source Files )
        │   ├── images
        │   ├── js                ( Webpack or Babel JS )
        │   ├── scss              ( All Your SCSS Files )
        │   ├── sprite_images     ( Your Sprite Icons/Images )
        │   └── webfonts
        ├── babel.config.json
        ├── footer.php
        ├── functions.php
        ├── gulpfile.js           ( Gulp Config and tasks folder )
        ├── header.php
        ├── inc
        │   ├── classes
        │   │   ├── autoload.php           ( PHP Classes autoloader )
        │   │   ├── template-functions.php
        │   │   ├── theme-hooks.php        ( All your theme hooks )
        │   │   └── theme-setup.php
        │   ├── helper-functions.php
        │   └── loader.php                 ( Loads Classes and helpders )
        ├── index.php
        ├── package.json
        ├── screenshot.png
        └── style.css

⚡️ Integrate Bootflow In An Existing Theme

Start using SCSS, WebPack, Gulp, NPM workflow in your exisiting WordPress theme.

Go to the terminal and cd to the WordPress theme directory in which you want to integrate Bootflow and run the below given npx command:

npx bootflow-cli

Complete the questions asked to integrate the workflow and you are done.

📖 Generated Theme's Documentation : Bootflow Theme Github Repo.


Follow me on twitter. I tweet about Dev Tools, latest tech and tuts for the community. 🐦 @mrvineetverma

If you have any query or suggestions, please feel free to get in touch with me on twitter or just fork the github repo and start contributing.

About

A WordPress developer toolkit that kickstarts your next WordPress theme development project with modern tools and workflows.

Resources

Stars

Watchers

Forks

Packages

No packages published