Include Ink as a third-party JavaScript and CSS library.
Review Request #13664 — Created March 25, 2024 and submitted
This brings in Ink, our new CSS/JavaScript component library, embedding
the CSS and JavaScript on all pages. Currently it's not used anywhere,
but further changes will be moving components over to it.Since Ink is not released, this currently requires some manual setup
during development..npm-workspaces/inkmust be symlinked to the root
of the Ink source tree, followed bynpm install. Once we start
releasing builds of Ink, this symlink can be removed (though will be
needed for local development).We make use of Ink's
babel-presetto enable compilation ofcraftand
painttemplates, easing component and element creation.There's also a path fix to include Djblets from
node_modules, rather
than the legacy.djbletssymlink, in order to resolve typing issues.
Viewed some pages and verified that both the
InkJavaScript namespace
and Ink default theme CSS variables were available.
| Summary | ID |
|---|---|
| e8cdef5753f9f80f9aba3c3dc0623301b89baf75 |
- Change Summary:
-
- Fixed path issues for Djblets typing.
- Moved the Ink externals/globals into the Review Board consumer definition and not Common definition, to avoid issues with the 3rdparty bundle.
- Added usage of Ink's
babel-presetforcraft/paintcompilation.
- Description:
-
This brings in Ink, our new CSS/JavaScript component library, embedding
the CSS and JavaScript on all pages. Currently it's not used anywhere, but further changes will be moving components over to it. Since Ink is not released, this currently requires some manual setup
during development. .npm-workspaces/inkmust be symlinked to the rootof the Ink source tree, followed by npm install. Once we startreleasing builds of Ink, this symlink can be removed (though will be needed for local development). + + We make use of Ink's
babel-presetto enable compilation ofcraftand+ painttemplates, easing component and element creation.+ + There's also a path fix to include Djblets from
node_modules, rather+ than the legacy .djbletssymlink, in order to resolve typing issues. - Commits:
-
Summary ID 29103a476fa4262eeb027af4b6baf6745f387644 7878fabd181e451e895a06cf7c14e40bb7032761