Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani committed Feb 7, 2024
1 parent 0f5faa5 commit 547fd74
Show file tree
Hide file tree
Showing 10 changed files with 86 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ for (const lang of languages) {
// get to the lit-html template tag
const renderMethod = (decl as ClassDeclaration).getMethod('render')!;
const statement = renderMethod.node.body!.statements[0];

assert.equal(typescript.isReturnStatement(statement), true);
const returnStatement = statement as ts.ReturnStatement;
assert.ok(returnStatement.expression);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@lit-internal/test-basic-templates",
"dependencies": {
"lit": "^3.0.0",
"lit-html": "^3.0.0",
"lit-element": "^4.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

import {html} from 'lit-element';

export const templateA = html`<span>A</span>`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

import {html} from 'lit-html';

export const templateA = html`<span>A</span>`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

import {html} from 'lit';

export const templateA = html`<span>A</span>`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@lit-internal/test-basic-templates",
"dependencies": {
"lit": "^3.0.0",
"lit-html": "^3.0.0",
"lit-element": "^4.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

import {html} from 'lit-element';

export const templateA = html`<span>A</span>`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

import {html} from 'lit-html';

export const templateA = html`<span>A</span>`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @license
* Copyright 2024 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

import {html} from 'lit';

export const templateA = html`<span>A</span>`;
16 changes: 16 additions & 0 deletions packages/labs/analyzer/test-files/ts/basic-templates/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "es2021",
"lib": ["es2021", "DOM"],
"module": "ES2020",
"rootDir": "./src",
"outDir": "./out",
"moduleResolution": "node",
"experimentalDecorators": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"noEmit": true
},
"include": ["src/**/*.ts"],
"exclude": []
}

0 comments on commit 547fd74

Please sign in to comment.