Skip to content

Commit

Permalink
feature/issue 26 header component (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: Owen Buckley <owenbuckley13@gmail.com>
  • Loading branch information
Auhseh and thescientist13 authored May 23, 2024
1 parent 363538d commit 6802dcd
Show file tree
Hide file tree
Showing 14 changed files with 688 additions and 14 deletions.
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const config = {
docs: {
autodocs: "tag",
},
staticDirs: ["../src"],
};

export default config;
15 changes: 14 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
import eslintConfigPrettier from "eslint-config-prettier";
import babelParser from "@babel/eslint-parser";

export default [
{
languageOptions: {
parser: babelParser,
parserOptions: {
ecmaVersion: 2022,
sourceType: "module",
requireConfigFile: false,
babelOptions: {
plugins: ["@babel/plugin-syntax-import-assertions"],
},
},
globals: {
browser: true,
node: true,
},
},
ignores: [".greenwood/*", "node_modules/*", "public/*", "reports/*"],
ignores: [
".greenwood/*",
"node_modules/*",
"public/*",
"reports/*",
"storybook-static/**",
"patches/**",
],
rules: {
"comma-dangle": [2, "never"],
"no-cond-assign": 2,
Expand Down
3 changes: 3 additions & 0 deletions greenwood.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { greenwoodPluginImportRaw } from "@greenwood/plugin-import-raw";

export default {
prerender: true,
plugins: [greenwoodPluginImportRaw()],
};
122 changes: 122 additions & 0 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"clean": "rimraf public .greenwood storybook-static",
"build": "greenwood build",
"build": "node --loader ./node_modules/@greenwood/cli/src/loader.js ./node_modules/.bin/greenwood build",
"dev": "greenwood develop",
"serve": "npm run clean && npm run build && greenwood serve",
"story:dev": "storybook dev -p 6006",
Expand All @@ -38,9 +38,12 @@
"open-props": "^1.7.4"
},
"devDependencies": {
"@babel/eslint-parser": "^7.24.5",
"@babel/plugin-syntax-import-assertions": "^7.24.1",
"@chromatic-com/storybook": "^1.3.1",
"@esm-bundle/chai": "^4.3.4-fix.0",
"@greenwood/cli": "^0.30.0-alpha.2",
"@greenwood/plugin-import-raw": "^0.30.0-alpha.2",
"@ls-lint/ls-lint": "^1.10.0",
"@storybook/addon-essentials": "^8.0.6",
"@storybook/addon-links": "^8.0.6",
Expand Down
14 changes: 14 additions & 0 deletions patches/wc-compiler+0.13.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/wc-compiler/src/dom-shim.js b/node_modules/wc-compiler/src/dom-shim.js
index be289a3..dd4692a 100644
--- a/node_modules/wc-compiler/src/dom-shim.js
+++ b/node_modules/wc-compiler/src/dom-shim.js
@@ -102,6 +102,9 @@ class ShadowRoot extends DocumentFragment {
super();
this.mode = options.mode || 'closed';
this.adoptedStyleSheets = [];
+ // TODO not sure if this is the right base class for these?
+ this.querySelector = noop;
+ this.querySelectorAll = noop;
}
}

23 changes: 12 additions & 11 deletions src/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.
Loading

0 comments on commit 6802dcd

Please sign in to comment.