Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Feb 14, 2024
1 parent c38ae7b commit 016767d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 110 deletions.
32 changes: 1 addition & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,45 +52,15 @@ const myExp = rainlang`_: add(1 2)`
<br>

## rainconfig
rainconfig specifies the configuration details for compiler and language server and should be placed in the root directory of working workspace named `rainconfig.json` or `.rainconfig.json`, an schema is applied to the rainconfig if this extension is active.
rainconfig specifies the configuration details for compiler and language server and should be placed in the root directory of working workspace named `rainconfig.json`, an schema is applied to the rainconfig if this extension is active.
bellow is the list of rainconfig fields (all fields are optional):
- `src`: Specifies list of .rain source files mappings for compilation, where specified .rain input files will get compiled and results written into output json file.
- `include`: Specifies a list of directories (files/folders) to be included in watch. 'src' files are included by default and folders will be watched recursively for .rain files.
- `subgraphs`: Specifies additional subgraph endpoints to search for a meta for a given hash, [default rain subgraphs](https://github.com/rainprotocol/meta/blob/master/src/rainSubgraphs.ts) are always included.
- `meta`: Specifies local meta files paths or an object with path and hash (this will result in hash explicit validation) as binary or utf8 encoded hex strings starting with 0x.

example:
```json
{
"include": ["./path/to/folder", "./path/to/another-folder"],
"src": [
{
"input": "./path/to/file1.rain",
"output": "./path/to/compiled-file1.json",
"entrypoints": ["entrypoint1", "entrypoint2"]
},
{
"input": "./path/to/file2.rain",
"output": "./path/to/compiled-file2.json",
"entrypoints": ["entrypoint1", "entrypoint2"]
}
],
"meta": {
"binary": [
"./path/to/binary-meta",
{
"path": "./path/to/another-binary-meta",
"hash": "0x123456789abcdef..."
}
],
"hex": [
"./path/to/hex-meta",
{
"path": "./path/to/another-hex-meta",
"hash": "0x123456789abcdef..."
}
]
},
"subgraphs": [
"https://subgraph1-uril",
"https://subgraph2-uril",
Expand Down
78 changes: 8 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,5 @@
"webpack": "^5.77.0",
"webpack-cli": "^5.0.1",
"webpack-node-externals": "^3.0.0"
},
"dependencies": {
"@rainlanguage/dotrain": "github:rainlanguage/dotrain#6556a92cffea0a0d8b57ec1950272d198c439322"
}
}
11 changes: 6 additions & 5 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "https://github.com/rainprotocol/rainlang-vscode/issues"
},
"dependencies": {
"@rainlanguage/dotrain": "file:../../dotrain/rainlanguage-dotrain-6.0.0.tgz",
"@rainlanguage/dotrain": "github:rainlanguage/dotrain#6556a92cffea0a0d8b57ec1950272d198c439322",
"vscode-languageserver": "^8.1.0",
"vscode-languageserver-textdocument": "^1.0.11"
},
Expand Down

0 comments on commit 016767d

Please sign in to comment.