You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[#2113](https://github.com/lit/lit/pull/2113)[`5b2f3642`](https://github.com/lit/lit/commit/5b2f3642ff91931b5b01f8bdd2ed98aba24f1047) - Dependency upgrades including TypeScript 4.4.2
8
+
9
+
-[#2103](https://github.com/lit/lit/pull/2103)[`15a8356d`](https://github.com/lit/lit/commit/15a8356ddd59a1e80880a93acd21fadc9c24e14b) - Added Lit dev mode to test and serve commands, controlled via the MODE=dev or MODE=prod environment variables.
10
+
11
+
-[#2117](https://github.com/lit/lit/pull/2117)[`eff2fbc7`](https://github.com/lit/lit/commit/eff2fbc7e45cfc2a7b8df21e18c84619dfbcb277) - Updated starter templates to use open-wc analyzer for generating custom-elements.json, and updated basic API docs generater included in the template to the new manifest format.
Copy file name to clipboardexpand all lines: README.md
+13-5
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,20 @@ Mocha, Chai, and some related helpers for testing. See the
18
18
[modern-web.dev testing documentation](https://modern-web.dev/docs/test-runner/overview) for
19
19
more information.
20
20
21
-
Tests can be run with the `test` script:
21
+
Tests can be run with the `test` script, which will run your tests against Lit's development mode (with more verbose errors) as well as against Lit's production mode:
22
22
23
23
```bash
24
24
npm test
25
25
```
26
26
27
+
For local testing during development, the `test:dev:watch` command will run your tests in Lit's development mode (with verbose errors) on every change to your source files:
28
+
29
+
```bash
30
+
npm test:watch
31
+
```
32
+
33
+
Alternatively the `test:prod` and `test:prod:watch` commands will run your tests in Lit's production mode.
34
+
27
35
## Dev Server
28
36
29
37
This sample uses modern-web.dev's [@web/dev-server](https://www.npmjs.com/package/@web/dev-server) for previewing the project without additional build steps. Web Dev Server handles resolving Node-style "bare" import specifiers, which aren't supported in browsers. It also automatically transpiles JavaScript and adds polyfills to support older browsers. See [modern-web.dev's Web Dev Server documentation](https://modern-web.dev/docs/dev-server/overview/) for more information.
@@ -34,7 +42,7 @@ To run the dev server and open the project in a new browser tab:
34
42
npm run serve
35
43
```
36
44
37
-
There is a development HTML file located at `/dev/index.html` that you can view at http://localhost:8000/dev/index.html.
45
+
There is a development HTML file located at `/dev/index.html` that you can view at http://localhost:8000/dev/index.html. Note that this command will serve your code using Lit's development mode (with more verbose errors). To serve your code against Lit's production mode, use `npm run serve:prod`.
38
46
39
47
## Editing
40
48
@@ -64,7 +72,7 @@ npm run lint
64
72
65
73
## Formatting
66
74
67
-
[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`.
75
+
[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`.
68
76
69
77
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.
70
78
@@ -98,8 +106,8 @@ The site will usually be served at http://localhost:8000.
98
106
99
107
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.
100
108
101
-
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.
109
+
For information on building application projects that include LitElement components, see [Build for production](https://lit.dev/docs/tools/production/) on the LitElement site.
102
110
103
111
## More information
104
112
105
-
See [Get started](https://lit-element.polymer-project.org/guide/start) on the LitElement site for more information.
113
+
See [Get started](https://lit.dev/docs/getting-started/) on the Lit site for more information.
0 commit comments