-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor runtime package to be a vite library (#256)
- Loading branch information
Showing
32 changed files
with
246 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/runtime/src/elements/terminal.ts → packages/runtime/lib/elements/terminal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export { TerminalElement } from "./elements/terminal"; | ||
export { EditorElement } from "./elements/editor"; | ||
export { CodeElement } from "./elements/code"; | ||
export { ControlsElement } from "./elements/controls"; | ||
export { RunElement } from "./elements/run"; | ||
export { WASIElement } from "./elements/wasi"; | ||
export { FileElement } from "./elements/file"; | ||
export { RunnoProvider } from "./provider"; | ||
export { headlessRunCode, headlessRunFS } from "./headless"; | ||
export { stripWhitespace, fetchWASIFS, elementCodeContent } from "./helpers"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "@runno/runtime", | ||
"type": "module", | ||
"author": "Ben Taylor <[email protected]>", | ||
"description": "Runtime for @runno", | ||
"website": "https://runno.dev", | ||
|
@@ -16,10 +17,10 @@ | |
"dist" | ||
], | ||
"main": "./dist/runtime.umd.js", | ||
"module": "./dist/runtime.mjs", | ||
"module": "./dist/runtime.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/runtime.mjs", | ||
"import": "./dist/runtime.js", | ||
"require": "./dist/runtime.umd.js" | ||
} | ||
}, | ||
|
@@ -31,7 +32,7 @@ | |
"dev": "vite", | ||
"watch": "vite build --watch", | ||
"build:docs": "typedoc --options typedoc.config.cjs", | ||
"build:package": "tsc && vite build", | ||
"build:package": "tsc --noEmit && vite build", | ||
"build": "npm run build:docs && npm run build:package", | ||
"serve": "vite preview", | ||
"lint": "npx eslint src" | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def say_hello(): | ||
print("Hello from package") |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a test file. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
export { TerminalElement } from "./elements/terminal"; | ||
export { EditorElement } from "./elements/editor"; | ||
export { CodeElement } from "./elements/code"; | ||
export { ControlsElement } from "./elements/controls"; | ||
export { RunElement } from "./elements/run"; | ||
export { WASIElement } from "./elements/wasi"; | ||
export { FileElement } from "./elements/file"; | ||
export { RunnoProvider } from "./provider"; | ||
export { headlessRunCode, headlessRunFS } from "./headless"; | ||
export { stripWhitespace, fetchWASIFS, elementCodeContent } from "./helpers"; | ||
import "../lib/main"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters