Skip to content

Commit 34422c4

Browse files
committed
format
1 parent ff4564d commit 34422c4

File tree

10 files changed

+263
-156
lines changed

10 files changed

+263
-156
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{ts,js,json}]
10+
indent_style = space
11+
indent_size = 2

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ jobs:
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3131
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32-

.github/workflows/update-changesets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
github_token: ${{ github.token }}
4242
amend: true
4343
force: true
44-
branch: gh_pages
44+
branch: gh_pages

.vscode/launch.json

Lines changed: 102 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,103 @@
11
{
2-
// IntelliSense を使用して利用可能な属性を学べます。
3-
// 既存の属性の説明をホバーして表示します。
4-
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"request": "launch",
9-
"name": "list",
10-
"type": "node",
11-
"program": "${workspaceFolder}/src/cli.ts",
12-
"cwd": "${workspaceFolder}",
13-
"env": {},
14-
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
15-
"runtimeArgs": [
16-
"run",
17-
"--unstable",
18-
"--inspect-brk",
19-
"--allow-all"
20-
],
21-
"args": [
22-
"list"
23-
],
24-
"attachSimplePort": 9229
25-
},
26-
{
27-
"request": "launch",
28-
"name": "list --versions --all --all-lifecycles",
29-
"type": "node",
30-
"program": "${workspaceFolder}/src/cli.ts",
31-
"cwd": "${workspaceFolder}",
32-
"env": {},
33-
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
34-
"runtimeArgs": [
35-
"run",
36-
"--unstable",
37-
"--inspect-brk",
38-
"--allow-all"
39-
],
40-
"args": [
41-
"list",
42-
"--versions",
43-
"--all",
44-
"--all-lifecycles"
45-
],
46-
"attachSimplePort": 9229
47-
},
48-
{
49-
"request": "launch",
50-
"name": "6000.0.25f1",
51-
"type": "node",
52-
"program": "${workspaceFolder}/src/cli.ts",
53-
"cwd": "${workspaceFolder}",
54-
"env": {},
55-
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
56-
"runtimeArgs": [
57-
"run",
58-
"--unstable",
59-
"--inspect-brk",
60-
"--allow-all"
61-
],
62-
"args": [
63-
"6000.0.25f1"
64-
],
65-
"attachSimplePort": 9229
66-
},
67-
{
68-
"request": "launch",
69-
"name": "6000.0.25f2",
70-
"type": "node",
71-
"program": "${workspaceFolder}/src/cli.ts",
72-
"cwd": "${workspaceFolder}",
73-
"env": {},
74-
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
75-
"runtimeArgs": [
76-
"run",
77-
"--unstable",
78-
"--inspect-brk",
79-
"--allow-all"
80-
],
81-
"args": [
82-
"6000.0.25f2"
83-
],
84-
"attachSimplePort": 9229
85-
},
86-
{
87-
"request": "launch",
88-
"name": "--help",
89-
"type": "node",
90-
"program": "${workspaceFolder}/src/cli.ts",
91-
"cwd": "${workspaceFolder}",
92-
"env": {},
93-
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
94-
"runtimeArgs": [
95-
"run",
96-
"--unstable",
97-
"--inspect-brk",
98-
"--allow-all"
99-
],
100-
"args": [
101-
"--help"
102-
],
103-
"attachSimplePort": 9229
104-
}
105-
]
106-
}
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"request": "launch",
6+
"name": "list",
7+
"type": "node",
8+
"program": "${workspaceFolder}/src/cli.ts",
9+
"cwd": "${workspaceFolder}",
10+
"env": {},
11+
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
12+
"runtimeArgs": [
13+
"run",
14+
"--unstable",
15+
"--inspect-brk",
16+
"--allow-all"
17+
],
18+
"args": [
19+
"list"
20+
],
21+
"attachSimplePort": 9229
22+
},
23+
{
24+
"request": "launch",
25+
"name": "list --versions --all --all-lifecycles",
26+
"type": "node",
27+
"program": "${workspaceFolder}/src/cli.ts",
28+
"cwd": "${workspaceFolder}",
29+
"env": {},
30+
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
31+
"runtimeArgs": [
32+
"run",
33+
"--unstable",
34+
"--inspect-brk",
35+
"--allow-all"
36+
],
37+
"args": [
38+
"list",
39+
"--versions",
40+
"--all",
41+
"--all-lifecycles"
42+
],
43+
"attachSimplePort": 9229
44+
},
45+
{
46+
"request": "launch",
47+
"name": "6000.0.25f1",
48+
"type": "node",
49+
"program": "${workspaceFolder}/src/cli.ts",
50+
"cwd": "${workspaceFolder}",
51+
"env": {},
52+
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
53+
"runtimeArgs": [
54+
"run",
55+
"--unstable",
56+
"--inspect-brk",
57+
"--allow-all"
58+
],
59+
"args": [
60+
"6000.0.25f1"
61+
],
62+
"attachSimplePort": 9229
63+
},
64+
{
65+
"request": "launch",
66+
"name": "6000.0.25f2",
67+
"type": "node",
68+
"program": "${workspaceFolder}/src/cli.ts",
69+
"cwd": "${workspaceFolder}",
70+
"env": {},
71+
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
72+
"runtimeArgs": [
73+
"run",
74+
"--unstable",
75+
"--inspect-brk",
76+
"--allow-all"
77+
],
78+
"args": [
79+
"6000.0.25f2"
80+
],
81+
"attachSimplePort": 9229
82+
},
83+
{
84+
"request": "launch",
85+
"name": "--help",
86+
"type": "node",
87+
"program": "${workspaceFolder}/src/cli.ts",
88+
"cwd": "${workspaceFolder}",
89+
"env": {},
90+
"runtimeExecutable": "/Users/takashi.sakai/.asdf/shims/deno",
91+
"runtimeArgs": [
92+
"run",
93+
"--unstable",
94+
"--inspect-brk",
95+
"--allow-all"
96+
],
97+
"args": [
98+
"--help"
99+
],
100+
"attachSimplePort": 9229
101+
}
102+
]
103+
}

