diff --git a/package.json b/package.json index e483527..af5c5f8 100644 --- a/package.json +++ b/package.json @@ -22,17 +22,12 @@ "chalk": "^2.3.0", "cheerio": "^1.0.0-rc.2", "chokidar": "^1.7.0", - "code-frame": "^5.0.0", - "escape-html": "^1.0.3", "glob": "^7.1.2", - "locate-character": "^2.0.5", "mkdirp": "^0.5.1", - "mri": "^1.1.0", "node-fetch": "^1.7.3", "polka": "^0.3.4", "port-authority": "^1.0.0", "pretty-ms": "^3.1.0", - "relative": "^3.0.2", "require-relative": "^0.8.7", "rimraf": "^2.6.2", "sade": "^1.4.0", @@ -50,7 +45,6 @@ "@types/mkdirp": "^0.5.2", "@types/rimraf": "^2.0.2", "compression": "^1.7.1", - "electron": "^1.8.2", "eslint": "^4.13.1", "eslint-plugin-import": "^2.8.0", "get-port": "^3.2.0", diff --git a/src/cli/export.ts b/src/cli/export.ts index 68eaafc..6dcf9d3 100644 --- a/src/cli/export.ts +++ b/src/cli/export.ts @@ -10,10 +10,6 @@ import { dest } from '../config'; const app = polka(); -function read_json(file: string) { - return JSON.parse(sander.readFileSync(file, { encoding: 'utf-8' })); -} - export default async function exporter(export_dir: string) { const build_dir = dest(); diff --git a/src/cli/index.ts b/src/cli/index.ts index c8ad11d..20ab237 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -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'; diff --git a/src/middleware/index.ts b/src/middleware/index.ts index 6313f22..0c95bbb 100644 --- a/src/middleware/index.ts +++ b/src/middleware/index.ts @@ -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';