Skip to content

pie/retain-theme

Repository files navigation

Retain Theme

This is the retain-theme, a custom WordPress theme built with PHP, JavaScript and SCSS.

Table of Contents

Requirements

Ensure you have the following installed on your system:

  • Node.js (v14 or higher recommended)
  • npm (comes with Node.js)
  • Sass (Dart Sass)

Installation

  1. Clone the repository:
    git clone <repository-url>
    cd retain-theme
    
  2. Install dependencies
    npm install

Development

Build

To build the theme, run:

npm run build

This will:

  • Compile SCSS to CSS and output it to inc/css/bundle.css
  • Compile the JavaScript files and output them to inc/js/bundle.js

Watch

To watch for changes and automatically compile them, run:

npm run watch

This will watch for changes in the SCSS files and compile them to inc/css/bundle.css in real-time.

Folder Structure

The theme is structured as follows:

  • src/js/: Contains JavaScript source files.
  • src/sass/: Contains SCSS source files.
  • inc/js/: Compiled JavaScript output.
  • inc/css/: Compiled CSS output.

Notes

  • The Webpack configuration is located in webpack.config.js.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •