-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 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,2 +1,14 @@ | ||
# moleculec-es | ||
ECMAScript plugin for the molecule serialization system | ||
|
||
# Usage | ||
|
||
First, download precompiled binary from [releases](https://github.com/xxuejie/moleculec-es/releases) page, and put the binary in our PATH. You could also clone and build the project from source. The only dependency is Golang here. | ||
|
||
``` | ||
$ cargo install moleculec | ||
$ moleculec --language - --schema-file "your schema file" --format json > /tmp/schema.json | ||
$ moleculec-es -inputFile /tmp/schema.json -outputFile "your JS file" | ||
``` | ||
|
||
Generated file from this project follows latest ECMAScript standard, it is also orgnaized as an ECMAScript module to allow for tree shaking. |