From 97af667e2f5cfe95524a17c8e3b813ad82b45c18 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 19 May 2020 15:45:09 +0100 Subject: [PATCH] routify config for electron --- packages/builder/.gitignore | 3 ++- packages/builder/package.json | 6 +++--- packages/builder/src/App.svelte | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/builder/.gitignore b/packages/builder/.gitignore index 6e90239f92..94ba827047 100644 --- a/packages/builder/.gitignore +++ b/packages/builder/.gitignore @@ -4,4 +4,5 @@ node_modules_win package-lock.json yarn.lock release/ -dist/ \ No newline at end of file +dist/ +routify diff --git a/packages/builder/package.json b/packages/builder/package.json index dfb8173c83..cb91f2ce42 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -4,11 +4,11 @@ "license": "AGPL-3.0", "private": true, "scripts": { - "build": "rollup -c", - "start": "routify -c rollup", + "build": "routify --routify-dir routify -b && rollup -c", + "start": "routify --routify-dir routify -c rollup", "test": "jest", "test:watch": "jest --watchAll", - "dev:builder": "routify -c rollup", + "dev:builder": "routify --routify-dir routify -c rollup", "rollup": "rollup -c -w" }, "jest": { diff --git a/packages/builder/src/App.svelte b/packages/builder/src/App.svelte index 86c7580a56..c6b76090f9 100644 --- a/packages/builder/src/App.svelte +++ b/packages/builder/src/App.svelte @@ -2,7 +2,7 @@ import Modal from "svelte-simple-modal" import { onMount } from "svelte" import { Router, basepath } from "@sveltech/routify" - import { routes } from "@sveltech/routify/tmp/routes" + import { routes } from "../routify/routes" import { store, initialise } from "builderStore" import AppNotification, { showAppNotification,