Skip to content

Commit

Permalink
Refactor runtime as a library, client as iframe
Browse files Browse the repository at this point in the history
  * Runtime now exports useful functions and elements
  * Client package provides just the iframe client
  • Loading branch information
taybenlor committed Oct 10, 2021
1 parent f2464ac commit bb91154
Show file tree
Hide file tree
Showing 21 changed files with 3,026 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"targets": {
"make-run": {
"hosting": {
"runtime": [
"client": [
"make-run"
],
"website": [
Expand All @@ -14,4 +14,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"hosting": [
{
"target": "runtime",
"public": "packages/runtime/dist",
"target": "client",
"public": "packages/client/dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"headers": [
{
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
"scripts": {
"prepare": "npx husky install",
"bootstrap": "npx lerna bootstrap",
"dev": "npx lerna exec npm run dev",
"dev": "echo TODO dev command, for now just use dev in client and website",
"build:host": "cd packages/host && npm run build",
"build:client": "cd packages/client && npm run build",
"build:wasi": "cd packages/wasi && npm run build",
"build:terminal": "cd packages/terminal && npm run build",
"build:runtime": "cd packages/runtime && npm run build",
"build:website": "cd packages/website && npm run build",
"build": "npm run build:host && npm run build:wasi && npm run build:terminal && npm run build:runtime && npm run build:website",
"build": "npm run build:host && npm run build:wasi && npm run build:terminal && npm run build:runtime && npm run build:client && npm run build:website",
"build:deploy": "npm run bootstrap && npx lerna exec npm install && npm run build"
},
"eslintConfig": {
Expand Down
15 changes: 15 additions & 0 deletions packages/client/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions packages/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />

<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="stylesheet" type="text/css" href="/src/style.css" />

<meta name="Description" content="Runs code in your browser" />
<meta name="viewport" content="width=device-width,initial-scale=1" />

<title>Runno</title>
</head>
<body class="fullscreen">
<runno-run controls class="fullscreen"></runno-run>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit bb91154

Please sign in to comment.