Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#!/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,