This client-side JAMstack static website is built with Eleventy, Gulp, PostCSS, and Webpack, and configured for deployment to a CDN via Netlify. It has CI/CD setup - deploy by merging a pull request into the master branch on GitHub.
Sass is linted, transpiled into CSS, post-processed with PostCSS, beautified in development, and minified in production, with source maps. JavaScript is linted, transpiled with Babel, bundled with Webpack, concatenated, and minified in production, with source maps.
heroku --version
heroku/7.42.1 darwin-x64 node-v12.16.2
, skip the next stepFork or clone this repo, install dependencies, add environment variables, and start:
# Clone the repo
git clone https://github.com/Visual-Communications/fair-housing-pledge.git
cd fair-housing-pledge
# Install dependencies
npm install
# Add environment variables:
# See ./config/custom-environment-variables.json
# and ./_docs/environment-variables.md
touch ./.env
# The above line will create a new file from scratch,
# OR you can just save a .env file in the root directory,
# if one was provided to you.
# Serve the local server API to localhost:3000 and watch for changes
npm watch:server
# Build the local client site, serve to localhost:8082, and watch for changes
npm serve:client
# Or, on certain machines (namely Windows):
npm run serve:client
Project documentation files are in the _docs
directory.
If you'd like to contribute, please read the Code of Conduct and Contributing instructions, then fork the repository and use a feature branch. Pull requests are welcome.