Skip to content

Commit

Permalink
Changed structure and saved files to same directory as compiled jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
A passionate fullstack developer committed Jul 2, 2022
1 parent bf5770e commit 6dbd6a0
Show file tree
Hide file tree
Showing 34 changed files with 3,621 additions and 777 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/build/ext-src"],
"outFiles": ["${workspaceRoot}/build/src"],
"preLaunchTask": "npm: watch"
},
{
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tsconfig.json
tsconfig.extension.json
webpack.config.js
yarn.lock
ext-src/**
src/**
*.ts
*.sol
.gitignore
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ And then press F5, in Extension Development Host session, run `Ethereum: Solidit
### Generate Typescript types for protobuf
```shell
PROTOC_GEN_TS_PATH="./node_modules/.bin/protoc-gen-ts"
OUT_DIR="./ext-src/"
OUT_DIR="./src/"
protoc --plugin="protoc-gen-ts=${PROTOC_GEN_TS_PATH}" --js_out="import_style=commonjs,binary:${OUT_DIR}" --ts_out="${OUT_DIR}" services/ethereum.proto
```

Expand All @@ -139,7 +139,7 @@ git push origin v0.1.4

Things we did on top of Create React App TypeScript template

* We inline `index.html` content in `ext-src/extension.ts` when creating the webview
* We inline `index.html` content in `src/extension.ts` when creating the webview
* We set strict security policy for accessing resources in the webview.
* Only resources in `/build` can be accessed
* Only resources whose scheme is `vscode-resource` can be accessed.
Expand Down
Loading

0 comments on commit 6dbd6a0

Please sign in to comment.