Create empty wordpress theme with minimal developper kit
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/
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
Use assets file in templates wordpress
$ echo asset_url('logo.png');
$ // dev => http://localhost:3000/d8de0a51d2c1ffadf2674553ff70fad2.png
$ // prod => http://localhost/assets/build/d8de0a51d2c1ffadf2674553ff70fad2.png