Skip to content
Merged
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: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
node_modules/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}


- name: npm ci
run: npm ci

- name: Build
run: cargo build --release

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:

- name: Set build timestamp
run: echo "BUILD_TIMESTAMP=$(date --rfc-3339=seconds --utc)" >> $GITHUB_ENV

- name: npm ci
run: npm ci

- name: Build page
env:
BUILD_COMMIT: ${{ github.sha }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
node_modules/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install trunk
Expand All @@ -40,6 +41,9 @@ jobs:
- name: Set build timestamp
run: echo "BUILD_TIMESTAMP=$(date --rfc-3339=seconds --utc)" >> $GITHUB_ENV

- name: npm ci
run: npm ci

- name: Build page
env:
BUILD_COMMIT: ${{ github.sha }}
Expand Down
8 changes: 0 additions & 8 deletions Trunk.toml

This file was deleted.

10 changes: 5 additions & 5 deletions assets/style.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// only required if you are using the icons-far or icons-fab feature
// $fa-font-path: "webfonts";
@import "../target/node_modules/@fortawesome/fontawesome-free/7.1.0/scss/fontawesome";
@import "../target/node_modules/@fortawesome/fontawesome-free/7.1.0/scss/brands";
@import "../node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
@import "../node_modules/@fortawesome/fontawesome-free/scss/brands";

// PatternFly styles
@import "../target/node_modules/@patternfly/patternfly/6.4.0/patternfly.scss";
@import "../target/node_modules/@patternfly/patternfly/6.4.0/patternfly-addons.scss";
@import "../node_modules/@patternfly/patternfly/patternfly.scss";
@import "../node_modules/@patternfly/patternfly/patternfly-addons.scss";

@font-face {
font-family: "Font Awesome 7 Brands";
font-style: normal;
font-weight: 400;
font-display: block;
src: url("./webfonts/fa-brands-400.woff2");
}
}
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

<link data-trunk rel="scss" href="assets/style.scss">
<!-- This path needs to be here, otherwise icons won't render correctly -->
<link data-trunk rel="copy-dir" href="target/node_modules/@patternfly/patternfly/6.4.0/assets" data-target-path="assets/">
<link data-trunk rel="copy-dir" href="node_modules/@patternfly/patternfly/assets" data-target-path="assets/">
<link data-trunk rel="copy-dir" href="assets/images">

<!-- include when using the icons-far or icons-fab feature -->
<!-- also requires includes in the assets/styles.scss file -->
<link data-trunk rel="copy-dir" href="target/node_modules/@fortawesome/fontawesome-free/7.1.0/webfonts">
<link data-trunk rel="copy-dir" href="node_modules/@fortawesome/fontawesome-free/webfonts">

<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-initializer="assets/initializer.mjs"/>

Expand Down
31 changes: 31 additions & 0 deletions package-lock.json

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

9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "patternfly-yew-quickstart",
"version": "0.0.1",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^7",
"@patternfly/patternfly": "^6"
}
}