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

web-deploy-cli

v1.2.1

Published

Easier way to deploy for web

Downloads

3

Readme

Build Status npm version

Web Deploy CLI

This package makes it easy to deploy static web applications. It does this by exposing a small set of easy-to-use CLI commands and arguments to quickly deploy your entire project.

Currently it supports the following cloud deployment service:

  • AWS S3 Static Website Hosting
  • Netlify

Table of Contents

  1. Dependencies
  2. Installation
  3. CLI Commands
  4. Release Notes
  5. Contribution
  6. More Information
  7. License

Dependencies

Node

This package requires Node >= 8.0**.

You can install Node.js via the package provided on their site. Installing node will also install the Node Package Manager (NPM) to download and install node modules.

Installation

Installing Build Tools as a global module will give you command-line access to all tasks available.

You can install globally by typing the following in your terminal:

npm install web-deploy-cli  -g

To verified that it is successfully installed, run this:

web-deploy --version

Deploy to AWS S3

You can use this command to deploy your static web application to AWS S3 bucket:

web-deploy --args=<values>

Arguments allowed are:

| Argument | Type | Description | |--------|--------|--------| | type | String | The type of deployment, case-insensitive, value should be set to aws | bucket | String | The bucket name for AWS S3 | profile| String? | The profile name for AWS credentials (if nothing is passed, profile will be set to default) | dir| String? | The absolute path to your project directory (if nothing is passed, it will use the current directory of the terminal process) | folder | String? | Specify the folder that contains the built static web application i.e. build

Example usage of arguments:

web-deploy --type=aws --bucket=john-doe-bucket --dir=/Users/johndoe/Projects/hello_world --folder=build

Deploy to Netlify

Prequisite

You will need to get an access token from your Netlify account. See here for more information.

Create a new file .netlify.wdc.yml under your project's root directory with this content:

accessToken: <enter_your_access_token_here>

You can use this command to deploy your static web application to Netlify:

web-deploy --args=<values>

Arguments allowed are:

| Argument | Type | Description | |--------|--------|--------| | type | String | The type of deployment, case-insensitive, value should be set to netlify | siteId | String | The site's ID (API ID, can be found under site settings in Netlify) | dir| String? | The absolute path to your project directory (if nothing is passed, it will use the current directory of the terminal process) | folder | String? | Specify the folder that contains the built static web application i.e. build

Example usage of arguments:

web-deploy --type=netlify --siteId=12345678 --dir=/Users/johndoe/Projects/hello_world --folder=build

Release Notes

Please refer to the Github releases section for the changelog

Contribution

Getting Started

Install dependencies:

yarn install

Run examples:

yarn start

Run unit tests:

yarn unit

Run integration tests:

yarn integration

Watch unit tests:

yarn test:unit

Watch unit integration:

yarn test:integration

Watch all tests:

yarn test

More Information

Small Print

Author: Jazz Peh <[email protected]> © 2019

License: MIT - do anything with the code, but don't blame me if it does not work.

Support: if you find any problems with this module, email / tweet / open issue on Github

MIT License

Copyright (c) 2019 Jazz Peh (twitter: @jazzpeh) Licensed under the MIT license.