Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack-frontline

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-frontline

A fork of webpack-deploy: A Collection of useful utilities for deploying (not only) Webpack apps

  • 0.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Webpack Frontline (a fork of webpack-deploy)

Collection of useful utilities for deploying (not only) webpack single-page apps to a Frontline server.

Frontline Deploys

When you use this script to deploy to a server that accepts frontline deploys.

System Design

Installation

cd $YOUR_PROJECT
npm install --save-dev webpack-frontline

# OR if you use yarn:

yarn add webpack-frontline --dev

Configuration

Copy deploy-config-example.js and secrets-example.js into the root of your project and fit them to your needs. Also make sure you have ./node_modules/.bin in your $PATH.

Using with frontline

Build your Webpack project and run deploy-frontline.

yarn deploy-frontline -- --help to view available options.

By default, deploy-frontline will use the last git commit sha as its revision. It will also use development as its default branch-name.

** Branches **

  • --env is NOT SET, it will deploy to a branch named development.
  • --env is set, it will use its current branch name.
  • --branch is set, it will use the passed in argument as the branch.

** Revisions **

  • --rev is NOT SET, it will use the current git revision sha as its revision id.
  • --rev is set, it will use the passed in argument as its revision id.

Commands

  • deploy-frontline Frontline server upload of built index.html
  • deploy-s3 AWS S3 asset upload of build files.
  • deploy-gcloud Google Clould Storage asset upload of build files.

Other

Why Bash with Gulp?

Gulp is great for building, Bash for running tasks.

License

MIT

Prettier config

{
  // Autoformat files on save
  "autoformat": true,

  // Only attempt to format files with extensions set there
  "extensions": ["js"],

  // Fit code within this line limit
  "printWidth": 80,

  // Number of spaces it should use per tab
  "tabWidth": 2,

  // If true, will use single instead of double quotes
  "singleQuote": true,

  // Controls the printing of trailing commas wherever possible
  "trailingComma": "all",

  // Controls the printing of spaces inside array and objects
  "bracketSpacing": true
}

Keywords

FAQs

Package last updated on 08 Nov 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc