Skip to content

About

Makefile for creating Kon-Tiki static web sites

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

55 Commits

Folders and files

Repository files navigation

Avatar

Build Status Code Scanning Status

Knut Haugland

Knut Haugland is a Makefile for creating Kon-Tiki static web sites. It provides utility targets for building, deploying, and managing the infrastructure of the static web sites.

Have a look at examples/ for example projects of how Knut Haugland can be used.

Screenshot of example static-content web site

Screenshot of example static-redirect web site

Installation

  1. Download src/Makefile-knut-haugland as the Makefile of your project: curl https://raw.githubusercontent.com/cliffano/knut-haugland/main/src/Makefile-knut-haugland -o Makefile
  2. Create configuration file knut-haugland.yml with properties described in Configuration section
  3. Run the available Makefile targets described in Usage section

Configuration

Create KnutHaugland configuration file called knut-haugland.yml with contains the following properties:

Property Description Example
aws_region AWS region code ap-southeast-2
bucket_name S3 bucket name for the static web site knuthauglandexample.example.com

Usage

The following targets are available:

Target Description
ci CI target to be executed by CI/CD tool, end to end build of the static web site
stage Ensure stage directory exists
clean Remove all temporary (staged, generated, cached) files
deps Retrieve package dependencies using Bob
update-to-latest Update Makefile to the latest version on origin's main branch
update-to-version Update Makefile to the version defined in TARGET_KNUT_HAUGLAND_VERSION parameter
build Build the static web site using AE86
deploy Sends the built static web site code to AWS S3 bucket
publish A convenient target for running: clean deps init build deploy
infra-<init destroy

Colophon

Related Projects:

About

Makefile for creating Kon-Tiki static web sites

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages