Skip to content

Commit a578e95

Browse files
review fixup
1 parent a1d7238 commit a578e95

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.nix/pkgs/graphite.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ let
1717
brandingTar = pkgs.fetchurl (
1818
let
1919
lockContent = builtins.readFile "${info.src}/.branding";
20-
lines = builtins.filter (s: s != []) (builtins.split "\n" lockContent);
20+
lines = builtins.filter (s: s != [ ]) (builtins.split "\n" lockContent);
2121
url = builtins.elemAt lines 0;
2222
hash = builtins.elemAt lines 1;
2323
in
2424
{
25-
url = url;
25+
url = url;
2626
sha256 = hash;
2727
}
2828
);
@@ -67,7 +67,7 @@ let
6767
export HOME="$TMPDIR"
6868
6969
pushd frontend
70-
npm run build-native${if dev then "-dev" else ""}
70+
npm run native:build-${if dev then "dev" else "production"}
7171
popd
7272
'';
7373

frontend/branding-installer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable no-console */
2+
23
import crypto from "crypto";
34
import fs from "fs";
45
import http from "http";

frontend/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
"profiling": "npm run setup && npm run wasm:build-profiling && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run wasm:watch-profiling\"",
1212
"production": "npm run setup && npm run wasm:build-production && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run wasm:watch-production\"",
1313
"---------- BUILDS ----------": "",
14-
"build": "npm run wasm:build-production && vite build",
15-
"build-dev": "npm run wasm:build-dev && vite build --mode dev",
16-
"build-native": "npm run native:build-production && vite build",
17-
"build-native-dev": "npm run native:build-dev && vite build --mode dev",
18-
"build-profiling": "npm run wasm:build-profiling && vite build --mode dev",
14+
"build": "npm run setup && npm run wasm:build-production && vite build",
15+
"build-dev": "npm run setup && npm run wasm:build-dev && vite build --mode dev",
16+
"build-profiling": "npm run setup && npm run wasm:build-profiling && vite build --mode dev",
17+
"build-native": "npm run setup && npm run native:build-production",
18+
"build-native-dev": "npm run setup && npm run native:build-dev",
1919
"---------- UTILITIES ----------": "",
2020
"lint": "eslint . && tsc --noEmit",
2121
"lint-fix": "eslint . --fix && tsc --noEmit",
2222
"---------- INTERNAL ----------": "",
2323
"setup": "node package-installer.js",
2424
"postinstall": "node branding-installer.js",
25-
"native:build-dev": "wasm-pack build ./wasm --dev --target=web --no-default-features --features native",
26-
"native:build-production": "wasm-pack build ./wasm --release --target=web --no-default-features --features native",
25+
"native:build-dev": "wasm-pack build ./wasm --dev --target=web --no-default-features --features native && vite build --mode dev",
26+
"native:build-production": "wasm-pack build ./wasm --release --target=web --no-default-features --features native && vite build",
2727
"wasm:build-dev": "wasm-pack build ./wasm --dev --target=web",
2828
"wasm:build-profiling": "wasm-pack build ./wasm --profiling --target=web",
2929
"wasm:build-production": "wasm-pack build ./wasm --release --target=web",

frontend/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"paths": {
1717
"/*": ["./*"],
1818
"@graphite/*": ["src/*"],
19-
"@graphite/../*": ["./*"],
2019
"@branding/*": ["../branding/*"]
2120
},
2221
"lib": ["ESNext", "DOM", "DOM.Iterable", "ScriptHost"]

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"scripts": {
55
"---------- DEV SERVER ----------": "",
66
"start": "cd frontend && npm start",
7-
"start-desktop": "cd frontend && npm run setup && npm run build-native-dev && cargo run -p graphite-desktop-bundle -- open",
7+
"start-desktop": "cd frontend && npm run build-native-dev && cargo run -p graphite-desktop-bundle -- open",
88
"profiling": "cd frontend && npm run profiling",
99
"production": "cd frontend && npm run production",
1010
"---------- BUILDS ----------": "",
1111
"build-dev": "cd frontend && npm run build-dev",
1212
"build-profiling": "cd frontend && npm run build-profiling",
1313
"build": "cd frontend && npm run build",
14-
"build-desktop": "cd frontend && npm run setup && npm run build-native && cargo run -r -p graphite-desktop-bundle",
15-
"build-desktop-dev": "cd frontend && npm run setup && npm run build-native-dev && cargo run -p graphite-desktop-bundle",
14+
"build-desktop": "cd frontend && npm run build-native && cargo run -r -p graphite-desktop-bundle",
15+
"build-desktop-dev": "cd frontend && npm run build-native-dev && cargo run -p graphite-desktop-bundle",
1616
"---------- UTILITIES ----------": "",
1717
"lint": "cd frontend && npm run lint",
1818
"lint-fix": "cd frontend && npm run lint-fix"

0 commit comments

Comments
 (0)