.vscode/settings.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"deno.enable": true,
3-
"deno.lint": true,
4-
"deno.unstable": true,
5-
}
2+
"deno.enable": true,
3+
"deno.lint": true,
4+
"deno.unstable": [],
5+
"editor.formatOnSave": true,
6+
"editor.defaultFormatter": "denoland.vscode-deno"
7+
}

README.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
unity-changeset
2-
===
1+
# unity-changeset
32

43
Get/List Unity editor changeset
54

@@ -34,34 +33,34 @@ const { getUnityChangeset, scrapeArchivedChangesets, scrapeBetaChangesets } = fr
3433
### Example
3534

3635
```js
37-
const { getUnityChangeset, scrapeArchivedChangesets, scrapeBetaChangesets } = require('unity-changeset');
36+
const { getUnityChangeset, scrapeArchivedChangesets, scrapeBetaChangesets } =
37+
require("unity-changeset");
3838

3939
(async () => {
40-
const changeset = await getUnityChangeset('2020.1.14f1');
41-
console.log(changeset);
42-
//=> UnityChangeset {version: '2020.1.14f1', changeset: 'd81f64f5201d'}
43-
console.log(changeset.toString());
44-
//=> 2020.1.14f1 d81f64f5201d
45-
const changesets = await scrapeArchivedChangesets();
46-
console.dir(changesets);
47-
//=> [
48-
// UnityChangeset { version: '2020.1.15f1', changeset: '97d0ae02d19d' },
49-
// UnityChangeset { version: '2020.1.14f1', changeset: 'd81f64f5201d' },
50-
// UnityChangeset { version: '2020.1.13f1', changeset: '5e24f28bfbc0' },
51-
// ...
52-
// ]
53-
const betaChangesets = await scrapeBetaChangesets();
54-
console.log(betaChangesets);
55-
//=> [
56-
// UnityChangeset { version: '2020.2.0b13', changeset: '655e1a328b90' },
57-
// UnityChangeset { version: '2020.2.0b12', changeset: '92852ae685d8' },
58-
// UnityChangeset { version: '2020.2.0b11', changeset: 'c499c2bf2e80' },
59-
// ...
60-
// ]
40+
const changeset = await getUnityChangeset("2020.1.14f1");
41+
console.log(changeset);
42+
//=> UnityChangeset {version: '2020.1.14f1', changeset: 'd81f64f5201d'}
43+
console.log(changeset.toString());
44+
//=> 2020.1.14f1 d81f64f5201d
45+
const changesets = await scrapeArchivedChangesets();
46+
console.dir(changesets);
47+
//=> [
48+
// UnityChangeset { version: '2020.1.15f1', changeset: '97d0ae02d19d' },
49+
// UnityChangeset { version: '2020.1.14f1', changeset: 'd81f64f5201d' },
50+
// UnityChangeset { version: '2020.1.13f1', changeset: '5e24f28bfbc0' },
51+
// ...
52+
// ]
53+
const betaChangesets = await scrapeBetaChangesets();
54+
console.log(betaChangesets);
55+
//=> [
56+
// UnityChangeset { version: '2020.2.0b13', changeset: '655e1a328b90' },
57+
// UnityChangeset { version: '2020.2.0b12', changeset: '92852ae685d8' },
58+
// UnityChangeset { version: '2020.2.0b11', changeset: 'c499c2bf2e80' },
59+
// ...
60+
// ]
6161
})();
6262
```
6363

