Giter VIP home page Giter VIP logo

bathe's Introduction

Bathe

WordPress Starter Theme for Gulp

Version

0.2.0

Features

  • Gulp
  • Sass
  • Autoprefixer
  • Bourbon
  • Neat
  • Bitters
  • Compass
  • Imagemin
  • Browserify
  • Watchify
  • UglifyJS
  • Browser-Sync

Bourbon is a lightweight Sass framework. If you don't use it, it will do nothing to your CSS file.

Usage

If you don't use Gulp, Sass, or Compass, you can just use this theme like others. Nothing else is necessary except WordPress Environment.

Using Gulp to develop in Bathe

1 Install Node.js

https://nodejs.org/

Instead, the easiest way is using Homebrew.

$ brew install node

2. Install Gulp globally

$ npm install --global gulp

3. Install Sass and Compass (Optional)

$ gem install compass

This will install both Ruby Sass and Compass. If you only use Sass but not Compass, the Ruby Sass is not require.

4 Clone this repo in WordPress theme directory

$ git clone https://github.com/ixkaito/bathe.git && cd bathe

You can also download the .zip file from the following URL.

https://github.com/wp-bathe/bathe/archive/master.zip

5. Install Node modules

$ npm install

6. Change the site url

Change siteurl in gulpconfig.json for your environment. The default siteurl is wocker.dev for Wocker.

7. Run Gulp

$ gulp

Configurations and Defaults

You can change the configuration by editing gulpconfig.json

siteurl

An EXISTING vhost.

default: "wocker.dev"
options: string
example: "localhost:8888"

tasks

Tasks to run when you exec gulp command.

sass

To compile Sass.

default: true
options: boolean (true / false)

compass

To use compass. If true, Bathe will ignore the above setting of sass.

default: false
options: boolean (true / false)

browserify

To use Browserify.

default: true
options: boolean (true / false)

imagemin

To minify images.

default: true
options: boolean (true / false)

browser-sync

To keep browsers in sync with file changes.

default: true
options: boolean (true / false)

watch

To watch files and run tasks on file changes.

paths

Settings about paths.

assets

The directory to gather all assets.

default: "./assets"
options: string
example: "./" (directly under the theme direcotry)

css

The CSS destination directory for Sass or Compass.

default: "css"
options: string
example: "stylesheets"

js

The JavaScript destination directory for Browserify.

default: "js"
options: string
example: "javascripts"

images

The destination directory of compressed image files for Imagemin.

default: "images"
options: string
example: "img"

sass

The directory of Sass files.

default: "_sass"
options: string
example: "src/sass"

jsSrc

The directory of JavaScript source files to bundle up by Browserify.

default: "_js"
options: string
example: "src/js"

imageSrc

The directory of image source files to compress.

default: "_images"
options: string
example: "src/images"

sass

Sass settings.

outputStyle

The output style of Sass.

default: "compressed"
options: "expanded", "nested", "compact", "compressed"

autoprefixer

Autoprefixer settings.

browsers

List of browsers, which are supported in your theme.

default: ["> 1%", "last 2 versions", "Firefox ESR"]
options: array. See Browserslist docs for available queries. example: ["> 5%", "last 2 versions", "IE 8"]

compass

Compass settings.

config

The config file for Compass.

default: "./config.rb"
options: string
example: "./myconfig.rb"

style

The output style of Compass.

default: "compressed"
options: "expanded", "nested", "compact", "compressed"

comments

Show line comments or not.

default: false
options: boolean (true / false)

js

JavaScript settings.

src

File name(s) of JavaScript source file(s).

default: ["main.js"]
options: array
example: ["pluginA.js", "pluginB.js", "main.js"]

dist

The distribution JavaScript file name.

default: "main.js"
options: string
example: "script.js"

Notes

Bathe doesn't load the default theme stylesheet "style.css" by default.

Copyright / License

Copyright © 2015-2016 the contributors of the Bathe project under the GPL version 2 or later.

bathe's People

Contributors

ixkaito avatar

Watchers

 avatar  avatar

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.