mirror of
https://github.com/NotAShelf/nix-evaluator-stats.git
synced 2026-04-12 14:27:41 +00:00
Compare commits
1 commit
main
...
notashelf/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63afa1b55a |
5 changed files with 12 additions and 29 deletions
3
.github/workflows/check.yml
vendored
3
.github/workflows/check.yml
vendored
|
|
@ -25,9 +25,6 @@ jobs:
|
||||||
|
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build core packages
|
|
||||||
run: pnpm -r --filter '!@ns/web' build
|
|
||||||
|
|
||||||
- run: pnpm run check
|
- run: pnpm run check
|
||||||
- run: pnpm run lint
|
- run: pnpm run lint
|
||||||
- run: pnpm run fmt --check
|
- run: pnpm run fmt --check
|
||||||
|
|
|
||||||
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
|
@ -35,16 +35,13 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build core packages
|
- name: Build
|
||||||
run: pnpm -r --filter '!@ns/web' build
|
run: GITHUB_PAGES=true pnpm run build
|
||||||
|
|
||||||
- name: Build web app
|
|
||||||
run: GITHUB_PAGES=true pnpm run build:web
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v4
|
uses: actions/upload-pages-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: packages/web/dist
|
path: dist
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
|
|
|
||||||
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -1,7 +1,4 @@
|
||||||
# Nix
|
|
||||||
/.direnv/
|
/.direnv/
|
||||||
/result*
|
/node_modules/
|
||||||
|
/dist/
|
||||||
# pnpm
|
/result*/
|
||||||
**/node_modules/
|
|
||||||
**/dist/
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
/node_modules/
|
||||||
|
/dist/
|
||||||
/.direnv
|
/.direnv
|
||||||
.eslintcache
|
.eslintcache
|
||||||
*.md
|
*.md
|
||||||
*.yml
|
*.yml
|
||||||
.DS_Store
|
.DS_Store
|
||||||
**/node_modules
|
|
||||||
**/dist
|
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,6 @@ regressions in subsequent exports.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
NS provides both a web application for pretty visuals, and a terminal client (a
|
|
||||||
TUI) for rendering the statistics from your terminal.
|
|
||||||
|
|
||||||
### Web
|
|
||||||
|
|
||||||
Usage instructions are provided in the initial page. Simply navigate to the site
|
Usage instructions are provided in the initial page. Simply navigate to the site
|
||||||
and provide the JSON export (or a file) to render the statistics. The number of
|
and provide the JSON export (or a file) to render the statistics. The number of
|
||||||
rendered fields might differ based on your Nix version or implementation (Lix,
|
rendered fields might differ based on your Nix version or implementation (Lix,
|
||||||
|
|
@ -66,7 +61,7 @@ analysis you may compare two _named_ analyses at a time.
|
||||||
> UI bugs or areas where UI polish is very clearly missing. Please crate an
|
> UI bugs or areas where UI polish is very clearly missing. Please crate an
|
||||||
> issue if the generated graph or the site UI looks off. Thanks :)
|
> issue if the generated graph or the site UI looks off. Thanks :)
|
||||||
|
|
||||||
#### Snapshots
|
### Snapshots
|
||||||
|
|
||||||
Snapshots are an "experimental" (just means they're new and unpolished) feature
|
Snapshots are an "experimental" (just means they're new and unpolished) feature
|
||||||
that lets you save an analysis in your browser storage with a name to be used
|
that lets you save an analysis in your browser storage with a name to be used
|
||||||
|
|
@ -77,12 +72,9 @@ You can save an analysis as a snapshot from the save button on the bottom right.
|
||||||
|
|
||||||
## Hacking
|
## Hacking
|
||||||
|
|
||||||
This project is built with various web technologies. Namely we use Vite,
|
This project is built with Vite, using Typescript-React (`.tsx`) and SolidJS. A
|
||||||
Typescript-React (`.tsx`) and SolidJS for most of our user interfaces.
|
Nix shell is provided, and dependencies can be fetched with `pnpm` while inside
|
||||||
|
the dev shell.
|
||||||
The recommended approach for resolving dependencies is using Nix; a Nix shell is
|
|
||||||
provided, and dependencies can be fetched with `pnpm` while inside the dev
|
|
||||||
shell.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Run the live server
|
# Run the live server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue