1.1.0 • Published 3 years ago
@sebastiansiejek/ewp v1.1.0
ewp
CLI for Empressia wordpress template
Usage
$ npm link
USAGE
$ ewp COMMAND
$ ewp help
...Install
npm install -g @sebastiansiejek/ewp
Getting Started
- Install and authenticate Github CLI
gh auth login
Commands
component
ewp component -h
create
ewp component create
- Create PHP file
- Create Twig file
- Create SCSS file
- Create TypeScript file
- Append component to ACF
- Append component to style.scss
npm
ewp npm -h- helpewp npm install <packageName>- install npm dependenciesewp npm uninstall <packageName>- uninstall npm dependenciesewp npm run <script>- run npm script
composer
ewp composer -h- helpewp composer install <packageName>- install composer packageewp composer uninstall <packageName>- uninstall composer packageewp composer generate-classes- generate all classes bydump-autoload -o
Github
ewp gh -h- help
Create repo
ewp gh:create-repo- -n - name
- -c - clone
ex. ewp gh:create-repo --clone --name="project1"
Set secrets
ewp gh:set-secrets
WordPress
ewp wp -h- help
Set secrets
ewp wp:set-secrets
Create WordPress post type
ewp wp:create-post-type
Create WordPress taxonomy
ewp wp:create-taxonomy
self
ewp self update- update self cli
Develop
npm link- making local CLI available in terminal- You should restart open terminal
- You can also run cli by local path (
which ewp)