From 2ca0050f0f674e81c451801f5c27641e97679182 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 28 Apr 2018 20:03:42 -0400 Subject: [PATCH] fix gitignore, move ssr files --- .gitignore | 34 ++++++++----------- src/compile/Compiler.ts | 2 +- src/compile/nodes/AwaitBlock.ts | 2 +- .../{server-side-rendering => ssr}/index.ts | 0 src/index.ts | 2 +- 5 files changed, 17 insertions(+), 23 deletions(-) rename src/compile/{server-side-rendering => ssr}/index.ts (100%) diff --git a/.gitignore b/.gitignore index 8994538e2c..ed21efb721 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,16 @@ .DS_Store -node_modules -compiler -ssr -shared.js -scratch -!test/compiler -!test/ssr .nyc_output -coverage -coverage.lcov -test/sourcemaps/samples/*/output.js -test/sourcemaps/samples/*/output.js.map -_actual.* -_actual-v2.* -_actual-bundle.* -src/compile/shared.ts -package-lock.json -.idea/ -*.iml -store.umd.js -yarn-error.log \ No newline at end of file +node_modules +/compiler/ +/ssr/ +/shared.js +/scratch/ +/coverage/ +/coverage.lcov/ +/test/sourcemaps/samples/*/output.js +/test/sourcemaps/samples/*/output.js.map +/src/compile/shared.ts +/package-lock.json +/store.umd.js +/yarn-error.log +_actual*.* \ No newline at end of file diff --git a/src/compile/Compiler.ts b/src/compile/Compiler.ts index 6d0f614598..da5207de39 100644 --- a/src/compile/Compiler.ts +++ b/src/compile/Compiler.ts @@ -19,7 +19,7 @@ import { test } from '../config'; import Fragment from './nodes/Fragment'; import shared from './shared'; import { DomTarget } from './dom/index'; -import { SsrTarget } from './server-side-rendering/index'; +import { SsrTarget } from './ssr/index'; import { Node, GenerateOptions, ShorthandImport, Ast, CompileOptions, CustomElementOptions } from '../interfaces'; interface Computation { diff --git a/src/compile/nodes/AwaitBlock.ts b/src/compile/nodes/AwaitBlock.ts index bac863697c..87e1f7a850 100644 --- a/src/compile/nodes/AwaitBlock.ts +++ b/src/compile/nodes/AwaitBlock.ts @@ -6,7 +6,7 @@ import ThenBlock from './ThenBlock'; import CatchBlock from './CatchBlock'; import createDebuggingComment from '../../utils/createDebuggingComment'; import Expression from './shared/Expression'; -import { SsrTarget } from '../server-side-rendering'; +import { SsrTarget } from '../ssr'; export default class AwaitBlock extends Node { expression: Expression; diff --git a/src/compile/server-side-rendering/index.ts b/src/compile/ssr/index.ts similarity index 100% rename from src/compile/server-side-rendering/index.ts rename to src/compile/ssr/index.ts diff --git a/src/index.ts b/src/index.ts index ea4ee407dd..6bef0581bd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import parse from './parse/index'; import validate from './validate/index'; import generate from './compile/dom/index'; -import generateSSR from './compile/server-side-rendering/index'; +import generateSSR from './compile/ssr/index'; import Stats from './Stats'; import { assign } from './shared/index.js'; import Stylesheet from './css/Stylesheet';