[REF] move app and compiler code around

This commit is contained in:
Géry Debongnie
2021-11-13 09:02:34 +01:00
committed by Samuel Degueldre
parent 06ea6d2490
commit a187a376a0
12 changed files with 116 additions and 113 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { TemplateSet } from "../../src/compiler/template_helpers";
import { TemplateSet } from "../../src/app/template_helpers";
import { mount } from "../../src/blockdom";
import { makeTestFixture, renderToBdom, renderToString, snapshotEverything } from "../helpers";
+1 -1
View File
@@ -1,4 +1,4 @@
import { TemplateSet } from "../../src/compiler/template_helpers";
import { TemplateSet } from "../../src/app/template_helpers";
import { mount } from "../../src/blockdom";
import { renderToBdom, snapshotEverything } from "../helpers";
+1 -1
View File
@@ -1,4 +1,4 @@
import { TemplateSet } from "../../src/compiler/template_helpers";
import { TemplateSet } from "../../src/app/template_helpers";
import { renderToString, TestContext, compile } from "../helpers";
// -----------------------------------------------------------------------------
+1 -1
View File
@@ -1,6 +1,6 @@
import { makeTestFixture, snapshotApp } from "../helpers";
import { Component, xml } from "../../src";
import { App, DEV_MSG } from "../../src/app";
import { App, DEV_MSG } from "../../src/app/app";
import { validateProps } from "../../src/component/props_validation";
let fixture: HTMLElement;
+4 -3
View File
@@ -14,8 +14,9 @@ import {
} from "../src";
import { BDom } from "../src/blockdom";
import { blockDom } from "../src";
import { CompileOptions, compileTemplate, Template } from "../src/compiler/code_generator";
import { globalTemplates, TemplateSet, UTILS } from "../src/compiler/template_helpers";
import { compile as compileTemplate, Template } from "../src/compiler";
import { CodeGenOptions } from "../src/compiler/code_generator";
import { globalTemplates, TemplateSet, UTILS } from "../src/app/template_helpers";
import { xml } from "../src/tags";
const mount = blockDom.mount;
@@ -36,7 +37,7 @@ export function makeTestFixture() {
return fixture;
}
export function snapshotTemplateCode(template: string, options?: CompileOptions) {
export function snapshotTemplateCode(template: string, options?: CodeGenOptions) {
expect(compileTemplate(template, options).toString()).toMatchSnapshot();
}