64-
6564
## Usage as a deno module
6665

6766
```js
@@ -91,7 +90,6 @@ or
9190
deno install -A -f -n unity-changeset https://deno.land/x/unity_changeset/src/cli.ts
9291
```
9392

94-
9593
### Help
9694

9795
```
@@ -146,15 +144,13 @@ deno install -A -f -n unity-changeset https://deno.land/x/unity_changeset/src/cl
146144
--pretty-json - Output in pretty json format
147145
```
148146

149-
150147
### Get a changeset for specific version:
151148

152149
```sh
153150
$ unity-changeset 2020.2.14f1
154151
d81f64f5201d
155152
```
156153

157-
158154
### Get a changeset for specific version
159155

160156
```sh
@@ -273,12 +269,12 @@ Issues are very valuable to this project.
273269

274270
### Pull Requests
275271

276-
Pull requests are, a great way to get your ideas into this repository.
272+
Pull requests are, a great way to get your ideas into this repository.
277273

278274
### Support
279275

280-
This is an open source project that I am developing in my spare time.
281-
If you like it, please support me.
276+
This is an open source project that I am developing in my spare time.\
277+
If you like it, please support me.\
282278
With your support, I can spend more time on development. :)
283279

284280
[![](https://user-images.githubusercontent.com/12690315/66942881-03686280-f085-11e9-9586-fc0b6011029f.png)](https://github.com/users/mob-sakai/sponsorship)
@@ -287,15 +283,19 @@ With your support, I can spend more time on development. :)
287283

288284
## License
289285

290-
* MIT
286+
- MIT
291287

292288
## Author
293289

294-
* ![](https://user-images.githubusercontent.com/12690315/96986908-434a0b80-155d-11eb-8275-85138ab90afa.png) [mob-sakai](https://github.com/mob-sakai) [![](https://img.shields.io/twitter/follow/mob_sakai.svg?label=Follow&style=social)](https://twitter.com/intent/follow?screen_name=mob_sakai) ![GitHub followers](https://img.shields.io/github/followers/mob-sakai?style=social)
290+
- ![](https://user-images.githubusercontent.com/12690315/96986908-434a0b80-155d-11eb-8275-85138ab90afa.png)
291+
[mob-sakai](https://github.com/mob-sakai)
292+
[![](https://img.shields.io/twitter/follow/mob_sakai.svg?label=Follow&style=social)](https://twitter.com/intent/follow?screen_name=mob_sakai)
293+
![GitHub followers](https://img.shields.io/github/followers/mob-sakai?style=social)
295294

296295
## See Also
297296

298-
* GitHub page : https://github.com/mob-sakai/unity-changeset
299-
* Releases : https://github.com/mob-sakai/unity-changeset/releases
300-
* Issue tracker : https://github.com/mob-sakai/unity-changeset/issues
301-
* Change log : https://github.com/mob-sakai/unity-changeset/blob/main/CHANGELOG.md
297+
- GitHub page : https://github.com/mob-sakai/unity-changeset
298+
- Releases : https://github.com/mob-sakai/unity-changeset/releases
299+
- Issue tracker : https://github.com/mob-sakai/unity-changeset/issues
300+
- Change log :
301+
https://github.com/mob-sakai/unity-changeset/blob/main/CHANGELOG.md

build/.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
"@semantic-release/npm",
1414
"@semantic-release/github"
1515
]
16-
}
16+
}

0 commit comments

Comments
 (0)