0.1.0 • Published 7 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-cliornpm 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 devto run the dev server; make changes to.pug,.md,.scss, or.jsfiles and the dev server will hot reloadyarn buildto build the project inside adistdirectory- pages and posts can contain
yamlfront 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
7 years ago