Skip to content

Commit

Permalink
Rename index.ts to lit-html.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani committed Aug 21, 2018
1 parent 4937ff4 commit b0001b9
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Expand Up @@ -6,14 +6,14 @@
/tools/lib/

# Compiler output
/index.d.ts
/index.js
/index.js.map
/lit-html.d.ts
/lit-html.js
/lit-html.js.map
/test/**/*.d.ts
/test/**/*.js
/test/**/*.js.map

/index.bundled.js
/lit-html.bundled.js

yarn.lock

Expand Down
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -4,23 +4,23 @@
"description": "HTML template literals in JavaScript",
"license": "BSD-3-Clause",
"repository": "Polymer/lit-html",
"main": "index.js",
"module": "index.js",
"main": "lit-html.js",
"module": "lit-html.js",
"directories": {
"test": "test"
},
"files": [
"/index.js",
"/index.js.map",
"/index.d.ts",
"/lit-html.js",
"/lit-html.js.map",
"/lit-html.d.ts",
"/lib/",
"/directives/",
"/src/",
"!/src/test/"
],
"scripts": {
"build": "tsc",
"checksize": "rollup -c ; rm index.bundled.js",
"checksize": "rollup -c ; rm lit-html.bundled.js",
"gen-docs": "typedoc --readme none --mode modules --excludeNotExported --excludePrivate --exclude **/*_test.ts --out ./docs/api ./src",
"test": "npm run build && npm run lint && wct --npm",
"quicktest": "wct -l chrome -p --npm",
Expand All @@ -45,6 +45,6 @@
"wct-browser-legacy": "^1.0.1",
"web-component-tester": "^6.8.0"
},
"typings": "index.d.ts",
"typings": "lit-html.d.ts",
"dependencies": {}
}
4 changes: 2 additions & 2 deletions rollup.config.js
Expand Up @@ -16,9 +16,9 @@ import filesize from 'rollup-plugin-filesize';
import {terser} from 'rollup-plugin-terser';

