Skip to content

Commit

Permalink
fix: 同步 git config
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Feb 5, 2022
1 parent b48fdb9 commit a3d4e5e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[core]
ignorecase = false
autocrlf = false
4 changes: 4 additions & 0 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config --local core.autocrlf false
git config --local core.ignorecase false
git config --local include.path ../.gitconfig
git config --local core.autocrlf false
git config --local core.ignorecase false
- name: install deps
run: |
yarn install --frozen-lockfile
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ The Chinese Language Pack localizes the UI of IntelliJ IDEA, AppCode, CLion, Dat
## dev

請額外自行安裝 typescript@next jest ts-jest ts-node ynpx lerna yarn-tool
1. 執行 `yarn run ci:git:config`

或執行 `yarn ci:install`
2. 請額外自行安裝 typescript@next jest ts-jest ts-node ynpx lerna yarn-tool
或執行 `yarn run ci:install`

### 與官方簡體版差異

Expand Down Expand Up @@ -70,5 +71,7 @@ The Chinese Language Pack localizes the UI of IntelliJ IDEA, AppCode, CLion, Dat
## 已知問題

- `dot-properties-loader` 會將 `label.inactive.timeout.sec= 秒` 轉換為 `label.inactive.timeout.sec=秒` 對於 IDEA 的實際影響則不清楚,照一般來說等號後的空白應該是不會被當作內容值
-
- 如果 git 發現詭異的檔案永遠都是變動狀態的話 請檢查是否存在與此 BUG 相同的問題
https://youtrack.jetbrains.com/issue/IDEA-288057


3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"ci:install": "yarn install --frozen-lockfile && yarn add -W typescript@next jest ts-jest ts-node ynpx lerna yarn-tool",
"ci:build": "yarn run plugin:build && yarn run build:commit",
"ci:postpublish": "yarn run postpublish:changelog && yarn run postpublish:git:commit && yarn run postpublish:git:tag & echo ci:postpublish",
"ci:git:config": "git config --local core.autocrlf false && git config --local core.ignorecase false && git config --local include.path ../.gitconfig && git config --local core.autocrlf false && git config --local core.ignorecase false",
"npm:publish": "npm publish",
"npm:publish:bump": "yarn run version:bump && npm publish",
"preversion": "echo preversion && yarn run test",
Expand All @@ -51,7 +52,7 @@
"publish": "echo publish",
"postpublish": "yarn run postpublish:changelog && yarn run postpublish:git:commit && yarn run postpublish:git:tag -- --force-git-tag && yarn run postpublish:git:push",
"postpublish:changelog": "ynpx --quiet @yarn-tool/changelog && git add ./CHANGELOG.md",
"postpublish:git:commit": "git commit -m \"chore(release): publish\" ./CHANGELOG.md & echo postpublish:git:commit",
"postpublish:git:commit": "git commit -m \"build(changelog): update CHANGELOG\" ./CHANGELOG.md & echo postpublish:git:commit",
"postpublish:git:push": "git push --follow-tags",
"postpublish:git:tag": "ts-node scripts/update-git-tag.ts",
"postpublishOnly": "echo postpublishOnly",
Expand Down
9 changes: 6 additions & 3 deletions scripts/unzip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function unzipLang(lang: string | 'zh')
console.cyan.log(`unzip ${lang}.zip`);

const bar: SingleBar = multibar.create(200, 0);
const cwd = join(__plugin_downloaded_dir_unzip, lang);

return Bluebird.resolve(readFile(join(__plugin_downloaded_dir, `${lang}.zip`)))
.then<JSZip>(JSZip.loadAsync)
Expand All @@ -42,17 +43,19 @@ function unzipLang(lang: string | 'zh')
})
.reduce(async (ls, file, index) =>
{
if (!file.dir)
if (!file.dir && ![
'inspectionDescriptions/Junit5MalformedParameterized.html',
].includes(file.name))
{
bar?.update(index + 1, { filename: file.name });
ls.push(file.name);
await outputFile(join(__plugin_downloaded_dir_unzip, lang, file.name), await file.async('nodebuffer'))
await outputFile(join(cwd, file.name), await file.async('nodebuffer'))
}
return ls
}, [] as string[])
.tap(ls =>
{
return outputJSON(join(__plugin_downloaded_dir_unzip, lang + '.list.json'), ls, {
return outputJSON(cwd + '.list.json', ls, {
spaces: 2,
})
})
Expand Down

0 comments on commit a3d4e5e

Please sign in to comment.