Skip to content

Commit 2cef925

Browse files
Merge remote-tracking branch 'origin/seperate-icons-in-vite-build' into nixpkgs-testing
2 parents 5242f8c + 7c23071 commit 2cef925

File tree

13 files changed

+137
-50
lines changed

13 files changed

+137
-50
lines changed

frontend/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@
1313
"---------- BUILDS ----------": "",
1414
"build": "npm run wasm:build-production && vite build",
1515
"build-dev": "npm run wasm:build-dev && vite build",
16-
"build-native": "npm run native:build-production && vite build",
17-
"build-native-dev": "npm run native:build-dev && vite build",
1816
"build-profiling": "npm run wasm:build-profiling && vite build",
17+
"build-desktop": "npm run desktop:build-production && vite build --mode desktop && vite build --mode icons",
18+
"build-desktop-placeholder-icons": "npm run desktop:build-production && vite build --mode desktop && vite build --mode icons-placeholder",
19+
"build-desktop-icons": "vite build --mode icons",
20+
"build-desktop-dev": "npm run desktop:build-dev && vite build",
1921
"---------- UTILITIES ----------": "",
2022
"lint": "eslint . && tsc --noEmit",
2123
"lint-fix": "eslint . --fix && tsc --noEmit",
2224
"---------- INTERNAL ----------": "",
2325
"setup": "node package-installer.js",
24-
"native:build-dev": "wasm-pack build ./wasm --dev --target=web --features native",
25-
"native:build-production": "wasm-pack build ./wasm --release --target=web --features native",
26+
"desktop:build-dev": "wasm-pack build ./wasm --dev --target=web --features native",
27+
"desktop:build-production": "wasm-pack build ./wasm --release --target=web --features native",
2628
"wasm:build-dev": "wasm-pack build ./wasm --dev --target=web",
2729
"wasm:build-profiling": "wasm-pack build ./wasm --profiling --target=web",
2830
"wasm:build-production": "wasm-pack build ./wasm --release --target=web",

frontend/src/components/views/Graph.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import { fade } from "svelte/transition";
55
66
import type { Editor } from "@graphite/editor";
7+
import type { IconName } from "@graphite/icons";
78
import type { FrontendGraphInput, FrontendGraphOutput } from "@graphite/messages";
89
import type { NodeGraphState } from "@graphite/state-providers/node-graph";
9-
import type { IconName } from "@graphite/utility-functions/icons";
1010
1111
import NodeCatalog from "@graphite/components/floating-menus/NodeCatalog.svelte";
1212
import LayoutCol from "@graphite/components/layout/LayoutCol.svelte";

frontend/src/components/widgets/buttons/IconButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { type IconName, type IconSize } from "@graphite/utility-functions/icons";
2+
import { type IconName, type IconSize } from "@graphite/icons";
33
44
import IconLabel from "@graphite/components/widgets/labels/IconLabel.svelte";
55

frontend/src/components/widgets/buttons/PopoverButton.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
2+
import { type IconName, type PopoverButtonStyle } from "@graphite/icons";
3+
24
import type { MenuDirection } from "@graphite/messages";
3-
import { type IconName, type PopoverButtonStyle } from "@graphite/utility-functions/icons";
45
56
import FloatingMenu from "@graphite/components/layout/FloatingMenu.svelte";
67
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";

frontend/src/components/widgets/buttons/TextButton.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
2+
import type { IconName } from "@graphite/icons";
3+
24
import type { MenuListEntry } from "@graphite/messages";
3-
import type { IconName } from "@graphite/utility-functions/icons";
45
56
import MenuList from "@graphite/components/floating-menus/MenuList.svelte";
67
import ConditionalWrapper from "@graphite/components/layout/ConditionalWrapper.svelte";

frontend/src/components/widgets/inputs/CheckboxInput.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
22
import { createEventDispatcher } from "svelte";
33
4-
import type { IconName } from "@graphite/utility-functions/icons";
4+
import type { IconName } from "@graphite/icons";
55
66
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";
77
import IconLabel from "@graphite/components/widgets/labels/IconLabel.svelte";

frontend/src/components/widgets/labels/IconLabel.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { type IconName, ICONS, ICON_SVG_STRINGS } from "@graphite/utility-functions/icons";
2+
import { type IconName, ICONS, ICON_SVG_STRINGS } from "@graphite/icons";
33
44
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";
55

frontend/src/components/widgets/labels/UserInputLabel.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<script lang="ts">
22
import { getContext } from "svelte";
33
4+
import type { IconName } from "@graphite/icons";
5+
46
import { type KeyRaw, type LayoutKeysGroup, type Key, type MouseMotion } from "@graphite/messages";
57
import type { FullscreenState } from "@graphite/state-providers/fullscreen";
6-
import type { IconName } from "@graphite/utility-functions/icons";
78
import { platformIsMac } from "@graphite/utility-functions/platform";
89
910
import LayoutRow from "@graphite/components/layout/LayoutRow.svelte";
File renamed without changes.

frontend/src/messages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import { Transform, Type, plainToClass } from "class-transformer";
44

5-
import { type PopoverButtonStyle, type IconName, type IconSize } from "@graphite/utility-functions/icons";
5+
import { type PopoverButtonStyle, type IconName, type IconSize } from "@graphite/icons";
6+
67
import { type EditorHandle } from "@graphite-frontend/wasm/pkg/graphite_wasm.js";
78

89
export class JsMessage {

0 commit comments

Comments
 (0)