• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jasewarner/gulp-wordpress: Blank slate WordPress theme for Developers, packaged ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jasewarner/gulp-wordpress

开源软件地址(OpenSource Url):

https://github.com/jasewarner/gulp-wordpress

开源编程语言(OpenSource Language):

PHP 50.7%

开源软件介绍(OpenSource Introduction):

Gulp + WordPress

Version: 2.0.9

Author

Jase Warner ( https://jase.io )

If this project has been a helping hand to you, feel free to give this grateful developer a coffee ☕️

Synopsis

Gulp + WordPress is a blank slate WordPress theme for those Developers wishing to start a project with the bare minimum.

The theme has been built according to WordPress Coding Standards. All functions, includes and templates are placed in their respective directory and divided into separate files accordingly.

Gulp + WordPress is packaged with Gulp v4 for watching, compiling, and minifying SCSS and JS files.

A selection of helpful mixins is also included, most of which are featured in this useful article by @seb_ekstrom.

You may also write your JavaScript in ES6 – The Gulp scripts task utilises Babel, so you can use new syntax without worrying about browser support.

Installation

Clone the project into wp-content/themes and rename it accordingly.

You’ll want to update style.css in the theme root with all the relevant bits of information, as well as assets/package.json (specifically name and author) and lastly assets/gulpfile.js (change the themePrefix variable accordingly).

Now, in Terminal, cd into the assets directory and install the Gulp packages (if you haven't already installed Gulp, you’ll need to do so first):

npm install

Once you have installed the packages, in Terminal and while still in the assets directory, run gulp watch. Note that you may want to run the default task (gulp) to do an initial build of the assets.

SCSS files in assets/scss/ are compiled and minified over to assets/css.

JavaScript files in assets/js/scripts/ are uglified, concatenated and sent over to assets/js/.

Note: If you would like to specify scripts per WordPress template (e.g. posts, pages etc.), you can tweak the js Gulp task to create separate JavaScript files.

Features

The Gulp build features the following helpful packages:

There are also a selection of useful WordPress functions located in the functions directory to get you started, including the following:

  • Change admin credit in footer
  • Change default “Howdy” greeting
  • Enqueue scripts and styles
  • Pretty printing debugging tool for PHP
  • Register custom navigation menu

Credits




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap