README
Snapgit.com
This site uses Gatsby to generate a static site hosted on GH Pages.
Local Development
Dependencies
This project depends on Node (^5.10.1
) and NPM (^3.8.6
).
Install
Run npm i
to install all dependencies.
Development
Run npm start
to start webpack with file watching and a server.
The site will be available at http://localhost:8000
.
Scripts
Linting
This project uses CSS and JS linting. To run both linters:
npm run lint
For CSS linting, run:
npm run lint:css
For JS linting, run:
npm run lint:js
Build
To generate a local build of the static site, run:
npm run build
Deploy
To deploy a local build of the static site to GH pages (must have permissions), run:
npm run deploy
Publish
To generate a local build of the static site, and publish it to GH Pages, run:
npm run publish