Gutenberg blocks for WordPress
Branch: master
Clone or download
Latest commit 9f869df Feb 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
phpcs_nk initial commit Apr 10, 2018
src v2.2.0 Feb 15, 2019
.babelrc updated dependencies Oct 1, 2018
.editorconfig initial commit Apr 10, 2018
.eslintignore added button block (#1) Apr 11, 2018
.eslintrc added support for multiple buttons in Button block Oct 8, 2018
.gitattributes added eol config for jsx files Jul 18, 2018
.gitignore
.stylelintignore initial commit Apr 10, 2018
.stylelintrc improved extensions to use from supports array without filters May 25, 2018
README.md Update README.md Aug 29, 2018
composer.json initial commit Apr 10, 2018
composer.lock initial commit Apr 10, 2018
gulpfile.babel.js added Settings page Jan 8, 2019
package-lock.json added Progress Bar resizable indicators (issue #37) Feb 4, 2019
package.json v2.2.0 Feb 15, 2019
webpack.config.js added Custom Code plugin with possibility to add local and global cus… Feb 14, 2019

README.md

GhostKit - Gutenberg blocks for WordPress

Development

Requirements

Prerequisite How to check How to install
PHP >= 5.5.9 php -v php.net
Node.js >= 6.x.x node -v nodejs.org
Composer >= 1.0.0 composer -V getcomposer.org

Installation

  • Run npm install in the command line. Or if you need to update some dependencies, run npm update

Building

  • npm run build to run build
  • npm run watch to run build and start files watcher
  • npm run production to run build and prepare zip files for production

Linting

We use pre-commit and pre-push hooks for Git to lint sources with phpcs, eslint and stylelint tasks.

NPM commands to work with linting:

  • npm run lint to show all lint errors (described below)
  • npm run lint-fix to automatically fix some of all linters errors (described below)
  • npm run php-lint to show phpcs errors
  • npm run php-lint-fix to automatically fix some of the phpcs errors
  • npm run js-lint to show eslint errors
  • npm run js-lint-fix to automatically fix some of the eslint errors
  • npm run css-lint to show stylelint errors
  • npm run css-lint-fix to automatically fix some of the stylelint errors

All linters compatible with the modern IDE and code editors.