Skip to content
/ bolt-2 Public
forked from stephband/bolt-2

A library of styles classes and event behaviours for building HTML documents

License

Notifications You must be signed in to change notification settings

mbi/bolt-2

 
 

Repository files navigation

Bolt

This repository contains source code and documentation for Bolt:

stephen.band/bolt

Set up

To develop this project you must first have git and Node.js (>15.1, to support ES6 imports) installed. You also need two other dependency repos as well as the bolt repo.

git clone [email protected]:stephband/fn.git
git clone [email protected]:stephband/dom.git
git clone [email protected]:stephband/bolt.git
cd bolt

Clones the fn, dom and bolt repositories to your local file system, and cds into the bolt directory.

npm install

Installs package.json dependencies into node_modules/.

Development

npm run build

Runs all build processes (see below for individual processes) to generate packaged CSS and JS, and servable HTML files.

npm run watch

Watches for changes to *.html.bolt files and builds them to *.html files.

npm run serve

Starts a local server at localhost.

More commands

Published files are built from JS inside modules/ and components/, CSS inside css/ and components/, and also JS modules and styles found inside the git submodules bolt/, fn/ and dom/. Published files are packaged, they have no dependencies.

npm run build-module

Builds JS module from module.js to module.rolled.js.

npm run build-sass

Builds CSS from SASS files. Very little SASS is used in this project, just enough to generate a responsive grid system. If you change the grid you should regenerate the CSS: normally you will not need to run this command.

npm run build-css

Builds and minifies CSS from module.css to bolt.css and bolt.min.css.

npm run build-html

Builds documentation from *.html.bold to *.html files.

About

A library of styles classes and event behaviours for building HTML documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 77.7%
  • JavaScript 20.0%
  • HTML 2.0%
  • Makefile 0.3%