项目作者: hoangkianh

项目描述 :
My WordPress Starter Theme
高级语言: PHP
项目地址: git://github.com/hoangkianh/_hka_.git
创建时间: 2019-03-20T02:28:36Z
项目社区:https://github.com/hoangkianh/_hka_

开源协议:GNU General Public License v3.0

下载


_hka_

My WordPress Starter Theme
hka is based on Underscores https://underscores.me/

Getting Started

Change the name

The first thing you want to do is copy the _hka_ directory and change the name to something else, and then you’ll need to do a six-step find and replace on the name in all the templates.

  1. Search for '_hka_' (inside single quotations) to capture the text domain.
  2. Search for _hka__ to capture all the function names.
  3. Search for Text Domain: _hka_ in style.scss.
  4. Search for _hka_ (with a space before it) to capture DocBlocks.
  5. Search for _hka_- to capture prefixed handles.
  6. Search for _hka_ to capture the text domain in config.json

Requirements

Install

  1. npm install

Run

  1. gulp

To build sass files separately, run

  1. gulp sass

Check text domain

  1. gulp check-domain

To generate *.pot file, run

  1. gulp translate

Zip

  1. gulp zip

Linter tools

Require

  1. npm run eslint
  2. npm run eslint-fix
  3. npm run stylelint
  4. npm run stylelint-fix
  5. npm run phpcs
  6. npm run phpcs-fix