0.1.0 • Published 6 years ago
spindle-cli v0.1.0
spindle: minimal site building with a modern toolset
This project is (currently) a proof of concept. This is an attempt to see how powerful a static site generator can be created on top of the modern JavaScript toolset, namely parcel, an amazing build tool, and commander and inquirer.
instructions
- install spindle globally:
yarn global add spindle-cli
ornpm install -g spindle-cli
- all of the following commands are available and should be run at the project root:
- creating a new site:
spin site [name]
(after site is created, install dependencies in new site directory) - creating a new post:
spin post [name]
this creates a post pug file and it's corresponding markdown file - creating a new page:
spin page [name]
- creating a new site:
yarn dev
to run the dev server; make changes to.pug
,.md
,.scss
, or.js
files and the dev server will hot reloadyarn build
to build the project inside adist
directory- pages and posts can contain
yaml
front matter, the functionality for this was worked into a separate custom pug plugin for parcel (no need to install this separately, just linking to it here for reference): parcel-plugin-pug-front-matter
0.1.0
6 years ago