forked from finos/morphir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting up compilation of morphir-elm-compiler
- Loading branch information
1 parent
d15443e
commit 548dccc
Showing
27 changed files
with
264 additions
and
228 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 |
---|---|---|
|
@@ -18,4 +18,4 @@ zig-out/ | |
|
||
# Build Artifacts | ||
out/ | ||
|
||
dist/ |
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,60 +1,57 @@ | ||
{ | ||
"type": "application", | ||
"source-directories": [ | ||
"../src", | ||
"src" | ||
], | ||
"elm-version": "0.19.1", | ||
"dependencies": { | ||
"direct": { | ||
"TSFoster/elm-uuid": "4.2.0", | ||
"chain-partners/elm-bignum": "1.0.1", | ||
"cuducos/elm-format-number": "8.1.4", | ||
"dillonkearns/elm-markdown": "7.0.0", | ||
"dosarf/elm-tree-view": "3.0.0", | ||
"elm/browser": "1.0.2", | ||
"elm/core": "1.0.5", | ||
"elm/html": "1.0.0", | ||
"elm/http": "2.0.0", | ||
"elm/json": "1.1.3", | ||
"elm/parser": "1.1.0", | ||
"elm/random": "1.0.0", | ||
"elm/regex": "1.0.0", | ||
"elm/svg": "1.0.1", | ||
"elm/time": "1.0.0", | ||
"elm/url": "1.0.0", | ||
"elm-community/array-extra": "2.3.0", | ||
"elm-community/graph": "6.0.0", | ||
"elm-community/list-extra": "8.2.3", | ||
"elm-community/maybe-extra": "5.2.0", | ||
"elm-community/random-extra": "3.2.0", | ||
"elm-explorations/markdown": "1.0.0", | ||
"justinmimbs/date": "4.0.1", | ||
"mdgriffith/elm-ui": "1.1.8", | ||
"pzp1997/assoc-list": "1.0.0", | ||
"rundis/elm-bootstrap": "5.2.0", | ||
"stil4m/elm-syntax": "7.2.0" | ||
}, | ||
"indirect": { | ||
"TSFoster/elm-bytes-extra": "1.3.0", | ||
"TSFoster/elm-md5": "2.0.1", | ||
"TSFoster/elm-sha1": "2.1.1", | ||
"avh4/elm-color": "1.0.0", | ||
"avh4/elm-fifo": "1.0.4", | ||
"danfishgold/base64-bytes": "1.1.0", | ||
"elm/bytes": "1.0.8", | ||
"elm/file": "1.0.5", | ||
"elm/virtual-dom": "1.0.2", | ||
"elm-community/intdict": "3.0.0", | ||
"elm-community/json-extra": "4.2.0", | ||
"myrho/elm-round": "1.0.4", | ||
"rtfeldman/elm-hex": "1.0.0", | ||
"rtfeldman/elm-iso8601-date-strings": "1.1.3", | ||
"stil4m/structured-writer": "1.0.2" | ||
} | ||
"type": "application", | ||
"source-directories": ["../../../src", "src/elm"], | ||
"elm-version": "0.19.1", | ||
"dependencies": { | ||
"direct": { | ||
"TSFoster/elm-uuid": "4.2.0", | ||
"chain-partners/elm-bignum": "1.0.1", | ||
"cuducos/elm-format-number": "8.1.4", | ||
"dillonkearns/elm-markdown": "7.0.0", | ||
"dosarf/elm-tree-view": "3.0.0", | ||
"elm/browser": "1.0.2", | ||
"elm/core": "1.0.5", | ||
"elm/html": "1.0.0", | ||
"elm/http": "2.0.0", | ||
"elm/json": "1.1.3", | ||
"elm/parser": "1.1.0", | ||
"elm/random": "1.0.0", | ||
"elm/regex": "1.0.0", | ||
"elm/svg": "1.0.1", | ||
"elm/time": "1.0.0", | ||
"elm/url": "1.0.0", | ||
"elm-community/array-extra": "2.3.0", | ||
"elm-community/graph": "6.0.0", | ||
"elm-community/list-extra": "8.2.3", | ||
"elm-community/maybe-extra": "5.2.0", | ||
"elm-community/random-extra": "3.2.0", | ||
"elm-explorations/markdown": "1.0.0", | ||
"justinmimbs/date": "4.0.1", | ||
"mdgriffith/elm-ui": "1.1.8", | ||
"pzp1997/assoc-list": "1.0.0", | ||
"rundis/elm-bootstrap": "5.2.0", | ||
"stil4m/elm-syntax": "7.2.0" | ||
}, | ||
"test-dependencies": { | ||
"direct": {}, | ||
"indirect": {} | ||
"indirect": { | ||
"TSFoster/elm-bytes-extra": "1.3.0", | ||
"TSFoster/elm-md5": "2.0.1", | ||
"TSFoster/elm-sha1": "2.1.1", | ||
"avh4/elm-color": "1.0.0", | ||
"avh4/elm-fifo": "1.0.4", | ||
"danfishgold/base64-bytes": "1.1.0", | ||
"elm/bytes": "1.0.8", | ||
"elm/file": "1.0.5", | ||
"elm/virtual-dom": "1.0.2", | ||
"elm-community/intdict": "3.0.0", | ||
"elm-community/json-extra": "4.2.0", | ||
"myrho/elm-round": "1.0.4", | ||
"rtfeldman/elm-hex": "1.0.0", | ||
"rtfeldman/elm-iso8601-date-strings": "1.1.3", | ||
"stil4m/structured-writer": "1.0.2" | ||
} | ||
}, | ||
"test-dependencies": { | ||
"direct": {}, | ||
"indirect": {} | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
packages/morphir-elm-compiler/FileChanges.ts → ...s/morphir-elm-compiler/src/FileChanges.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
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.
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
69 changes: 69 additions & 0 deletions
69
packages/morphir-elm-compiler/src/elm/Morphir/Elm/CLI.d.elm.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
export default CLI = { | ||
init: (flags?: CLI.Args) => CLI.ElmApp | ||
} | ||
|
||
export namespace CLI { | ||
|
||
interface ElmApp extends Object { | ||
ports: Ports; | ||
} | ||
|
||
interface Args { | ||
node?: HTMLElement; | ||
flags?: any; | ||
} | ||
|
||
interface Subscribe<T> { | ||
subscribe(callback: (value: T) => any): void; | ||
unsubscribe(callback: (value: T) => any): void; | ||
} | ||
|
||
interface Send<T> { | ||
send(value: T): void; | ||
} | ||
|
||
function init(args: Args): ElmApp; | ||
|
||
interface Ports { | ||
buildFromScratch: Send<any>; | ||
reportProgress: Subscribe<string>; | ||
} | ||
} | ||
|
||
function init(args: CLI.Args): CLI.ElmApp; | ||
|
||
|
||
// export declare class Main { | ||
// init(flags?: any): ElmApp; | ||
|
||
// } | ||
|
||
|
||
|
||
/* | ||
* Prelude | ||
*/ | ||
|
||
export type Unit = | ||
{ | ||
variant: "()" | ||
} | ||
|
||
export type Maybe<T> | ||
= { | ||
variant: "Just" | ||
, _0: T | ||
} | ||
| { | ||
variant: "Nothing" | ||
} | ||
|
||
export type Result<E, T> | ||
= { | ||
variant: "Ok" | ||
, _0: T | ||
} | ||
| { | ||
variant: "Err" | ||
, _0: E | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.