Socket
Book a DemoInstallSign in
Socket

statick

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statick

put a static app in the cloud

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

WIP

This is a Node.js module that takes a folder containing your static app, and hosts it in the selected provider's cloud. Currently only works with provider: aws, and hosts from an S3 bucket endpoint.

Compatible with any version since LTS:Boron (v6.9.0)

Roadmap:

  • AWS: Attach S3 endpoint to a cloudfront distribution
  • AWS: Associate a Route53 hosted zone with (bucket|distribution)
  • Azure

CLI

# currently only accepts a config.yml (or .json) file
>> statick -c config.yml

or node API

import statick from "statick"
import config from "statick.json"

statick(config);

config.yml

provider: aws
domain: statick.io
path: ./public
exclude:
  - deleteme.html

aws:
  region: eu-west-1
  s3:
    IndexDocument: myIndex.html

options

keydescriptiondefaulttype
provider*one of; "aws"-string
domain*name of the uploaded-to storage-string
path*path of the folder the static app resides in-string
aws.regionglobal region of the AWS clients"us-east-1"string
aws.credentialsof the shape { accessKeyId, secretAccessKey }-object
aws.s3.IndexDocumententry .html to your bucket (basename)"index.html"string
aws.s3.ErrorDocument.html to redirect to (basename)IndexDocumentstring
excludeRegExp patterns to test against each file (put quotes if using yml)-array

* required

Notes

  • Constraints on S3 bucket name

    • The bucket name must be between 3 and 63 characters long (inclusive).
    • The bucket name must contain only lowercase characters, numbers, periods, underscores, and dashes. periods, underscores, and dashes.
    • The bucket name must not contain adjacent periods.
  • Conflicting conditional operation in progress error indicates the S3 bucket name is currently unavailable. Trying again in a couple minutes works.

Reading

  • Managing Access Keys for Your AWS Account

  • Best Practices for Managing AWS Access Keys

  • Domains That You Can Register with Route 53

  • Using CloudFront with Amazon S3

Keywords

static

FAQs

Package last updated on 14 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.