Merge pull request #183 from sveltejs/use-polka

Use polka, remove unused dependencies
This commit is contained in:
Rich Harris
2018-03-10 09:54:22 -05:00
committed by GitHub
12 changed files with 13 additions and 6008 deletions

View File

@@ -1,18 +1,14 @@
import * as child_process from 'child_process';
import * as path from 'path';
import * as sander from 'sander';
import express from 'express';
import polka from 'polka';
import cheerio from 'cheerio';
import URL from 'url-parse';
import fetch from 'node-fetch';
import * as ports from 'port-authority';
import { dest } from '../config';
const app = express();
function read_json(file: string) {
return JSON.parse(sander.readFileSync(file, { encoding: 'utf-8' }));
}
const app = polka();
export default async function exporter(export_dir: string) {
const build_dir = dest();

View File

@@ -2,7 +2,6 @@ import * as fs from 'fs';
import * as path from 'path';
import * as child_process from 'child_process';
import sade from 'sade';
import mri from 'mri';
import chalk from 'chalk';
import prettyMs from 'pretty-ms';
import help from './help.md';

View File

@@ -4,7 +4,6 @@ import { ClientRequest, ServerResponse } from 'http';
import mkdirp from 'mkdirp';
import rimraf from 'rimraf';
import serialize from 'serialize-javascript';
import escape_html from 'escape-html';
import { lookup } from './mime';
import { create_routes, templates, create_compilers } from 'sapper/core.js';
import { dest, dev } from '../config';