This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: switch UI build system to pnpm (#605)
* build: fix legacy tailwind option * build: change to use pnpm * ci: use pnpm for ui testing * ci: attempt at fixing ui test * ci: fix cache path * ci: rework stuff * ci: cache pip stuff * ci: move steps * ci: add back composite action * ci: fix path * chore: add back prettier ignore * docs: update README.md Co-authored-by: Tom-R.T.Kvalvaag <[email protected]> * docs: update src/ui/README.md Co-authored-by: Tom-R.T.Kvalvaag <[email protected]> * ci: cleanup --------- Co-authored-by: Tom-R.T.Kvalvaag <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,890 additions
and
5,254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
--- | ||
name: Compile UI assets | ||
description: Actions for building the UI assets | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
- name: Configure pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
node-version: 18 | ||
- name: Build UI | ||
shell: bash | ||
version: 8 | ||
run_install: | | ||
- cwd: src/ui | ||
- name: Compile Development assets | ||
run: | | ||
set -euxo pipefail | ||
cd src/ui | ||
npm ci --no-audit | ||
npm run build:prod | ||
pnpm -C src/ui run build:dev | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,12 +55,12 @@ repos: | |
- "types-waitress" | ||
files: ^src/ | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0 | ||
rev: v3.0.1 | ||
hooks: | ||
- id: prettier | ||
name: Format other code (CSS, HTML, JS, MD, TOML, YAML) | ||
additional_dependencies: | ||
- "[email protected].0-alpha.6" | ||
- "[email protected].1" | ||
- "prettier-plugin-toml" | ||
types: [file] | ||
files: \.(css|html|js|markdown|md|toml|yaml|yml)$ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
pyproject.toml | ||
**/.git | ||
**/node_modules | ||
**/pnpm-lock.yaml | ||
**/pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.