mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
convert to typescript
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import chalk from 'chalk';
|
||||
import { create_app, create_assets, create_routes, create_templates } from 'sapper/core.js';
|
||||
import { create_app, create_assets, create_routes, templates } from 'sapper/core.js';
|
||||
import { dest } from '../config.js';
|
||||
|
||||
function deferred() {
|
||||
@@ -84,7 +84,7 @@ export default function create_watcher({ compilers, dev, entry, src, onroutes })
|
||||
});
|
||||
|
||||
watch_files('templates/**.html', () => {
|
||||
create_templates();
|
||||
templates.create_templates();
|
||||
// TODO reload current page?
|
||||
});
|
||||
|
||||
@@ -5,8 +5,8 @@ import rimraf from 'rimraf';
|
||||
import serialize from 'serialize-javascript';
|
||||
import escape_html from 'escape-html';
|
||||
import { create_routes, templates, create_compilers, create_assets } from 'sapper/core.js';
|
||||
import create_watcher from './create_watcher.js';
|
||||
import { dest, dev, entry, src } from '../config.js';
|
||||
import create_watcher from './create_watcher';
|
||||
import { dest, dev, entry, src } from '../config';
|
||||
|
||||
function connect_dev() {
|
||||
mkdirp.sync(dest);
|
||||
Reference in New Issue
Block a user