How to use surge - 1 common examples

To help you get started, we’ve selected a few surge 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 abecms / abecms / src / index.js View on Github external
#!/usr/bin/env node
import {initSite} from './cli/cms/operations'
import plugins from './cli/extend/plugins'
import config from './cli/core/config/config'
import {exec} from 'child_process'
import {spawn} from 'child_process'
import path from 'path'
import program from 'commander'
import pkg from '../package'
import inquirer from 'inquirer'
import clc from 'cli-color'
import Surge from 'surge'

const surge = new Surge()
const hooks = {}
let deployPlugins = []
let websiteName = null
let dir = null

const deployWebsite = function() {
  const create = new initSite()
  create.askDeploymentQuestions().then(function(answers) {
    if (answers.deploy) {
      let json = null
      if (answers.which === "on surge (it's free !)") {
        deployPlugins.push('abecms/abe-deployer-surge')
        json = {
          deployers: {
            surge: {
              active: true,

surge

Static Web Publishing

ISC
Latest version published 2 months ago

Package Health Score

70 / 100
Full package analysis

Popular surge functions