Skip to content

FistMeNaruto/gravnd-zero

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Gravnd Zero

Minimal theme for Grav CMS. No dependencies, improved directory structure, optimized build process and freedom to create.

Features

  • Laravel Mix Webpack wrapper allowing the asset pipline flow smoothly
  • Browsersync Syncs your devices and refreshes the browsers everytime you make a change

Installation

$ cd path/to/grav
$ (php) bin/gpm install gravnd-zero
$ cd /user/themes/gravnd-zero
$ yarn

Grav Admin Plugin

Log in to admin panel go to Themes > Add search for Gravnd Zero and click Install. After that, Activate the theme.

Using this method you will have to manually copy files from user/themes/gravnd-zero/_demo/pages to user/pages

Manual

$ cd path/to/grav/user/themes
$ git clone https://github.com/fistmenaruto/gravnd-zero.git
$ cd gravnd-zero
$ yarn

Activate theme in admin panel or change theme to gravnd-zero in user/config/system.yaml

Using this method you will have to manually copy files from user/themes/gravnd-zero/_demo/pages to user/pages

Usage

  1. Start your dev server

  2. Run yarn/npm script

# Compile .scss, .js, .twig files and add sourcemaps.
$ yarn dev

# Same as dev but watches files for changes and runs Browsersync.
# Once files are saved, they are recompiled and Browsersyn refreshes the browsers.
$ yarn watch

# Prepares the files for production minifying them and removing sourcemaps.
$ yarn production

Before starting I recommend to review settings in webpack.mix.js

Contribute

See CONTRIBUTING.md

Thank you

To Robbin Johansson and his Haywire Grav theme, on which this project is based on.