Skip to content

djlotus/Static-Site-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static-Site-Generator

Static site generator for vendor sites.


Requirements

In order to use this static site generator you must have installed:

Ruby

Node

We use Node.js to manage our package dependencies. Make have the latest version of [Node.js] (https://nodejs.org/en/)


Setup

Clone the Repo or download the .zip. From the terminal (or command line in Windows) navigate to your site's directory.

$ cd My/Site/Directory

Initiate Project

$ npm init

Build

Run install to download and install dependencies

$ npm install

Run build to build site

$ npm run build

Tasks

Once the site is built you can begin editing. We have a default watch task which will perform 3 seperate tasks for compiling the different parts of the site. Alternatively, you can perform individual tasks depending on which part of the site you wish to compile.

Watch

This task will launch a browser window via browser-sync and watch for any changes to files and compile all files.

$ npm run watch

HTML

To build the HTML pages we have setup a task called html. This task will compile the templates and includes into static HTML pages.

$ npm run html

Sass

To compile the stylesheets we have setup a task called sass. This task will compile the .scss files into nested CSS and add vendor prefixes.

$ npm run sass

Scripts

To compile scripts we have setup a task called scripts. This task watches for updates to our script files and concatenates them to dist/js/scripts.js .

$ npm run scripts

Components to add:

  • Tabs
  • Accordions
  • Block Grid
  • Modals
  • Number Counter
  • Contact form
  • Wordpress feed
  • Testimonials
  • Profiles
  • Full width CTA
  • Heading styles

About

Static site generator for vendor sites

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors