Skip to content

Using the https://underscores.me/ theme to create a base for using ES6 and Sass Atomic Design all compiled with webpack.

License

Notifications You must be signed in to change notification settings

PocketNinjaDesign/wp-theme-es6-sass-webpack-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-theme-es6-sass-webpack-boilerplate

Using the foundation of the https://underscores.me/ theme here is some extra to include ES6 and Sass Atomic Design all compiled with webpack.

  1. Installation
  2. Usage
  3. Testing
    • Lint
    • Jest

Installation

Before Use make sure Sass is installed correctly with Ruby https://sass-lang.com/install

Okay? good now this:

clone the project into your theme folder of the wordpress site or separate so you can copy the files into your own folder name if you want.

$ npm install

Step 1:

The theme name is called "Front End Structure" if you want to change it to something else then as per the instructions found on https://github.com/automattic/_s

So if you wanted to name it to "Whatever You Want"

  1. Search for: 'front-end-structure' and replace with: 'whatever-you-want'
  2. Search for: front_end_structure_ and replace with: whatever_you_want_
  3. Search for: Text Domain: front-end-structure and replace with: Text Domain: whatever-you-want in style.css.
  4. Search for: Front_End_Structure and replace with: Whatever_You_Want
  5. Search for: front-end-structure- and replace with: whatever-you-want-

Step 2:

Don't forget to edit the comments in /sass/style.scss

Usage

To watch your scss and js files:

$ npm run watch

The js is saved to the path "/js/index.js" and the scss is saved to the default file "/style.css"

Testing

Lint

eslint is added to the project. In order to run type the following in the cmd line

$ npm run lint

The eslint config file "eslintrc.json" extends Airbnb and ignores line endings.

Jest

Documentation for Jest can be found here To run the tests

$ npm test

This runs all js in the "test" folder which has an example of a basic test for es6 and for jquery.

About

Using the https://underscores.me/ theme to create a base for using ES6 and Sass Atomic Design all compiled with webpack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published