opsone/wordpress-theme-kit

Create empty wordpress theme with minimal developper kit

5.0.18 2024-03-11 09:05 UTC

README

Create empty wordpress theme with minimal developper kit

Installation

Install composer in your project:

$ curl -s https://getcomposer.org/installer | php

Simply install with composer:

$ php composer.phar create-project opsone/wordpress-theme-kit path/to/install/

webpack encore

Launch build files, Mode Development

$ npm run dev

Launch watcher files, Mode Development

$ npm run watch

Launch watcher files and reload browser, Mode Development

$ npm run dev-server

Make for Production

$ npm run build

Optimize image

$ npm run imageOptim

Launch prettier

$ npm run prettify

Assets

Use assets file in templates wordpress

$ echo asset_url('logo.png');
$ // dev => http://localhost:3000/d8de0a51d2c1ffadf2674553ff70fad2.png
$ // prod => http://localhost/assets/build/d8de0a51d2c1ffadf2674553ff70fad2.png