GithubHelp home page GithubHelp logo

pearcake / monday Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 183 KB

Monday is a simple Wordpress starter theme with Webpack and Babel

License: MIT License

JavaScript 22.66% PHP 77.19% CSS 0.15%
starter-theme wordpress theme sass webpack scss

monday's Introduction

Monday

Simple Wordpress starter theme with Webpack and ES5, ES6 and ES7 JS support (transpiled by Babel and polyfilled in IE via polyfill.io CDN)

Requirements

This project requires Node.js v8.x.x to be installed on your machine. Please be aware that you might encounter problems with the installation if you are using the most current Node version (bleeding edge) with all the latest features.

Quickstart

1. Clone the repository and install with npm

$ cd my-wordpress-folder/wp-content/themes/
$ git clone https://github.com/pearcake/monday.git
$ cd monday
$ npm install

2. Configuration

Browsersync setup

Create livereload.json in your theme folder (added to .gitignore by default) with "url" and "port" parameters that will be used to proxy your local Wordpress server during development. Example:

{
    "url": "http://localhost/wordpress",
    "port": 3000
}

Theme textdomain

If you want to use custom textdomain you can change it globally on line 5 in functions.php:

define('THEME_TEXTDOMAIN', 'yourcustomtextdomain');

and use it like this:

<?php _e('Text that needs translation', THEME_TEXTDOMAIN); ?>

3. Get started

$ npm run watch

4. Compile assets for production

When building for production, the CSS and JS will be minified. To compile and minify the assets in your /assets/dist folder, run

$ npm run build

monday's People

Contributors

pearcake avatar

Watchers

James Cloos 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.