Skip to content

Commit

Permalink
build: update to use component theme files
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Dec 6, 2024
1 parent d3440b8 commit 75c70c7
Show file tree
Hide file tree
Showing 82 changed files with 11,321 additions and 12,965 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"@custom-elements-manifest/analyzer": "^0.9.0",
"@geometricpanda/storybook-addon-badges": "^2.0.2",
"@lit/react": "^1.0.4",
"@netlify/build": "^29.17.3",
"@netlify/build": "^29.56.1",
"@open-wc/dev-server-hmr": "^0.2.0",
"@open-wc/testing": "^4.0.0",
"@playwright/test": "^1.44.0",
Expand Down Expand Up @@ -142,8 +142,8 @@
"@webcomponents/webcomponentsjs": "^2.8.0",
"alex": "^11.0.1",
"cem-plugin-module-file-extensions": "^0.0.5",
"chalk": "^5.0.1",
"chromedriver": "^130.0.1",
"colors": "^1.4.0",
"common-tags": "^1.8.2",
"custom-elements-manifest": "^2.0.0",
"debounce": "^2.0.0",
Expand Down
5 changes: 2 additions & 3 deletions projects/documentation/scripts/build-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const outDir = path.resolve(projectDir, '_site');
const { files } = yargs(hideBin(process.argv)).argv;

async function bundle(fileName) {
let { code, map } = await bundleAsync({
return bundleAsync({
filename: fileName,
minify: true,
errorRecovery: true,
Expand All @@ -52,13 +52,12 @@ async function bundle(fileName) {
},
},
});
return { code, map };
}

async function main() {
for await (const cssSource of await fg(`${projectDir}/${files}`)) {
const fileName = cssSource.split(path.sep).at(-1);
const { code, map } = await bundle(cssSource);
const { code } = await bundle(cssSource);
await fs.writeFile(path.resolve(outDir, fileName), code);
}
process.exit(0);
Expand Down
1 change: 1 addition & 0 deletions projects/documentation/src/components/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ governing permissions and limitations under the License.
@import '@spectrum-web-components/styles/tokens/global-vars.css';
@import '@spectrum-web-components/styles/tokens/spectrum/global-vars.css';
@import '@spectrum-web-components/styles/tokens/spectrum/custom-vars.css';
@import '@spectrum-web-components/styles/tokens/spectrum/component-bridge.css';
@import '@spectrum-web-components/styles/src/spectrum-heading.css';
@import '@spectrum-web-components/styles/src/heading-overrides.css';
@import '@spectrum-web-components/styles/src/spectrum-body.css';
Expand Down
Loading

0 comments on commit 75c70c7

Please sign in to comment.