diff --git a/.editorconfig b/.editorconfig index ae71ce1735..b60dee1205 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,11 +1,5 @@ -# Copyright (c) 2014 The Polymer Project Authors. All rights reserved. -# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -# The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -# Code distributed by Google as part of the polymer project is also -# subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt - -# Polymer EditorConfig +# Copyright 2014 Google LLC +# SPDX-License-Identifier: BSD-3-Clause root = true diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 92a192fb1a..4b3a1f7a74 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -8,7 +8,7 @@ assignees: '' # Description diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 042eba0a62..6be90c8577 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -93,8 +93,8 @@ If you've already signed a CLA but are still getting bothered by the awfully ins ## Set up ```bash -git clone https://github.com/Polymer/lit-html.git -cd lit-html +git clone https://github.com/lit/lit.git +cd lit npm install npm run bootstrap npm run build diff --git a/packages/benchmarks/README.md b/packages/benchmarks/README.md index 5309a6cf1c..84b5f5b5a9 100644 --- a/packages/benchmarks/README.md +++ b/packages/benchmarks/README.md @@ -3,7 +3,7 @@ Benchmarks for lit-html and LitElement. ```bash -git clone git@github.com:Polymer/lit-html.git +git clone git@github.com:lit/lit.git cd lit-html npm install diff --git a/packages/labs/motion/demo/animation.html b/packages/labs/motion/demo/animation.html index 9bce068d87..45557083a6 100644 --- a/packages/labs/motion/demo/animation.html +++ b/packages/labs/motion/demo/animation.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/hero.html b/packages/labs/motion/demo/hero.html index 6c8cd56122..5b83f63b56 100644 --- a/packages/labs/motion/demo/hero.html +++ b/packages/labs/motion/demo/hero.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/index.html b/packages/labs/motion/demo/index.html index 043794a3f2..e0186db53d 100644 --- a/packages/labs/motion/demo/index.html +++ b/packages/labs/motion/demo/index.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/list.html b/packages/labs/motion/demo/list.html index 9bd2213734..98c951842c 100644 --- a/packages/labs/motion/demo/list.html +++ b/packages/labs/motion/demo/list.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/lists.html b/packages/labs/motion/demo/lists.html index ff2000b44c..3a2a69d8f2 100644 --- a/packages/labs/motion/demo/lists.html +++ b/packages/labs/motion/demo/lists.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/lit-logo.html b/packages/labs/motion/demo/lit-logo.html index 7bcc98f5e6..20399621d9 100644 --- a/packages/labs/motion/demo/lit-logo.html +++ b/packages/labs/motion/demo/lit-logo.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/lit.html b/packages/labs/motion/demo/lit.html index baca645e95..b8192bad82 100644 --- a/packages/labs/motion/demo/lit.html +++ b/packages/labs/motion/demo/lit.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/scaling.html b/packages/labs/motion/demo/scaling.html index 7278d88595..52404b305c 100644 --- a/packages/labs/motion/demo/scaling.html +++ b/packages/labs/motion/demo/scaling.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/simple.html b/packages/labs/motion/demo/simple.html index 9ccdd1df38..1201b2bd28 100644 --- a/packages/labs/motion/demo/simple.html +++ b/packages/labs/motion/demo/simple.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/demo/tabs.html b/packages/labs/motion/demo/tabs.html index 9933d89ed2..9dbd95bc3f 100644 --- a/packages/labs/motion/demo/tabs.html +++ b/packages/labs/motion/demo/tabs.html @@ -1,13 +1,9 @@ + Copyright 2021 Google LLC + SPDX-License-Identifier: BSD-3-Clause +--> diff --git a/packages/labs/motion/rollup.config.js b/packages/labs/motion/rollup.config.js index f352639e9e..934e2b04fd 100644 --- a/packages/labs/motion/rollup.config.js +++ b/packages/labs/motion/rollup.config.js @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {litProdConfig} from '../../../rollup-common.js'; diff --git a/packages/labs/motion/scripts/dev.sh b/packages/labs/motion/scripts/dev.sh index cadab3fe68..0b8f1f1834 100755 --- a/packages/labs/motion/scripts/dev.sh +++ b/packages/labs/motion/scripts/dev.sh @@ -1,11 +1,7 @@ #!/usr/bin/env bash -# Copyright (c) 2020 The Polymer Project Authors. All rights reserved. -# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -# The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -# Code distributed by Google as part of the polymer project is also -# subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +# Copyright 2021 Google LLC +# SPDX-License-Identifier: BSD-3-Clause set -e diff --git a/packages/labs/motion/src/index.ts b/packages/labs/motion/src/index.ts index 96db622f30..aa918ac260 100644 --- a/packages/labs/motion/src/index.ts +++ b/packages/labs/motion/src/index.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ export * from './flip.js'; export * from './flip-controller.js'; diff --git a/packages/labs/motion/src/test/flip_controller_test.ts b/packages/labs/motion/src/test/flip_controller_test.ts index 090309601a..07d3ce7664 100644 --- a/packages/labs/motion/src/test/flip_controller_test.ts +++ b/packages/labs/motion/src/test/flip_controller_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {LitElement /*css, html, CSSResultGroup, TemplateResult*/} from 'lit'; diff --git a/packages/labs/motion/src/test/flip_test.ts b/packages/labs/motion/src/test/flip_test.ts index a490066284..0be6a9aa07 100644 --- a/packages/labs/motion/src/test/flip_test.ts +++ b/packages/labs/motion/src/test/flip_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {LitElement, css, html, CSSResultGroup, TemplateResult} from 'lit'; diff --git a/packages/labs/motion/src/test/test-helpers.ts b/packages/labs/motion/src/test/test-helpers.ts index 86a3d5f916..f841e29772 100644 --- a/packages/labs/motion/src/test/test-helpers.ts +++ b/packages/labs/motion/src/test/test-helpers.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ let count = 0; diff --git a/packages/labs/react/src/test/use-controller_test.ts b/packages/labs/react/src/test/use-controller_test.ts index 42f0c7d5ba..dd52efd7fd 100644 --- a/packages/labs/react/src/test/use-controller_test.ts +++ b/packages/labs/react/src/test/use-controller_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ // import * as ReactModule from 'react'; diff --git a/packages/labs/react/src/use-controller.ts b/packages/labs/react/src/use-controller.ts index 598094cfb4..f8ad81bba2 100644 --- a/packages/labs/react/src/use-controller.ts +++ b/packages/labs/react/src/use-controller.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import type * as ReactModule from 'react'; diff --git a/packages/labs/scoped-registry-mixin/rollup.config.js b/packages/labs/scoped-registry-mixin/rollup.config.js index f7953363cb..d70ce8417e 100644 --- a/packages/labs/scoped-registry-mixin/rollup.config.js +++ b/packages/labs/scoped-registry-mixin/rollup.config.js @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import {litProdConfig} from '../../../rollup-common.js'; diff --git a/packages/labs/scoped-registry-mixin/scripts/dev.sh b/packages/labs/scoped-registry-mixin/scripts/dev.sh index 4bc81d72ed..0b8f1f1834 100755 --- a/packages/labs/scoped-registry-mixin/scripts/dev.sh +++ b/packages/labs/scoped-registry-mixin/scripts/dev.sh @@ -1,11 +1,7 @@ #!/usr/bin/env bash -# Copyright (c) 2021 The Polymer Project Authors. All rights reserved. -# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -# The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -# Code distributed by Google as part of the polymer project is also -# subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +# Copyright 2021 Google LLC +# SPDX-License-Identifier: BSD-3-Clause set -e diff --git a/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts b/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts index 304f3ecd34..2097fe54fc 100644 --- a/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts +++ b/packages/labs/scoped-registry-mixin/src/scoped-registry-mixin.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import type {LitElement} from 'lit'; diff --git a/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts b/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts index 1e6609a181..e580b18c7c 100644 --- a/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts +++ b/packages/labs/scoped-registry-mixin/src/test/scoped-registry-mixin_test.ts @@ -1,15 +1,7 @@ /** * @license - * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. - * This code may only be used under the BSD style license found at - * http://polymer.github.io/LICENSE.txt - * The complete set of authors may be found at - * http://polymer.github.io/AUTHORS.txt - * The complete set of contributors may be found at - * http://polymer.github.io/CONTRIBUTORS.txt - * Code distributed by Google as part of the polymer project is also - * subject to an additional IP rights grant found at - * http://polymer.github.io/PATENTS.txt + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause */ import '@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js'; diff --git a/packages/labs/ssr/README.md b/packages/labs/ssr/README.md index d28b2baa9c..26a1313b7a 100644 --- a/packages/labs/ssr/README.md +++ b/packages/labs/ssr/README.md @@ -147,4 +147,4 @@ Please note the following current limitations with the SSR package: - **DOM access**: The above point means care should be taken to avoid interacting directly with the DOM in certain lifecycle callbacks. Concretely, you should generally only interact directly with the DOM (like accessing child/parent nodes, querying, imperatively adding event listeners, dispatching events, etc.) in the following lifecycle callbacks, which are not called on the server: - `LitElement`'s `update`, `updated`, `firstUpdated`, or event handlers - `Directive`'s `update` -- **Patterns for usage**: As mentioned above under "Status", we intend to flesh out a number of common patterns for using this package, and provide appropriate APIs and documentation for these as the package reaches maturity. Concerns like server/client data management, incremental loading and hydration, etc. are currently beyond the scope of what this package offers, but we believe it should support building these patterns on top of it going forwrad. Please [file issues](https://github.com/Polymer/lit-html/issues/new/choose) for ideas, suggestions, and use cases you may encounter. +- **Patterns for usage**: As mentioned above under "Status", we intend to flesh out a number of common patterns for using this package, and provide appropriate APIs and documentation for these as the package reaches maturity. Concerns like server/client data management, incremental loading and hydration, etc. are currently beyond the scope of what this package offers, but we believe it should support building these patterns on top of it going forwrad. Please [file issues](https://github.com/lit/lit/issues/new/choose) for ideas, suggestions, and use cases you may encounter. diff --git a/packages/lit-element/src/lit-element.ts b/packages/lit-element/src/lit-element.ts index 8ddf39ed4c..2b5a056b8e 100644 --- a/packages/lit-element/src/lit-element.ts +++ b/packages/lit-element/src/lit-element.ts @@ -128,7 +128,7 @@ export class LitElement extends ReactiveElement { // TODO(kschaaf): Consider debouncing directive disconnection so element moves // do not thrash directive callbacks - // https://github.com/Polymer/lit-html/issues/1457 + // https://github.com/lit/lit/issues/1457 /** * @category lifecycle */ @@ -183,7 +183,7 @@ if (DEV_MODE) { `\`${name}\` is implemented. It ` + `has been removed from this version of LitElement. ` // TODO(sorvell): add link to changelog when location has stabilized. - // + See the changelog at https://github.com/Polymer/lit-html/blob/main/packages/lit-element/CHANGELOG.md` + // + See the changelog at https://github.com/lit/lit/blob/main/packages/lit-element/CHANGELOG.md` ); } }; diff --git a/packages/lit-html/src/experimental-hydrate.ts b/packages/lit-html/src/experimental-hydrate.ts index 81b20dccd8..d90017bad6 100644 --- a/packages/lit-html/src/experimental-hydrate.ts +++ b/packages/lit-html/src/experimental-hydrate.ts @@ -217,7 +217,7 @@ const openChildPart = ( // we need to decide what to do in this case. Note that this part won't be // retained by any parent TemplateInstance, since a primitive had been // rendered in its place. - // https://github.com/Polymer/lit-html/issues/1434 + // https://github.com/lit/lit/issues/1434 // throw new Error('Hydration value mismatch: Found a TemplateInstance' + // 'where a leaf value was expected'); part = new ChildPart(marker, null, state.part, options); @@ -245,7 +245,7 @@ const openChildPart = ( // TODO(kschaaf): We can detect when a primitive is being hydrated on the // client where a TemplateResult was rendered on the server, but we need to // decide on a strategy for what to do next. - // https://github.com/Polymer/lit-html/issues/1434 + // https://github.com/lit/lit/issues/1434 // if (marker.data !== 'lit-part') { // throw new Error('Hydration value mismatch: Primitive found where TemplateResult expected'); // } diff --git a/packages/lit-html/src/lit-html.ts b/packages/lit-html/src/lit-html.ts index de9305ab9c..978ff9a08d 100644 --- a/packages/lit-html/src/lit-html.ts +++ b/packages/lit-html/src/lit-html.ts @@ -1125,7 +1125,7 @@ class ChildPart { // If no existing part, create a new one // TODO (justinfagnani): test perf impact of always creating two parts // instead of sharing parts between nodes - // https://github.com/Polymer/lit-html/issues/1266 + // https://github.com/lit/lit/issues/1266 itemParts.push( (itemPart = new ChildPart( this._insert(createMarker()), diff --git a/packages/lit-html/src/test/directives/class-map_test.ts b/packages/lit-html/src/test/directives/class-map_test.ts index 8b125cf789..291f9eb566 100644 --- a/packages/lit-html/src/test/directives/class-map_test.ts +++ b/packages/lit-html/src/test/directives/class-map_test.ts @@ -88,7 +88,7 @@ suite('classMap directive', () => { assert.isTrue(el.classList.contains('bb')); }); - // TODO (justinfagnani): unskip and resolve https://github.com/Polymer/lit-html/issues/1278 + // TODO (justinfagnani): unskip and resolve https://github.com/lit/lit/issues/1278 test.skip('can not override static classes', () => { renderClassMapStatic({aa: false, bb: true}); const el = container.firstElementChild!; diff --git a/packages/lit-html/src/test/directives/template-content_test.ts b/packages/lit-html/src/test/directives/template-content_test.ts index e89c400989..fef9614dfc 100644 --- a/packages/lit-html/src/test/directives/template-content_test.ts +++ b/packages/lit-html/src/test/directives/template-content_test.ts @@ -61,7 +61,7 @@ suite('templateContent', () => { // TODO (justinfagnani): lit-html core has a bug/limitiation around swapping // a directive with a non-directive. - // See https://github.com/Polymer/lit-html/issues/1286 + // See https://github.com/lit/lit/issues/1286 test.skip('re-renders a template over a non-templateContent value', () => { const go = (v: unknown) => render(html`
${v}
`, container); go(templateContent(template)); diff --git a/packages/lit-starter-js/README.md b/packages/lit-starter-js/README.md index bec2206318..ae2960360b 100644 --- a/packages/lit-starter-js/README.md +++ b/packages/lit-starter-js/README.md @@ -64,7 +64,7 @@ npm run lint ## Formatting -[Prettier](https://prettier.io/) is used for code formatting. It has been pre-configured according to the Polymer Project's style. You can change this in `.prettierrc.json`. +[Prettier](https://prettier.io/) is used for code formatting. It has been pre-configured according to the Lit's style. You can change this in `.prettierrc.json`. Prettier has not been configured to run when commiting files, but this can be added with Husky and and `pretty-quick`. See the [prettier.io](https://prettier.io/) site for instructions. @@ -98,8 +98,8 @@ The site will usually be served at http://localhost:8000. This starter project doesn't include any build-time optimizations like bundling or minification. We recommend publishing components as unoptimized JavaScript modules, and performing build-time optimizations at the application level. This gives build tools the best chance to deduplicate code, remove dead code, and so on. -For information on building application projects that include LitElement components, see [Build for production](https://lit-element.polymer-project.org/guide/build) on the LitElement site. +For information on building application projects that include LitElement components, see [Build for production](https://lit.dev/docs/tools/production/) on the LitElement site. ## More information -See [Get started](https://lit-element.polymer-project.org/guide/start) on the LitElement site for more information. +See [Get started](https://lit.dev/docs/getting-started/) on the Lit site for more information. diff --git a/packages/lit-starter-ts/README.md b/packages/lit-starter-ts/README.md index 0e1633905e..5305091d26 100644 --- a/packages/lit-starter-ts/README.md +++ b/packages/lit-starter-ts/README.md @@ -82,7 +82,7 @@ npm run lint ## Formatting -[Prettier](https://prettier.io/) is used for code formatting. It has been pre-configured according to the Polymer Project's style. You can change this in `.prettierrc.json`. +[Prettier](https://prettier.io/) is used for code formatting. It has been pre-configured according to the Lit's style. You can change this in `.prettierrc.json`. Prettier has not been configured to run when commiting files, but this can be added with Husky and and `pretty-quick`. See the [prettier.io](https://prettier.io/) site for instructions. @@ -116,8 +116,8 @@ The site will usually be served at http://localhost:8000. This starter project doesn't include any build-time optimizations like bundling or minification. We recommend publishing components as unoptimized JavaScript modules, and performing build-time optimizations at the application level. This gives build tools the best chance to deduplicate code, remove dead code, and so on. -For information on building application projects that include LitElement components, see [Build for production](https://lit-element.polymer-project.org/guide/build) on the LitElement site. +For information on building application projects that include LitElement components, see [Build for production](https://lit.dev/docs/tools/production/) on the Lit site. ## More information -See [Get started](https://lit-element.polymer-project.org/guide/start) on the LitElement site for more information. +See [Get started](https://lit.dev/docs/getting-started/) on the Lit site for more information. diff --git a/packages/localize-tools/README.md b/packages/localize-tools/README.md index b6266adeed..53b6662ce8 100644 --- a/packages/localize-tools/README.md +++ b/packages/localize-tools/README.md @@ -2,12 +2,12 @@ [npm-img]: https://img.shields.io/npm/v/@lit/localize-tools [npm-href]: https://www.npmjs.com/package/@lit/localize-tools -[test-img]: https://github.com/Polymer/lit-html/workflows/Tests/badge.svg?branch=master -[test-href]: https://github.com/Polymer/lit-html/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush +[test-img]: https://github.com/lit/lit/workflows/Tests/badge.svg?branch=master +[test-href]: https://github.com/lit/lit/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush [![Published on NPM][npm-img]][npm-href] [![Test status][test-img]][test-href] Tooling for @lit/localize. See the [@lit/localize -README](https://github.com/Polymer/lit-html/tree/main/packages/localize#readme) +README](https://github.com/lit/lit/tree/main/packages/localize#readme) for documentation. diff --git a/packages/localize-tools/src/cli.ts b/packages/localize-tools/src/cli.ts index f75899f809..8f4ecb20f8 100644 --- a/packages/localize-tools/src/cli.ts +++ b/packages/localize-tools/src/cli.ts @@ -33,7 +33,7 @@ Options: --help Display this help message. --config Path to JSON configuration file. Default: ./lit-localize.json - See https://github.com/Polymer/lit-html/tree/main/packages/localize#readme for details. + See https://github.com/lit/lit/tree/main/packages/localize#readme for details. `; const commands = ['build', 'extract'] as const; diff --git a/packages/localize-tools/src/config.ts b/packages/localize-tools/src/config.ts index feae07846e..53e5dfc0c2 100644 --- a/packages/localize-tools/src/config.ts +++ b/packages/localize-tools/src/config.ts @@ -77,7 +77,7 @@ function writeConfigSchemaIfMissing(config: ConfigFile, configPath: string) { } const withSchema = { $schema: - 'https://raw.githubusercontent.com/PolymerLabs/lit-localize/master/config.schema.json', + 'https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/tsconfig.schema.json', ...config, }; const json = JSON.stringify(withSchema, null, 2); diff --git a/packages/localize-tools/testdata/build-runtime-xlb/goldens/foo.ts b/packages/localize-tools/testdata/build-runtime-xlb/goldens/foo.ts index c723e0dd94..3677be569d 100644 --- a/packages/localize-tools/testdata/build-runtime-xlb/goldens/foo.ts +++ b/packages/localize-tools/testdata/build-runtime-xlb/goldens/foo.ts @@ -29,7 +29,7 @@ msg(html`Click here!`); // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. msg(html`[SALT] Click here!`); diff --git a/packages/localize-tools/testdata/build-runtime-xlb/goldens/lit-localize.json b/packages/localize-tools/testdata/build-runtime-xlb/goldens/lit-localize.json index 5ac3f0a552..aaa1a616d3 100644 --- a/packages/localize-tools/testdata/build-runtime-xlb/goldens/lit-localize.json +++ b/packages/localize-tools/testdata/build-runtime-xlb/goldens/lit-localize.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/PolymerLabs/lit-localize/master/config.schema.json", + "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/tsconfig.schema.json", "sourceLocale": "en", "targetLocales": [ "es-419" diff --git a/packages/localize-tools/testdata/build-runtime-xlb/input/foo.ts b/packages/localize-tools/testdata/build-runtime-xlb/input/foo.ts index c723e0dd94..3677be569d 100644 --- a/packages/localize-tools/testdata/build-runtime-xlb/input/foo.ts +++ b/packages/localize-tools/testdata/build-runtime-xlb/input/foo.ts @@ -29,7 +29,7 @@ msg(html`Click here!`); // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. msg(html`[SALT] Click here!`); diff --git a/packages/localize-tools/testdata/build-runtime-xliff/goldens/foo.ts b/packages/localize-tools/testdata/build-runtime-xliff/goldens/foo.ts index cbfde436e1..ad852c9fdf 100644 --- a/packages/localize-tools/testdata/build-runtime-xliff/goldens/foo.ts +++ b/packages/localize-tools/testdata/build-runtime-xliff/goldens/foo.ts @@ -29,7 +29,7 @@ msg(html`Click here!`); // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. msg(html`[SALT] Click here!`); diff --git a/packages/localize-tools/testdata/build-runtime-xliff/input/foo.ts b/packages/localize-tools/testdata/build-runtime-xliff/input/foo.ts index 4a9d54e03a..f3e0a29695 100644 --- a/packages/localize-tools/testdata/build-runtime-xliff/input/foo.ts +++ b/packages/localize-tools/testdata/build-runtime-xliff/input/foo.ts @@ -29,7 +29,7 @@ msg(html`Click here!`); // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. msg(html`[SALT] Click here!`); diff --git a/packages/localize-tools/testdata/build-transform-xliff/goldens/foo.ts b/packages/localize-tools/testdata/build-transform-xliff/goldens/foo.ts index e62e1023e4..4929fb46fe 100644 --- a/packages/localize-tools/testdata/build-transform-xliff/goldens/foo.ts +++ b/packages/localize-tools/testdata/build-transform-xliff/goldens/foo.ts @@ -45,7 +45,7 @@ msg(html`Click here!`); // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. msg(html`[SALT] Click here!`); diff --git a/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/en/foo.js b/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/en/foo.js index db0f0ee00b..802ca68e69 100644 --- a/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/en/foo.js +++ b/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/en/foo.js @@ -27,7 +27,7 @@ html`Click here!`; // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. html`[SALT] Click here!`; // Lit template with nested msg expression diff --git a/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/es-419/foo.js b/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/es-419/foo.js index d541bd4dd1..49a557212c 100644 --- a/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/es-419/foo.js +++ b/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/es-419/foo.js @@ -27,7 +27,7 @@ html`Clic aquí!`; // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. html`[SALT] Clic aquí!`; // Lit template with nested msg expression diff --git a/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/zh_CN/foo.js b/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/zh_CN/foo.js index fe99a37052..0c488f06d3 100644 --- a/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/zh_CN/foo.js +++ b/packages/localize-tools/testdata/build-transform-xliff/goldens/tsout/zh_CN/foo.js @@ -27,7 +27,7 @@ html`Click here!`; // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. html`[SALT] Click here!`; // Lit template with nested msg expression diff --git a/packages/localize-tools/testdata/build-transform-xliff/input/foo.ts b/packages/localize-tools/testdata/build-transform-xliff/input/foo.ts index e62e1023e4..4929fb46fe 100644 --- a/packages/localize-tools/testdata/build-transform-xliff/input/foo.ts +++ b/packages/localize-tools/testdata/build-transform-xliff/input/foo.ts @@ -45,7 +45,7 @@ msg(html`Click here!`); // // TODO(aomarks) The "SALT" text is here because we have a check to make sure // that two messages can't have the same ID unless they have identical template -// contents. After https://github.com/Polymer/lit-html/issues/1621 is +// contents. After https://github.com/lit/lit/issues/1621 is // implemented, add a "meaning" parameter instead. msg(html`[SALT] Click here!`); diff --git a/packages/localize-tools/testdata/extract-xlb-fresh/goldens/lit-localize.json b/packages/localize-tools/testdata/extract-xlb-fresh/goldens/lit-localize.json index 5ac3f0a552..aaa1a616d3 100644 --- a/packages/localize-tools/testdata/extract-xlb-fresh/goldens/lit-localize.json +++ b/packages/localize-tools/testdata/extract-xlb-fresh/goldens/lit-localize.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/PolymerLabs/lit-localize/master/config.schema.json", + "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/tsconfig.schema.json", "sourceLocale": "en", "targetLocales": [ "es-419" diff --git a/packages/localize/README.md b/packages/localize/README.md index cd6fbf4436..4eb2ee58e9 100644 --- a/packages/localize/README.md +++ b/packages/localize/README.md @@ -2,8 +2,8 @@ [npm-img]: https://img.shields.io/npm/v/@lit/localize [npm-href]: https://www.npmjs.com/package/@lit/localize -[test-img]: https://github.com/Polymer/lit-html/workflows/Tests/badge.svg?branch=master -[test-href]: https://github.com/Polymer/lit-html/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush +[test-img]: https://github.com/lit/lit/workflows/Tests/badge.svg?branch=master +[test-href]: https://github.com/lit/lit/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush [![Published on NPM][npm-img]][npm-href] [![Test status][test-img]][test-href] @@ -87,9 +87,9 @@ const {setLocale} = configureLocalization({ ``` See -[`examples/transform`](https://github.com/Polymer/lit-html/tree/main/packages/localize/examples/transform) +[`examples/transform`](https://github.com/lit/lit/tree/main/packages/localize/examples/transform) and -[`examples/runtime`](https://github.com/Polymer/lit-html/tree/main/packages/localize/examples/runtime) +[`examples/runtime`](https://github.com/lit/lit/tree/main/packages/localize/examples/runtime) for full working examples. ## Modes @@ -154,7 +154,7 @@ lit-localize supports two output modes: _transform_ and _runtime_. ```json { - "$schema": "https://raw.githubusercontent.com/Polymer/lit-html/main/packages/localize-tools/config.schema.json", + "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/config.schema.json", "sourceLocale": "en", "targetLocales": ["es-419"], "tsConfig": "tsconfig.json", @@ -412,9 +412,8 @@ Descriptions are represented in XLIFF using `` elements. ## `@localized` decorator -If you are using [LitElement](https://lit-element.polymer-project.org/), then -you can use the `@localized` decorator to automatically re-render your elements -whenever the locale changes. +If you are using [Lit](https://lit.dev), then you can use the `@localized` +decorator to automatically re-render your elements whenever the locale changes. ```typescript import {LitElement, html} from 'lit'; diff --git a/packages/localize/examples/runtime/README.md b/packages/localize/examples/runtime/README.md index 7bbb515869..994ec56aa1 100644 --- a/packages/localize/examples/runtime/README.md +++ b/packages/localize/examples/runtime/README.md @@ -1,6 +1,6 @@ # lit-localize runtime example -This package demonstrates an application that uses [lit-localize](https://github.com/PolymerLabs/lit-localize) in runtime mode. +This package demonstrates an application that uses [lit-localize](https://github.com/lit/lit/tree/main/packages/localize) in runtime mode. ## Overview @@ -18,7 +18,7 @@ This package demonstrates an application that uses [lit-localize](https://github ## Setup ```bash -git clone https://github.com/Polymer/lit-html.git +git clone https://github.com/lit/lit.git cd lit-html/packages/localize/examples/transform npm install npx lit-localize build diff --git a/packages/localize/examples/runtime/lit-localize.json b/packages/localize/examples/runtime/lit-localize.json index 688d5d2516..4e13e51720 100644 --- a/packages/localize/examples/runtime/lit-localize.json +++ b/packages/localize/examples/runtime/lit-localize.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/PolymerLabs/lit-localize/master/config.schema.json", + "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/tsconfig.schema.json", "sourceLocale": "en", "targetLocales": ["es-419", "zh_CN"], "tsConfig": "tsconfig.json", diff --git a/packages/localize/examples/transform/README.md b/packages/localize/examples/transform/README.md index 57597dc35d..da8c80f06d 100644 --- a/packages/localize/examples/transform/README.md +++ b/packages/localize/examples/transform/README.md @@ -1,6 +1,6 @@ # lit-localize transform example -This package demonstrates an application that uses [lit-localize](https://github.com/PolymerLabs/lit-localize) in transform +This package demonstrates an application that uses [lit-localize](https://github.com/lit/lit/tree/main/packages/localize) in transform mode. ## Overview @@ -14,7 +14,7 @@ mode. ## Setup ```bash -git clone https://github.com/Polymer/lit-html.git +git clone https://github.com/lit/lit.git cd lit-html/packages/localize/examples/transform npm i npx lit-localize build diff --git a/packages/localize/examples/transform/lit-localize.json b/packages/localize/examples/transform/lit-localize.json index 887d766db5..3f871ce9b7 100644 --- a/packages/localize/examples/transform/lit-localize.json +++ b/packages/localize/examples/transform/lit-localize.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/PolymerLabs/lit-localize/master/config.schema.json", + "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/tsconfig.schema.json", "sourceLocale": "en", "targetLocales": ["es-419", "zh_CN"], "tsConfig": "tsconfig.json", diff --git a/packages/reactive-element/README.md b/packages/reactive-element/README.md index 94b437027d..8bd1dd67b1 100644 --- a/packages/reactive-element/README.md +++ b/packages/reactive-element/README.md @@ -1,6 +1,6 @@ # ReactiveElement 1.0 Pre-release -[![Build Status](https://github.com/polymer/lit-html/workflows/Tests/badge.svg)](https://github.com/Polymer/lit-html/actions?query=workflow%3ATests) +[![Build Status](https://github.com/lit/lit/workflows/Tests/badge.svg)](https://github.com/lit/lit/actions?query=workflow%3ATests) [![Published on npm](https://img.shields.io/npm/v/lit-element/next-major)](https://www.npmjs.com/package/lit-html) [![Join our Slack](https://img.shields.io/badge/slack-join%20chat-4a154b.svg)](https://www.polymer-project.org/slack-invite) [![Mentioned in Awesome Lit](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit) @@ -21,7 +21,7 @@ A simple low level base class for creating fast, lightweight web components. ## Documentation -Full documentation is available at [lit-element.polymer-project.org](https://lit-element.polymer-project.org). +Full documentation is available at [lit.dev](https://lit.dev/docs/api/ReactiveElement/). ## Overview @@ -78,7 +78,7 @@ export class MyElement extends ReactiveElement { ``` Note, this example uses decorators to create properties. Decorators are a proposed -standard currently available in [TypeScript](https://www.typescriptlang.org/) or [Babel](https://babeljs.io/docs/en/babel-plugin-proposal-decorators). ReactiveElement also supports a [vanilla JavaScript method](https://lit-element.polymer-project.org/guide/properties#declare) of declaring reactive properties. +standard currently available in [TypeScript](https://www.typescriptlang.org/) or [Babel](https://babeljs.io/docs/en/babel-plugin-proposal-decorators). ReactiveElement also supports a [vanilla JavaScript method](https://lit.dev/docs/components/properties/#declaring-properties-in-a-static-properties-field) of declaring reactive properties. ## Installation diff --git a/packages/reactive-element/src/reactive-element.ts b/packages/reactive-element/src/reactive-element.ts index d97c8fd84f..006eee6266 100644 --- a/packages/reactive-element/src/reactive-element.ts +++ b/packages/reactive-element/src/reactive-element.ts @@ -565,7 +565,7 @@ export abstract class ReactiveElement console.warn( `\`${name}\` is implemented. It ` + `has been removed from this version of ReactiveElement.` + - ` See the changelog at https://github.com/Polymer/lit-html/blob/main/packages/reactive-element/CHANGELOG.md` + ` See the changelog at https://github.com/lit/lit/blob/main/packages/reactive-element/CHANGELOG.md` ); } };