Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add @lit-labs/signals package #4615

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .eslintignore
Expand Up @@ -329,6 +329,12 @@ packages/labs/scoped-registry-mixin/development/
packages/labs/scoped-registry-mixin/test/
packages/labs/scoped-registry-mixin/node_modules/
packages/labs/scoped-registry-mixin/scoped-registry-mixin.*
packages/labs/signals/development/
packages/labs/signals/lib/
packages/labs/signals/node_modules/
packages/labs/signals/test/
packages/labs/signals/index.*

packages/labs/ssr/demo/
packages/labs/ssr/lib/
packages/labs/ssr/node_modules/
Expand Down
6 changes: 6 additions & 0 deletions .prettierignore
Expand Up @@ -317,6 +317,12 @@ packages/labs/scoped-registry-mixin/development/
packages/labs/scoped-registry-mixin/test/
packages/labs/scoped-registry-mixin/node_modules/
packages/labs/scoped-registry-mixin/scoped-registry-mixin.*
packages/labs/signals/development/
packages/labs/signals/lib/
packages/labs/signals/node_modules/
packages/labs/signals/test/
packages/labs/signals/index.*

packages/labs/ssr/demo/
packages/labs/ssr/lib/
packages/labs/ssr/node_modules/
Expand Down
65 changes: 43 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -75,6 +75,7 @@
"./packages/labs/rollup-plugin-minify-html-literals:build",
"./packages/labs/router:build",
"./packages/labs/scoped-registry-mixin:build",
"./packages/labs/signals:build",
"./packages/labs/ssr:build",
"./packages/labs/ssr-client:build",
"./packages/labs/ssr-dom-shim:build",
Expand Down Expand Up @@ -112,6 +113,7 @@
"./packages/labs/rollup-plugin-minify-html-literals:build:ts",
"./packages/labs/router:build:ts",
"./packages/labs/scoped-registry-mixin:build:ts",
"./packages/labs/signals:build:ts",
"./packages/labs/ssr:build:ts",
"./packages/labs/ssr-client:build:ts",
"./packages/labs/ssr-dom-shim:build:ts",
Expand Down Expand Up @@ -172,6 +174,7 @@
"./packages/labs/nextjs:test",
"./packages/labs/preact-signals:test",
"./packages/labs/rollup-plugin-minify-html-literals:test",
"./packages/labs/signals:test",
"./packages/labs/ssr:test",
"./packages/labs/ssr-dom-shim:test",
"./packages/labs/ssr-react:test",
Expand Down
5 changes: 5 additions & 0 deletions packages/labs/signals/.gitignore
@@ -0,0 +1,5 @@
/development/
/lib/
/node_modules/
/test/
/index.*
1 change: 1 addition & 0 deletions packages/labs/signals/CHANGELOG.md
@@ -0,0 +1 @@
# @lit-labs/signals
28 changes: 28 additions & 0 deletions packages/labs/signals/LICENSE
@@ -0,0 +1,28 @@
BSD 3-Clause License

Copyright (c) 2023 Google LLC. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.