-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update web example for Grain 0.4 (#2)
- Loading branch information
Showing
53 changed files
with
75 additions
and
33,423 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules | ||
**/*.gr.wasm | ||
stdlib/*.md |
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
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,4 +1,4 @@ | ||
import {anotherHello} from './another' | ||
import { anotherHello } from "./another" | ||
|
||
print('Hello, world!') | ||
print("Hello, world!") | ||
print(anotherHello) |
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,10 @@ | ||
<html> | ||
<head> | ||
<script src="js/grain-runtime-browser.js"></script> | ||
<script src="node_modules/@grain/js-runner/dist/grain-runner-browser.js"></script> | ||
<script> | ||
let locator = Grain.defaultURLLocator(['/', '/stdlib']); | ||
let locator = Grain.defaultURLLocator(['/', 'node_modules/@grain/stdlib']); | ||
let GrainRunner = Grain.buildGrainRunner(locator); | ||
GrainRunner.runURL('hello.wasm'); | ||
GrainRunner.runURL('hello.gr.wasm'); | ||
</script> | ||
</head> | ||
</html> |
Oops, something went wrong.