0.5.2 • Published 3 months ago

@awsw/core v0.5.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

@awsw/core

A utility to manage and publish a (static) HTML website to S3 and invalidating the CloudFront cache. The @awsw scope also has an extended array of plugins (see Plugins)

Overview

Table of Contents

  1. How to use
  2. Plugins

How to use

Starter Project

You can easily create a new project using @awsw/starter:

npx create-aws-website
pnpm exec create-aws-website

Manual Setup

Install @awsw/core

Configuring your project

You'll need two things to get started: 1. a aws-website-config.yaml file which contains your configuration with, at minimum: 1. BucketName - the name of the bucket in you AWS account 2. BucketRegion - the AWS region the bucket's in 2. add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to your environment variables 1. easiest via a .env file at the project root

Plugins

Here are available plugins:

  • @awsw/preview: Allows previewing the project locally
  • @awsw/git: Uses git to keep track of changes and prevent unnecessary uploads (faster & cheaper)
  • @awsw/minify: Minifies HTML, JS, and CSS optimizing storage and faster delivery
  • @awsw/typescript: Transpiles typescript files to javascript
  • @awsw/scss: Compiles .scss files to css
  • @awsw/encrypt: Allows content encryption to securely deploy secret content on a static website
  • @awsw/cache-bust: Use hashes to avoid stale browser caches (cache-busting)
  • @awsw/sass: Compiles sass/scss into plain css
0.5.2

3 months ago

0.5.1

3 months ago

0.5.0

5 months ago

0.3.0

6 months ago

0.2.0

6 months ago

0.4.0

5 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago