Giter Club home page Giter Club logo

webpack-wordpress-boilerplate's Introduction

Webpack WordPress Theme Boilerplate

About the Project

Boilerplate for building WordPress themes using modern technology.

There is a branch without Docker - no-docker.

Features

  • Modern technology: ES6+ (Babel), Sass
  • Docker: All you need inside a Docker container
  • Webpack: Project bundling with Webpack
  • Imagemin: Image minifying with Imagemin
  • Manifest: Hashes in file names to prevent caching of old resources
  • EditorConfig ΠΈ Prettier: Code formatting on commit

Project Structure

Theme files are in the public directory.
All development takes place in the src directory.

  • fonts
  • img
  • js
  • scss

Build configuration is in the config object in the file webpack.config.js.

Installation and Usage

npm install

To make the pre-commit hook work, you need to run npm install when the project is already initialized as a Git repository.

If the project is initialized as a repository later, you need to additionally execute npm run prepare.

Development

npm run docker:start
npm start

npm run docker:stop

Production

npm run build

Contact

Dmitrii Sviridov
Telegram: slamach
Email: [email protected]

webpack-wordpress-boilerplate's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar slamach avatar

Stargazers

 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.