Code Monkey home page Code Monkey logo

cvn's Introduction

Wordpress Starter Theme with Underscores, Bootstrap 4 (with SASS), and Webpack 4

This is a Wordpress Starter Theme initially based on Underscores, packaged with Bootstrap 4 (with SASS), and built with Webpack 4.

Prerequisites

You will need the latest version of Node.js (https://nodejs.org/) to get started.

Prerequisites

From your projects root run:

npm install

Config (src/build/config-default.json)

Includes a config-default.json file. You can make changes directly to this file. However, if you are working in a team environment you can also duplicate this file and name it config-local.json. The config-local.json file is ignored by git so that each environment can use a different configuration with the same git repo.

During the build process a check is done to see if a config-local.json file exists. If config-local.json exists, the configuration will be loaded. If it does not exist, config-default.json will be used.

Currently, only the revisioning and local dev server url are configured here.

Building

npm run dev

Will compile scss and js with sourcemaps and copy from "src" to "dist."

npm run start

Will launch browsersync and watch changes in php, scss and js files. Note: Be sure to change your local dev url in src/build/config-default.json

npm run build

Will minify all the files and remove sourcemaps and copy to the "dist" directory. Images in assets will be optimized. Main.js and Main.css will be asset hashed for cachebusting if set. Note: Depending on how many images you have it may take awhile on first run.

By default revisioning/cachebusting is set to false. If you want it go to src/build/config-default.json' and set to true.

Built With

Inspired By

Inpspired by other starter themes out there such as Roots.io (http://roots.io/) and FoundationPress (https://foundationpress.olefredrik.com/). It may be inspired by other open source projects down the road. In the spirit of open source, if you find this project useful, do with it what you will.

cvn's People

Contributors

amusso01 avatar

Watchers

 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.