commands - tetloose/tetloose-wp GitHub Wiki

yarn setup

Initial setup script, interactive GUI to select setup environment.

0: Local

This will install locally composer / yarn and husky depending on your env variables.

1/2: Staging / Production

This will depending on your env variables, SSH into staging / production, create the relative Directories, install Wordpress CORE, set the core config host / dbname etc. It will then remove plugins / themes and uploads. Re create these folders and set the correct permissions. Resets the Wordpress default Database then runs the command clone:to pushing your local environment to the desired location.

  • yarn dev: Run application in development mode.
  • yarn serve: Skip asset generation and serve project (only run if you have already run yarn dev).
  • yarn build: Build the application.
  • yarn test: Run Vitest.
  • yarn coverage: Run Vitest coverage report.
  • yarn lint: Run Eslint / Stylelint.
  • yarn lint:fix: Auto-fix issues.
  • yarn favicon: Generate a favicon.
  • yarn deploy: Deploy project to an env.
  • yarn uploads:push: Push uploads to an environment.
  • yarn uploads:pull: Pull uploads from an environment to local.
  • yarn db:push: Push database to an environment.
  • yarn db:pull: Pull database from an environment to local.
  • yarn clone:from: Pull uploads and database from an environment to local.
  • yarn clone:to: Push uploads and database from local to an environment.
  • yarn package: Create a zip package, Uploads, Plugins, MU-Plugins, Theme and database.
  • yarn backup: Create a backup zip of entire project.
  • yarn plugins: Composer require Wordpress Plugin.
  • yarn add:component: Lists available components in the pattern library.
  • yarn gen:component: Generate a component using the GUI.
  • yarn git:commit: Commit current branch codebase to git

Navigation

WEBPACK CHUNKS >>

⚠️ **GitHub.com Fallback** ⚠️