Skip to content

Repository files navigation

Test Plugin

A StorePress Plugin

You can test the block in your browser using Playground.

Development

  • git init
  • npm i
  • npm run packages-update - Update WordPress packages

Develop

  • npm start

Create New Block(s)

  • npm run create-dynamic-block [block name] - To add dynamic block
  • npm run create-static-block [block name] - To add static block

Lint

  • npm run lint:js - Lint Javascript
  • npm run lint:js:report - Lint Javascript and will generate lint-report.html. From terminal open lint-report.html
  • npm run lint:css - Lint CSS
  • npm run lint:css:report - Lint CSS and will generate scss-report.txt file.
  • npm run lint:php - PHP lint and will generate phpcs-report.txt file.

Fix

  • npm run lint:js:fix - Fix Javascript Lint Issue.
  • npm run lint:css:fix - Fix SCSS Lint Issue.

Format

  • npm run format:js - Format Javascript
  • npm run format:css - Format SCSS
  • npm run format:php - Format PHP
  • npm run format - Format ./src

Release

  • npm run plugin-zip - make zip based on package.json files list.
  • npm run package - make directory based on package.json files list.

Provide your own translations

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages