opsone / wordpress-theme-kit
Create empty wordpress theme with minimal developper kit
Package info
github.com/opsone/wordpress-theme-kit
Type:project
pkg:composer/opsone/wordpress-theme-kit
5.0.18
2024-03-11 09:05 UTC
Requires
- mobiledetect/mobiledetectlib: ^2.8
- respect/validation: ~2.2
This package is not auto-updated.
Last update: 2026-06-21 02:20:18 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