8000 GitHub - rafl/dev-site: Static site generator for https://dev.maxmind.com.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rafl/dev-site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8000 src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaxMind

Developer Documentation Static Site Generator


Overview

Usage

Minimum Requirements

  • Node 16
  • npm 8.5.5

If you need help installing and/or managing Node and Yarn versions, check out NVM.

Installation

npm install && npm run prepare

Explanation

  • npm install installs the neccessary node modules for development.
  • npm run prepare sets up the linting pre-commit hooks via husky.

Development

Development Server

The development server watches files, rebuilds the site, and reloads the browser when files change.

npm run develop

Static Server

The static server is useful for testing features that might only be relevant to the production build, such as CSP Policies, SRI hashes, Firebase routing rules (301/302 redirects or url rewrites), and Firebase functions.

npm run build && npm run serve

Testing

npm run test             # runs all tests
npm run test:unit        # runs unit tests
npm run test:regressions # runs regression tests

Deployments

This project has two environments: staging environment and production. All preview links are deployed to the staging environment. The production environment can only be deploy to via a PR being merged into main.

Preview Link Generation

All PRs will be assigned a preview link during the CI/CD process. These links are good for 7 days. To regenerate a link, delete the comment and run the CI/CD action again.

Users authenticated with the Firebase CLI can generate an ad-hoc preview link site by running the following from the root of the project.

npm run build && npm run preview

Firebase Functions

Firebase function resources are shared throughout environments. If two PRs have changes to Firebase functions, the deployed functions will be those of the PR whose Firebase - Staging GitHub workflow has run most recently.

About

Static site generator for https://dev.maxmind.com.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 65.0%
  • JavaScript 17.3%
  • SCSS 16.8%
  • Other 0.9%
0