A static site builder for the Dayton Web Developers website.
- Requires node/npm (installation instruction)
- Install Gulp globally (
npm install -g gulp
) - Install NPM packages from the root of the project (
npm install
)
Run the following commands from withing the project:
gulp
- Runs a dev build with a BrowserSync server for developmentgulp serve
- Runs the server without a buildgulp dist
- Runs a production build
We are hosting with Divshot. To deploy, signup for an account on Divshot and make sure you have been added to the DaytonWebDev team.
npm install -g divshot-cli
- Install the Divshot CLI tool globallydivshot login
- This will authorize your account with the CLI tool
Run these commands from within the project root.
divshot push
- Deploy to the dev environment: http://development.daytonwebdev.divshot.io/
- Copy any one of the sample posts files in
src/content
and give the new file any name you wish - Files with a
.md
extension will be processed with Markdown - Files with a
.html
extension will be rendered as is - The meta-data at the top of the sample files is YAML front-matter.
- Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
- Prefix commit messages with one of (ie. "feat: add new slider widget"):
- feat: When adding a feature/improvement
- fix: When fixing code
- refactor: When refactoring code
- docs: When adding/updating documentation
- test: When creating/updating tests
- style: When making code style changes
- chore: When doing anything else not directly related to code (ie. changes to your build)
- CSS Coding Standards
- lodash A JavaScript utility library delivering consistency, modularity, performance, & extras.
- require-dir Node helper to require() directories. The directory's files are examined, and each one that can be require()'d is require()'d and returned as part of a hash from that file's basename to its exported contents.
- run-sequence Runs a sequence of gulp tasks in the specified order. This function is designed to solve the situation where you have defined run-order, but choose not to or cannot use dependencies.