This is a Lit Monorepo fork.
Original repository: https://github.com/lit/lit.
This fork can replace lit
in a project by installing it as an alias:
yarn add lit@npm:@gynzy/lit
This fork has three (non-functional) changes compared to the original packages:
In rollup-common.js
the mangle
option in generateTerserOptions
is disabled. This is required for Gynzy build process in external-board-tools.
In external-board-tools there's a package base-tool which contains generic functionality for tools. During build every tool is split such that generic functionality is imported from base-tool. In order to make this happen it is important that names are not mangled, which was the default for lit-element 1 (when the plan was devised and executed), but not for lit 2.
All package names are scoped such that they can be published to the private Gynzy repository.
Original name | Fork name |
---|---|
lit | @gynzy/lit |
lit-element | @gynzy/lit-element |
lit-html | @gynzy/lit-html |
@lit/reactive-element | @gynzy/lit-reactive-element |
Some packages depend on each other (e.g. lit-element
depends on @lit/reactive-element
and lit-html
). This fork overrides these dependencies with versions from the fork.
At the moment no CI exists. For now, the manual steps can be used.
-
Use node 16.x.
-
Checkout the tag of the latest release.
-
Install all packages using
npm ci
. -
Ensure the required patches are applied / have no conflict.
-
Build all packages using
npm run build
. -
Publish each package to the private npm repository. The
@gynzy
-scope ensures that the package is published to the private Gynzy repository.-
Go to each package folder
packages/lit
packages/lit-element
packages/lit-html
packages/reactive-element
-
Run
npm publish
in each package folder to publish to the repository.
-