Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node: [22]
node: [24]

steps:
- uses: actions/checkout@v6
Expand All @@ -19,10 +19,6 @@ jobs:
- name: Installing project dependencies
run: |
npm ci
# Greenwood specific patches
- name: Run patch-package
run: |
npx patch-package
- name: Setup Playwright
run: |
npx playwright install --with-deps
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.18.0
24.4.0
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ To develop for the project, you'll want to follow these steps:
1. Clone the repository
1. Have [NodeJS LTS](https://nodejs.org) installed and / or use `nvm` (see below)
1. Run `npm ci`
1. Run `npx patch-package`
1. Run `npx playwright install`

### NVM
Expand Down
7 changes: 0 additions & 7 deletions greenwood.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ import { greenwoodPluginMarkdown } from '@greenwood/plugin-markdown';
import { greenwoodPluginImportJsx } from '@greenwood/plugin-import-jsx';
import { greenwoodPluginCssModules } from '@greenwood/plugin-css-modules';
import { greenwoodPluginImportRaw } from '@greenwood/plugin-import-raw';
import fs from 'node:fs';

// NOTE: Greenwood does not run the copy plugin in dev, so we have to do this manually for now
fs.copyFileSync(
new URL('./src/effect.js', import.meta.url),
new URL('./node_modules/wc-compiler/src/effect.js', import.meta.url),
);

const config: Config = {
activeContent: true,
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[build]
publish = "public/"
command = "npx patch-package && npm run docs:build"
command = "npm run docs:build"

[build.processing]
skip_processing = true

[build.environment]
NODE_VERSION = "22.18.0"
NODE_VERSION = "24.4.0"
575 changes: 139 additions & 436 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 14 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
"test:docs:tdd": "vitest",
"prepare": "husky"
},
"overrides": {
"wc-compiler": "file:.",
"@greenwood/cli": {
"wc-compiler": "file:../../../../"
},
"@greenwood/plugin-import-jsx": {
"wc-compiler": "file:../../../../"
}
},
"dependencies": {
"@projectevergreen/acorn-jsx-esm": "~0.1.0",
"acorn": "^8.14.0",
Expand All @@ -68,11 +77,11 @@
"devDependencies": {
"@double-great/stylelint-a11y": "^3.0.2",
"@eslint/js": "^9.39.1",
"@greenwood/cli": "^0.34.0-alpha.4",
"@greenwood/plugin-css-modules": "^0.34.0-alpha.4",
"@greenwood/plugin-import-jsx": "^0.34.0-alpha.4",
"@greenwood/plugin-import-raw": "^0.34.0-alpha.4",
"@greenwood/plugin-markdown": "^0.34.0-alpha.4",
"@greenwood/cli": "^0.34.0-alpha.5",
"@greenwood/plugin-css-modules": "^0.34.0-alpha.5",
"@greenwood/plugin-import-jsx": "^0.34.0-alpha.5",
"@greenwood/plugin-import-raw": "^0.34.0-alpha.5",
"@greenwood/plugin-markdown": "^0.34.0-alpha.5",
"@ls-lint/ls-lint": "^2.3.1",
"@mapbox/rehype-prism": "^0.8.0",
"@types/mocha": "^10.0.10",
Expand All @@ -91,7 +100,6 @@
"lint-staged": "^16.2.6",
"mocha": "^9.2.2",
"open-props": "^1.7.4",
"patch-package": "^8.0.1",
"playwright": "^1.58.2",
"prettier": "^3.6.2",
"prism-themes": "^1.9.0",
Expand Down
10 changes: 0 additions & 10 deletions patches/@greenwood+cli+0.34.0-alpha.4.patch

This file was deleted.

13 changes: 0 additions & 13 deletions patches/@greenwood+plugin-import-jsx+0.34.0-alpha.4.patch

This file was deleted.

2 changes: 2 additions & 0 deletions src/wcc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { serialize } from 'parse5';
import { transform } from 'sucrase';
import fs from 'fs';

console.log('WCC: Rendering to string from local version!!!');

function isCustomElementDefinitionNode(node) {
const { expression } = node;

Expand Down