Import upstream changes (99cd7571ad8c17ca7edc4398d57c8b03fcb272a7)
This commit is contained in:
@@ -3,3 +3,4 @@ docs/*
|
||||
docs-src/*
|
||||
rollup-config.js
|
||||
custom-elements.json
|
||||
web-dev-server.config.js
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
"files": [
|
||||
"*_test.ts",
|
||||
"**/custom_typings/*.ts",
|
||||
"packages/lit-ssr/src/test/integration/tests/**",
|
||||
"packages/lit-ssr/src/lib/util/parse5-utils.ts"
|
||||
"packages/labs/ssr/src/test/integration/tests/**",
|
||||
"packages/labs/ssr/src/lib/util/parse5-utils.ts"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-explicit-any": "off"
|
||||
|
||||
5
.github/ISSUE_TEMPLATE/config.yml
vendored
5
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -1,5 +0,0 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: File Issue
|
||||
url: https://github.com/lit/lit/issues/new/choose
|
||||
about: Please file new issues in the lit/lit monorepo
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
node_modules/
|
||||
/node_modules/
|
||||
/lib/
|
||||
/test/
|
||||
custom-elements.json
|
||||
|
||||
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,5 +1,20 @@
|
||||
# @lit/lit-starter-ts
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2535](https://github.com/lit/lit/pull/2535) [`d1359856`](https://github.com/lit/lit/commit/d1359856698d1af381b335fb757f9282574690b0) - Update the README to indicate that issues and PRs should be filed on the main Lit repo.
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#2300](https://github.com/lit/lit/pull/2300) [`8b9dcb4d`](https://github.com/lit/lit/commit/8b9dcb4d10e4161083146ae40d0b12174a63d31d) - Fix starter kits so `npm run serve` serves the root directory, and add a link to the `/dev/index.html` component example from `/`.
|
||||
|
||||
- Updated dependencies [[`fcc2b3d0`](https://github.com/lit/lit/commit/fcc2b3d0054e69e6f76588ea9f440117b6d0deed), [`49ecf623`](https://github.com/lit/lit/commit/49ecf6239033e9578184d46116e6b89676d091db), [`1d563e83`](https://github.com/lit/lit/commit/1d563e830c02a2d1a22e1e939f1ace971b1d1ae7)]:
|
||||
- lit@2.1.0
|
||||
|
||||
## 1.0.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
This project includes a sample component using LitElement with TypeScript.
|
||||
|
||||
This template is generated from the `lit-starter-ts` package in [the main Lit
|
||||
repo](https://github.com/lit/lit). Issues and PRs for this template should be
|
||||
filed in that repo.
|
||||
|
||||
## Setup
|
||||
|
||||
Install dependencies:
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
{
|
||||
"version": "experimental",
|
||||
"tags": [
|
||||
{
|
||||
"name": "my-element",
|
||||
"path": "./src/my-element.ts",
|
||||
"description": "An example element.",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "name",
|
||||
"description": "The name to say \"Hello\" to.",
|
||||
"type": "string",
|
||||
"default": "\"World\""
|
||||
},
|
||||
{
|
||||
"name": "count",
|
||||
"description": "The number of times the button has been clicked.",
|
||||
"type": "number",
|
||||
"default": "0"
|
||||
}
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "name",
|
||||
"attribute": "name",
|
||||
"description": "The name to say \"Hello\" to.",
|
||||
"type": "string",
|
||||
"default": "\"World\""
|
||||
},
|
||||
{
|
||||
"name": "count",
|
||||
"attribute": "count",
|
||||
"description": "The number of times the button has been clicked.",
|
||||
"type": "number",
|
||||
"default": "0"
|
||||
},
|
||||
{
|
||||
"name": "renderRoot",
|
||||
"description": "Node or ShadowRoot into which element DOM should be rendered. Defaults\nto an open shadowRoot.",
|
||||
"type": "HTMLElement | ShadowRoot"
|
||||
},
|
||||
{
|
||||
"name": "isUpdatePending",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "hasUpdated",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "updateComplete",
|
||||
"description": "Returns a Promise that resolves when the element has completed updating.\nThe Promise value is a boolean that is `true` if the element completed the\nupdate without triggering another update. The Promise result is `false` if\na property was set inside `updated()`. If the Promise is rejected, an\nexception was thrown during the update.\n\nTo await additional asynchronous work, override the `getUpdateComplete`\nmethod. For example, it is sometimes useful to await a rendered element\nbefore fulfilling this Promise. To do this, first await\n`super.getUpdateComplete()`, then any subsequent state.",
|
||||
"type": "Promise<boolean>"
|
||||
}
|
||||
],
|
||||
"slots": [
|
||||
{
|
||||
"name": "",
|
||||
"description": "This element has a slot"
|
||||
}
|
||||
],
|
||||
"cssParts": [
|
||||
{
|
||||
"name": "button",
|
||||
"description": "The button"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
61538
package-lock.json
generated
61538
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lit/lit-starter-ts",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "A simple web component",
|
||||
"main": "my-element.js",
|
||||
"module": "my-element.js",
|
||||
@@ -41,12 +41,12 @@
|
||||
"author": "Google LLC",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"lit": "^2.0.0"
|
||||
"lit": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "^0.12.1",
|
||||
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
|
||||
"@custom-elements-manifest/analyzer": "^0.5.3",
|
||||
"@custom-elements-manifest/analyzer": "^0.5.7",
|
||||
"@esm-bundle/chai": "^4.1.5",
|
||||
"@open-wc/testing": "^3.0.0-next.1",
|
||||
"@open-wc/testing-karma": "^4.0.9",
|
||||
|
||||
@@ -99,6 +99,7 @@ export default {
|
||||
// https://mochajs.org/api/mocha
|
||||
config: {
|
||||
ui: 'tdd',
|
||||
timeout: '60000',
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
|
||||
Reference in New Issue
Block a user