Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
08d143a
docs: #202 refresh WCC website
thescientist13 Nov 26, 2025
1fecaca
docs: update github actions and netlify build commands
thescientist13 Nov 26, 2025
9d89db5
docs: move sandbox within website src directory
thescientist13 Nov 26, 2025
38a5e60
docs: basic theme styling for fonts and colors
thescientist13 Nov 26, 2025
bc7f40b
docs: add stylelint
thescientist13 Nov 26, 2025
05bb90d
docs: markdown plugins and syntax highlighting
thescientist13 Nov 26, 2025
7c3699c
docs: css modules and TSX setup
thescientist13 Nov 26, 2025
3d533ba
docs: header navigation
thescientist13 Nov 27, 2025
f4f56e1
docs: update contributing docs for new scripts
thescientist13 Nov 27, 2025
00eb914
types: extend JSXIntrinsicElements definition for popover attributes
thescientist13 Nov 27, 2025
d1ad126
docs: initial docs layout styling
thescientist13 Nov 28, 2025
ce09871
feat: #56 REPL spike
thescientist13 Nov 28, 2025
0ae7777
docs: fix css linting
thescientist13 Nov 28, 2025
3625df6
docs: #50 repl local dev workflow
thescientist13 Dec 4, 2025
afe41fa
ignore TS error
thescientist13 Dec 4, 2025
d18dcbb
add input event listener for repl
thescientist13 Dec 4, 2025
463846f
feat: clean up logs and test data in repl
thescientist13 Dec 4, 2025
bc96598
feat: #50 refactor repl and rollup to TS
thescientist13 Dec 4, 2025
906c7aa
docs: #202 convert stylelint config to TS
thescientist13 Dec 4, 2025
f8f610d
feat: #50 bundle REPL with Greenwood
thescientist13 Dec 6, 2025
05a3bd0
docs: update header logo and favicon
thescientist13 Dec 23, 2025
124e5f4
feat: remove rollup config
thescientist13 Dec 23, 2025
c147066
WIP: home page banners content
thescientist13 Dec 29, 2025
e18707e
docs: fix sidenav types
thescientist13 Jan 4, 2026
67f2ba8
docs: fix favicon path
thescientist13 Jan 4, 2026
e55ae9d
docs: cleanup logging
thescientist13 Jan 4, 2026
b51ff46
patch support for non-standard frontmatter import extensions
thescientist13 Jan 4, 2026
6d09d0d
chore: remove website build from GitHub Actions
thescientist13 Jan 4, 2026
6e25f05
docs: misc sidenav and docs pages styling
thescientist13 Jan 4, 2026
1be36ba
docs: CSS cleanup
thescientist13 Jan 4, 2026
d0e1923
docs: css cleanup
thescientist13 Jan 4, 2026
ca677ae
docs: home page splash banner styling
thescientist13 Jan 7, 2026
3b270c1
docs: WIP home page CTA banner styling
thescientist13 Jan 8, 2026
a2123fb
docs: #202 style home page cta
thescientist13 Jan 11, 2026
9cdec1b
patch support for matching unminified import assertions in Rollup
thescientist13 Jan 12, 2026
3f42d0f
docs: #202 misc home page banner styling
thescientist13 Jan 12, 2026
f7f9c8e
docs: #202 home page how it works content and styling
thescientist13 Jan 13, 2026
4cd8d41
docs: formatting
thescientist13 Jan 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/ci-jsx-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
node: [22]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: Installing project dependencies
Expand All @@ -22,6 +22,3 @@ jobs:
- name: Test
run: |
npm run test:jsx
- name: Build
run: |
npm run docs:build
7 changes: 2 additions & 5 deletions .github/workflows/ci-jsx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
node: [22]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: Installing project dependencies
Expand All @@ -22,6 +22,3 @@ jobs:
- name: Test
run: |
npm run test:jsx
- name: Build
run: |
npm run docs:build
7 changes: 2 additions & 5 deletions .github/workflows/ci-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
node: [18, 20, 22]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: Installing project dependencies
Expand All @@ -22,6 +22,3 @@ jobs:
- name: Test
run: |
npm test
- name: Build
run: |
npm run docs:build
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
node: [18, 20, 22]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: Installing project dependencies
Expand All @@ -27,10 +27,7 @@ jobs:
npm run lint
- name: Check Types
run: |
npm run lint:types
npm run check:types
- name: Test
run: |
npm test
- name: Build
run: |
npm run docs:build
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
.vscode/
coverage/
dist/
node_modules/
node_modules/
.greenwood/
public/
docs/assets/repl.bundle.js
3 changes: 2 additions & 1 deletion .ls-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ ignore:
- .git
- coverage
- node_modules
- dist
- public
- .greenwood
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.12.0
22.18.0
9 changes: 4 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ The local development flow is based around building the docs website, using `wcc

### Commands

There are the main tasks, but you can see them all listed in _package.json#scripts_.
These are the main tasks, and you can see them all listed in _package.json#scripts_.

- `npm run docs:dev` - Builds the docs site for local development
- `npm start` - Builds a production version of the docs site and serves it locally
- `npm run sandbox` - Starts the sandbox app for live demos and testing
- `npm run dev` - Builds the docs site for local development
- `npm test` - Run all the tests
- `npm test:tdd` - Run all the tests in watch mode
- `npm run lint` - Run all linters
- `npm run format` - Auto-format all files
- `npm run check:types` - Run `tsc` to validate TypeScript types
- `npm run format` - Auto-format all file
94 changes: 0 additions & 94 deletions build.js

This file was deleted.

4 changes: 4 additions & 0 deletions docs/assets/copy-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/assets/external-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/assets/favicon.ico
Binary file not shown.
7 changes: 7 additions & 0 deletions docs/assets/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/assets/tile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/assets/wcc-logo.png
Binary file not shown.
5 changes: 5 additions & 0 deletions docs/assets/wcc-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/wcc-splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions docs/components/banner-cta/banner-cta.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.container {
width: 100%;
margin: var(--size-1) 0;
padding: var(--size-4);
background-color: #e7e8ea;
border-radius: var(--radius-4);
color: var(--color-primary);
font-size: var(--font-size-1);
}

.snippetContainer {
width: 100%;
}

.snippet {
color: var(--color-primary);
border-radius: var(--radius-4);
border: var(--radius-1) solid #c1d3cd;
box-shadow: var(--shadow-2);
margin: var(--size-px-2) 0;
text-align: center;
padding: var(--size-2);
display: block;

& pre {
font-size: var(--font-size-1);
}

& wcc-ctc-button {
display: none;
}
}

@media (min-width: 430px) {
.snippet {
& pre {
display: inline;
vertical-align: text-top;
}

& wcc-ctc-button {
display: inline;
}
}
}

@media (min-width: 768px) {
.container {
width: 80%;
margin: 0 auto;
padding: var(--size-4);
}
}

@media (min-width: 1024px) {
.container {
width: 60%;
margin: 0 auto;
padding: var(--size-4);
}
}
30 changes: 30 additions & 0 deletions docs/components/banner-cta/banner-cta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import '../ctc-button/ctc-button.tsx';
import styles from './banner-cta.module.css';

export default class BannerCta extends HTMLElement {
static code = 'npm i -D wc-compiler';

connectedCallback() {
this.render();
}

render() {
return (
<div class={styles.container}>
<p>
WCC is a NodeJS package for server-rendering native Web Components. It outputs static HTML
from your custom element definitions based on either Light DOM or Declarative Shadow DOM
usage, supports Constructable Stylesheets, includes a minimal DOM shim, and more!
</p>
<div class={styles.snippetContainer}>
<div class={styles.snippet}>
<pre>&dollar; {BannerCta.code}</pre>
<wcc-ctc-button content={BannerCta.code}></wcc-ctc-button>
</div>
</div>
</div>
);
}
}

customElements.define('wcc-banner-cta', BannerCta);
35 changes: 35 additions & 0 deletions docs/components/banner-splash/banner-splash.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.container {
width: 80%;
margin: 0 auto;
text-align: center;
}

.splash {
display: inline-block;
background-image: url(/assets/wcc-splash.png);
background-repeat: no-repeat;
background-size: contain;
font-size: var(--size-6);
color: var(--color-white);
font-weight: bold;
width: 100px;
}

.text {
display: inline;
font-size: var(--size-6);
height: 136px;
font-weight: bold;
}

@media (min-width: 900px) {
.splash {
width: 297px;
height: 136px;
}

.splash,
.text {
font-size: var(--size-10);
}
}
Loading