export default {
input: 'index.js',
input: 'lit-html.js',
output: {
file: 'index.bundled.js',
file: 'lit-html.bundled.js',
format: 'esm',
},
onwarn(warning) {
Expand Down
2 changes: 1 addition & 1 deletion src/directives/async-append.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {directive, Directive, NodePart} from '../index.js';
import {directive, Directive, NodePart} from '../lit-html.js';

/**
* A directive that renders the items of an async iterable[1], appending new
Expand Down
2 changes: 1 addition & 1 deletion src/directives/async-replace.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {directive, Directive, NodePart} from '../index.js';
import {directive, Directive, NodePart} from '../lit-html.js';

/**
* A directive that renders the items of an async iterable[1], replacing
Expand Down
2 changes: 1 addition & 1 deletion src/directives/repeat.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {directive, Directive, NodePart, removeNodes, reparentNodes} from '../index.js';
import {directive, Directive, NodePart, removeNodes, reparentNodes} from '../lit-html.js';

export type KeyFn<T> = (item: T) => any;
export type ItemTemplate<T> = (item: T, index: number) => any;
Expand Down
2 changes: 1 addition & 1 deletion src/directives/unsafe-html.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {directive, Directive, isPrimitive, NodePart} from '../index.js';
import {directive, Directive, isPrimitive, NodePart} from '../lit-html.js';

/**
* Renders the result as HTML, rather than text.
Expand Down
2 changes: 1 addition & 1 deletion src/directives/until.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {directive, Directive, NodePart} from '../index.js';
import {directive, Directive, NodePart} from '../lit-html.js';

/**
* Display `defaultContent` until `promise` resolves.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/shady-render.ts
Expand Up @@ -20,7 +20,7 @@ import {TemplateInstance} from './template-instance.js';
import {TemplateResult} from './template-result.js';
import {Template} from './template.js';

export {html, svg, TemplateResult} from '../index.js';
export {html, svg, TemplateResult} from '../lit-html.js';

declare global {
interface Window {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/test/directives/async-append_test.ts
Expand Up @@ -13,8 +13,8 @@
*/

import {asyncAppend} from '../../directives/async-append.js';
import {html} from '../../index.js';
import {render} from '../../lib/render.js';
import {html} from '../../lit-html.js';
import {TestAsyncIterable} from '../lib/test-async-iterable.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

Expand Down
2 changes: 1 addition & 1 deletion src/test/directives/async-replace_test.ts
Expand Up @@ -13,8 +13,8 @@
*/

import {asyncReplace} from '../../directives/async-replace.js';
import {html} from '../../index.js';
import {render} from '../../lib/render.js';
import {html} from '../../lit-html.js';
import {TestAsyncIterable} from '../lib/test-async-iterable.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

Expand Down
2 changes: 1 addition & 1 deletion src/test/directives/repeat_test.ts
Expand Up @@ -13,8 +13,8 @@
*/

import {repeat} from '../../directives/repeat.js';
import {html} from '../../index.js';
import {render} from '../../lib/render.js';
import {html} from '../../lit-html.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

const assert = chai.assert;
Expand Down
2 changes: 1 addition & 1 deletion src/test/directives/unsafe-html_test.ts
Expand Up @@ -13,8 +13,8 @@
*/

import {unsafeHTML} from '../../directives/unsafe-html.js';
import {html} from '../../index.js';
import {render} from '../../lib/render.js';
import {html} from '../../lit-html.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

const assert = chai.assert;
Expand Down
2 changes: 1 addition & 1 deletion src/test/directives/until_test.ts
Expand Up @@ -13,8 +13,8 @@
*/

import {until} from '../../directives/until.js';
import {html} from '../../index.js';
import {render} from '../../lib/render.js';
import {html} from '../../lit-html.js';
import {Deferred} from '../test-utils/deferred.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

Expand Down
2 changes: 1 addition & 1 deletion src/test/lib/lit-extended_test.ts
Expand Up @@ -12,8 +12,8 @@
* http://polymer.github.io/PATENTS.txt
*/

import {AttributePart, directive, html as htmlPlain} from '../../index.js';
import {html, render} from '../../lib/lit-extended.js';
import {AttributePart, directive, html as htmlPlain} from '../../lit-html.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

const assert = chai.assert;
Expand Down
2 changes: 1 addition & 1 deletion src/test/lib/modify-template_test.ts
Expand Up @@ -12,9 +12,9 @@
* http://polymer.github.io/PATENTS.txt
*/

import {html, templateFactory} from '../../index.js';
import {insertNodeIntoTemplate, removeNodesFromTemplate} from '../../lib/modify-template.js';
import {render} from '../../lib/render.js';
import {html, templateFactory} from '../../lit-html.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

const assert = chai.assert;
Expand Down
2 changes: 1 addition & 1 deletion src/test/lib/parts_test.ts
Expand Up @@ -12,8 +12,8 @@
* http://polymer.github.io/PATENTS.txt
*/

import {html, NodePart, render, templateFactory, TemplateResult} from '../../index.js';
import {TemplateProcessor} from '../../lib/template-processor.js';
import {html, NodePart, render, templateFactory, TemplateResult} from '../../lit-html.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

const assert = chai.assert;
Expand Down
2 changes: 1 addition & 1 deletion src/test/lib/render_test.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {AttributePart, directive, html, NodePart, render, svg, templateFactory} from '../../index.js';
import {AttributePart, directive, html, NodePart, render, svg, templateFactory} from '../../lit-html.js';
import {stripExpressionMarkers} from '../test-utils/strip-markers.js';

const assert = chai.assert;
Expand Down
2 changes: 1 addition & 1 deletion src/test/lib/template-factory_test.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {html, templateFactory} from '../../index.js';
import {html, templateFactory} from '../../lit-html.js';

const assert = chai.assert;

Expand Down
2 changes: 1 addition & 1 deletion src/test/lib/template-result_test.ts
Expand Up @@ -12,7 +12,7 @@
* http://polymer.github.io/PATENTS.txt
*/

import {html} from '../../index.js';
import {html} from '../../lit-html.js';

const assert = chai.assert;

Expand Down
2 changes: 1 addition & 1 deletion src/test/lib/template_test.ts
Expand Up @@ -12,8 +12,8 @@
* http://polymer.github.io/PATENTS.txt
*/

import {html, TemplateResult} from '../../index.js';
import {Template} from '../../lib/template.js';
import {html, TemplateResult} from '../../lit-html.js';

const assert = chai.assert;

Expand Down
2 changes: 1 addition & 1 deletion src/test/index_test.ts → src/test/lit-html_test.ts
Expand Up @@ -12,8 +12,8 @@
* http://polymer.github.io/PATENTS.txt
*/

import {html, svg} from '../index.js';
import {SVGTemplateResult, TemplateResult} from '../lib/template-result.js';
import {html, svg} from '../lit-html.js';

const assert = chai.assert;

Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Expand Up @@ -5,7 +5,7 @@
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
</head>
<body>
<script type="module" src="./index_test.js"></script>
<script type="module" src="./lit-html_test.js"></script>
<script type="module" src="./lib/template-result_test.js"></script>
<script type="module" src="./lib/template_test.js"></script>
<script type="module" src="./lib/template-factory_test.js"></script>
Expand Down

0 comments on commit b0001b9

Please sign in to comment.