npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

website-deploy

v2.0.0

Published

A simple utility to deploy a static website to [s3-bucket, lambda, ...]

Downloads

314

Readme

website-deploy

A simple utility to deploy a static website to [s3-bucket, lambda, ...]

CircleCI Known Vulnerabilities Codacy Badge Dependabot Status npm npm NpmLicense

Pre-requisite

You need a node v8 or higher to run this utility.

Installation

Install globally

npm install --global website-deploy

Install in project

npm install --save-dev website-deploy

Usage

This utility has following sub-commands:

s3 deploy

This sub-command sync the provided source folder with AWS s3 bucket.

website-deploy s3 [options] <SOURCE_DIR> <S3_BUCKET_NAME>

Options

--delete

This will delete all the files from the AWS s3 bucket which are not present in provided <SOURCE_DIR>

--debug

This will print extra debug statements for more visibility

--profile <profile name>

Provide a AWS credential profile as a credentials.

--region <AWS region>

Provide a AWS region Name. Default is us-east-1.

lambda deploy

This will deploy your application deployable file to AWS lambda.

update

Deploy/update a new function code.

website-deploy lambda update [options] <functionName> <zipFilePath>

--debug

This will print extra debug statements for more visibility

--profile <profile name>

Provide a AWS credential profile as a credentials.

--region <AWS region>

Provide a AWS region Name. Default is us-east-1.

version

Get the versions deployed to function.

website-deploy lambda version [options] <functionName>

--count [count]

This will display the maximum version specified by count. Default is 10.

--debug

This will print extra debug statements for more visibility

--profile <profile name>

Provide a AWS credential profile as a credentials.

--region <AWS region>

Provide a AWS region Name. Default is us-east-1.

build

Create the lambda deploable zip file

website-deploy lambda build [options] <outputZipFileName>

--path <PATH>

A object path to be invalidated. This can be provided multiple times to specify additional paths.

e.g.

website-deploy lambda build --path "/index.js" --path "/lambda.js" myapp.zip

--include-node-modules

Include the production npm packages. This will need package-lock.json

--debug

This will print extra debug statements for more visibility

invalidate-cache

This sub-command will invalidate the cloudfront cache

website-deploy invalidate-cache [options] <CLOUDFRONT_DISTRIBUTION_ID>

Options

--path <PATH>

A object path to be invalidated. This can be provided multiple times to specify additional paths.

e.g.

website-deploy invalidate-cache <CLOUDFRONT_DISTRIBUTION_ID> --path "/index.html" --path "/error.html"

--debug [true|false]

This will print extra debug statements for more visibility

--profile <profile name>

Provide a AWS credential profile as a credentials.

--region <AWS region>

Provide a AWS region Name. Default is us-east-1.

Issue or need a new feature?

If you are experiencing a issue or wanted to add a new feature, please create a github issue here.

Contributing

:star: Star me on GitHub — it helps!

:heart: contribution: Here is contributing guide in deatil.

For impatient here are quick steps:

  • Fork the repository
  • Create Branch in you local repository
  • while(youFinish) { Commit }
  • Squash related commits.
  • Write unit test cases for your work.
  • Check the Build on your local.
  • Raise a Pull Request (aka PR)