Skip to content

Commit

Permalink
Migrate vite (#248)
Browse files Browse the repository at this point in the history
* checkpoint

* checkpoint

* handle moc

* worker

* fix

* simplify vite.config

* Refactoring for Vite migration (#249)

* Misc

* Remove extraneous config

* simplify vite.config and bump versions

* bump dependencies

* fix

* fix

* remove eval in didToJs

* fmt

* Update hash for dfx version 0.23.0

* More refactoring for Vite migration (#252)

* Reintroduce 'global' for dev server

* Refactor to use 'Motoko' promise instead of global variable

* Misc

* Only run 'eval()' in 'loadMoc()' at most once

* Reformat

* chunking

* fix

* rename

---------

Co-authored-by: Ryan Vandersmith <[email protected]>
Co-authored-by: krpeacock <[email protected]>
  • Loading branch information
3 people committed Sep 5, 2024
1 parent 81d7d81 commit 2ccaf64
Show file tree
Hide file tree
Showing 20 changed files with 5,477 additions and 34,881 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
83 changes: 0 additions & 83 deletions craco.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@
"source": ["build"],
"type": "assets"
}
}
},
"output_env_file": ".env"
}
8 changes: 4 additions & 4 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="A playground for the Internet Computer's native Motoko language, brought to you by DFINITY"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>Motoko Playground - DFINITY</title>
</head>
<script type="module" src="src/index"></script></head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
Expand Down
Loading

0 comments on commit 2ccaf64

Please sign in to comment.