GithubHelp home page GithubHelp logo

atomtigerzoo / wordpress-theme-init Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 286 KB

Simple starter/init-theme for Wordpress development. Comes with browser-sync, gulp watchers for Post-CSS/ES6 and build scripts for the production-ready theme.

JavaScript 55.74% PHP 26.59% CSS 17.67%
wordpress wordpress-development wordpress-starter-theme browsersync post-css gulp

wordpress-theme-init's Introduction

๐Ÿ™ Theme-init for Wordpress theme development


๐Ÿ“„ Installation

  • Clone (or download) this repository
  • Copy gulpconfig.json.default to gulpconfig.json
  • Edit gulpconfig.json to match your development proxy-url and if you would like to see the BrowserSync overlay
  • Edit package.json (project name, your details, etc) and this readme
  • Run npm install or yarn install to download and install all packages
  • If everything went fine see the Gulp tasks below
  • Develop your theme, install more packages, etc pp.
  • Be happy and contribute if you like ๐Ÿ˜

Webfonts

For privacy reasons please use selfhosted webfonts instead of Google Fonts or other third-party vendors that often include trackers. An efficient and nice way to choose and include fonts found on Google Fonts is the following site: https://google-webfonts-helper.herokuapp.com/fonts

๐Ÿ”จ Gulp tasks

There are three gulp tasks you can run:

  • gulp This will start browsersync, compiles Post-CSS, transpiles the JavaScript and will then watch for changes in the /src directory and reload browsersync.

  • gulp clean This will clean your build folder if something went wrong after a build or if you just wanted to test a build and keep it from your git.

  • gulp build This will copy everything from /src to /build, compiles Post-CSS, transpiles JavaScript, minify both CSS and JS, concatenate everything, minimises your images, bumps the version number etc. This is the folder you want to use in production! Afterwards you can deploy/copy/upload the /build folder or add it to your git tracking if you like.

๐Ÿ’ฌ Legal

wordpress-theme-init's People

Contributors

atomtigerzoo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

wordpress-theme-init's Issues

Remove Google Fonts

Task:
Remove Google Fonts from header and add a hint to the webhelper for selfhosting fonts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.