t1to98 / safepaths-website

Repository consisting the code for the Safepaths-website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Safe Paths Netlify Status Prerequisite Prerequisite

A new look for https://safepaths.mit.edu

πŸ“œ About

  • Pages are authored in HTML or, optionally, Twig and live in the src/pages directory.
  • Twig templates and partials live in src/templates.
  • Site data files live in src/data. Drop any .json, .yml, or .js file exporting a function into this directory and access the resulting data in Twig templates using {{ site.data['path/to/file.ext'] }}. Powered by Puppy.
  • Styles are authored with Sass and live in src/scss.
  • Javascripts live in src/js. They are transipiled at build time with Babel so that they can take advantage of modern JS syntax
  • Any files in the public directory are copied to the web root recursively at build time.
  • Static assets are bundled at build time using Webpack.
  • All source assets are pulled together with Gulp and used to generate a static site in the dist directory.

✨ Install

# Install Node & NPM with [NVM](https://github.com/nvm-sh/nvm)
nvm install

# Install project dependencies
npm install

πŸ‘©β€πŸ’» Usage

Development

# Start a local dev server
npm start

# Check for JS/SCSS style violations prior to commit
npm run lint

# Fix the fixable linter violations
npm run lint:fix

# Format code with Prettier
npm run format

Production

# Build for production
npm run build

# Serve locally using `serve`
npx serve dist

Deployment

This site is hosted on Netlify.

Deployments to https://safepaths.netlify.com/ are triggered automatically by commits to the master branch via their GitHub App.


A Puppy 🐢 powered project

About

Repository consisting the code for the Safepaths-website


Languages

Language:CSS 49.9%Language:HTML 35.0%Language:JavaScript 15.1%