From 881ebb6006eeedc799b408c99da2042ec6bc3d87 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Mon, 23 May 2022 17:46:27 +0300 Subject: refactor(demo): migrate to Vite ditch parcel v1, and replace it with Vite. Vite is much faster and smaller, compared to parcel --- demo/README.md | 2 +- demo/index.html | 33 +++++++++++++++++++++++++++++++++ demo/src/index.html | 33 --------------------------------- demo/vite.config.js | 16 ++++++++++++++++ 4 files changed, 50 insertions(+), 34 deletions(-) create mode 100644 demo/index.html delete mode 100644 demo/src/index.html create mode 100644 demo/vite.config.js (limited to 'demo') diff --git a/demo/README.md b/demo/README.md index 9be5c19..a8e0b27 100644 --- a/demo/README.md +++ b/demo/README.md @@ -4,6 +4,6 @@ AVR8js + Monaco Editor. To run this demo: 1. Install dependencies: `npm install` 2. Start the code: `npm start` -3. Go to http://localhost:1234/ and start tinkering +3. Go to http://localhost:3000/ and start tinkering The demo is configured to automatically reload the app whenever you change the code. diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..1156bd1 --- /dev/null +++ b/demo/index.html @@ -0,0 +1,33 @@ + + + + + + + AVR8js LED Demo + + + +

AVR8js LED Demo

+
+
+ + +
+
+ + + +
+
+
+
+
+

+        

+      
+
+ + + + diff --git a/demo/src/index.html b/demo/src/index.html deleted file mode 100644 index 1467176..0000000 --- a/demo/src/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - AVR8js LED Demo - - - -

AVR8js LED Demo

-
-
- - -
-
- - - -
-
-
-
-
-

-        

-      
-
- - - - diff --git a/demo/vite.config.js b/demo/vite.config.js new file mode 100644 index 0000000..bf56dfc --- /dev/null +++ b/demo/vite.config.js @@ -0,0 +1,16 @@ +import { join } from 'path'; + +/** + * @type {import('vite').UserConfig} + */ +const config = { + base: '', + resolve: { + alias: { avr8js: join(__dirname, '../src') }, + }, + server: { + open: true, + }, +}; + +export default config; -- cgit v1.2.3