Skip to content

Commit

Permalink
Merge pull request #1 from Menh1505/script
Browse files Browse the repository at this point in the history
merge fea/webview-update
  • Loading branch information
Menh1505 authored Oct 5, 2024
2 parents 35a1251 + 331a359 commit 4ce42f2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ This project consists of two sub-projects: `move-simulator-vscode` and `move-sim
- **`npm run test:server`**: This command navigates to the `move-simulator-server` directory and runs the tests.
- **`npm run test:all`**: This command runs tests for both the `move-simulator-vscode` and `move-simulator-server` applications sequentially.

### To debug the vscode extension
- After cloning the repository, open the move-simulator-vscode folder in a new VS Code tab.
- Run the command to install packages.
```shell
npm run install:all
```
- Run the command to build the webview.
```shell
npm run webview:build
```
- Press F5 to debug the extension.

## Additional Information

- Ensure you have Node.js installed on your system. You can download it from [Node.js official website](https://nodejs.org/).
Expand Down
Binary file added move-simulator-vscode/bun.lockb
Binary file not shown.
8 changes: 5 additions & 3 deletions move-simulator-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@
}
},
"scripts": {
"install:all": "npm install && cd webview && npm install && npm install vite",
"install:all": "npm install && cd webview && npm install && npm install vite && npm install ethers",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
"test": "vscode-test",
"debug": "node ./node_modules/vscode/bin/test",
"webview:build": "cd webview && npm run build"
},
"devDependencies": {
"@types/node": "20.x",
Expand All @@ -68,4 +70,4 @@
"move-simulator-vscode": "file:",
"react-router-dom": "^6.26.2"
}
}
}
1 change: 0 additions & 1 deletion move-simulator-vscode/webview/build/vite.svg

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build:all": "npm run build:vscode && npm run build:server",
"test:vscode": "cd move-simulator-vscode && npm test",
"test:server": "cd move-simulator-server && npm test",
"test:all": "npm run test:vscode && npm run test:server"
"test:all": "npm run test:vscode && npm run test:server",
"install:all": "cd move-simulator-vscode && npm run install:all && cd ../move-simulator-server && npm install"
}
}

0 comments on commit 4ce42f2

Please sign in to comment.