Skip to content

Commit b3a11aa

Browse files
ci: Improve build
1 parent 1593888 commit b3a11aa

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ jobs:
4040
run: npm run lint
4141
- name: Compile
4242
run: npm run compile
43+
- name: Test
44+
run: npm run test

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,47 @@ When all options are enabled, methods are sorted in the following order:
6060
5. **Lexical order** - Alphabetical ordering of method names
6161
6. **Original position** - Maintains original order when all other criteria are equal
6262

63+
## Installation
64+
65+
### From VS Code Marketplace
66+
1. Open VS Code
67+
2. Go to Extensions (`Ctrl+Shift+X`)
68+
3. Search for "Translation"
69+
4. Click Install
70+
71+
### From VSIX File
72+
1. Download the `.vsix` file from [Releases](https://github.com/tlcsdm/vscode-java-method-sorter/releases)
73+
2. In VS Code, open Command Palette (`Ctrl+Shift+P`)
74+
3. Search for "Extensions: Install from VSIX..."
75+
4. Select the downloaded `.vsix` file
76+
77+
### From Jenkins
78+
Download from [Jenkins](https://jenkins.tlcsdm.com/job/vscode-plugin/job/vscode-java-method-sorter/)
79+
80+
## Build
81+
82+
This project uses TypeScript and npm (Node.js 22).
83+
84+
```bash
85+
# Install dependencies
86+
npm install
87+
88+
# Compile
89+
npm run compile
90+
91+
# Watch mode (for development)
92+
npm run watch
93+
94+
# Lint
95+
npm run lint
96+
97+
# Package
98+
npx @vscode/vsce package
99+
100+
# Test
101+
npm run test
102+
```
103+
63104
## Related Projects
64105
* [eclipse-method-sorter](https://github.com/tlcsdm/eclipse-method-sorter)
65106

0 commit comments

Comments
 (0)