How to use the superstatic.ignore function in superstatic

To help you get started, we’ve selected a few superstatic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github divshot / divshot-cli / lib / commands / push.js View on Github external
var fs = require('fs');
var path = require('path');
var fstream = require('fstream');
var requestModule = require('request');
var tar = require('tar');
var zlib = require('zlib');
var http = require('http');
var eventStream = require('event-stream');
var fs = require('fs');
var ignoreGlobs = require('superstatic').ignore.globs;
var Ignore = require('fstream-ignore');
var file = require('file');
var through = require('through');
var minimatch = require('minimatch');
var TEN_MB = 10000000;

module.exports = function (app) {
  app.program
    .command('push')
    .description('deploy your app to the specified environment')
    .example('push [environment]')
    .option('-z, --zip ', 'upload a zip file instead of a tar (for testing/diagnostics)', readStream)
    .option('-f, --file ', 'PUT a single file (for testing/diagnostics)', readStream)
    .withAuth()
    .withConfig()
    .handler(function () {
github divshot / divshot-cli / lib / commands / push / deployment.js View on Github external
var _ = require('lodash');
var tarzan = require('tarzan');
var ignoreGlobs = require('superstatic').ignore.globs;

var Deployment = function (types, loadpoint, exclude) {
  this._types = types;
  this._loadpoint = loadpoint;
  this._exclude = exclude;
  
  this._requestOptions = {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/octet-stream',
      Authorization: this._loadpoint.authorization
    }
  };
};

Deployment.prototype.push = function (appRootDir) {

superstatic

A static file server for fancy apps

MIT
Latest version published 1 year ago

Package Health Score

76 / 100
Full package analysis

Popular superstatic functions