-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 428ee0a
Showing
22 changed files
with
534 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# don't ever lint node_modules | ||
node_modules | ||
# don't lint build output (make sure it's set to your correct build folder name) | ||
dist | ||
# don't lint nyc coverage output | ||
coverage | ||
out | ||
src/git/**/* | ||
.eslintrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: https://github.com/axetroy/buy-me-a-cup-of-tea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node: ["14.x"] | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
name: node.js ${{ matrix.node }} test in ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Environment | ||
run: | | ||
node -v | ||
npm -v | ||
yarn --version | ||
- name: Install | ||
run: | | ||
yarn | ||
- name: Lint | ||
run: | | ||
npm run lint | ||
- name: Compile | ||
run: | | ||
yarn run compile | ||
- uses: axetroy/setup-whatchanged@v1 | ||
with: | ||
version: v0.3.4 | ||
|
||
- name: Generate CHANGELOG.md | ||
run: | | ||
whatchanged HEAD~ > CHANGELOG.md | ||
- name: Package | ||
run: | | ||
npx vsce package -o ./vscode-gpm.vsix | ||
- uses: actions/upload-artifact@v2 | ||
if: runner.os == 'linux' | ||
with: | ||
name: package | ||
path: ./vscode-gpm.vsix | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
name: "Release to vscode market and github" | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.repository == 'axetroy/vscode-gpm' | ||
needs: build | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: package | ||
|
||
- uses: softprops/action-gh-release@v1 | ||
name: publish to Github | ||
env: | ||
# require Github Personal Access Token | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
with: | ||
files: | | ||
./vscode-gpm.vsix | ||
draft: false | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
|
||
- name: publish to vscode market | ||
# require Azure DevOps Personal Access Token | ||
run: npx vsce publish --packagePath ./vscode-gpm.vsix --pat ${{ secrets.ADO_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
out | ||
node_modules | ||
.vscode-test/ | ||
*.vsix | ||
*.lock | ||
package-lock.json | ||
*.log | ||
.DS_Store | ||
dist | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// A launch configuration that compiles the extension and then opens it inside a new window | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": ["--extensionDevelopmentPath=${workspaceFolder}"], | ||
"outFiles": ["${workspaceFolder}/out/**/*.js"], | ||
"preLaunchTask": "npm: watch" | ||
}, | ||
{ | ||
"name": "Extension Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test" | ||
], | ||
"outFiles": ["${workspaceFolder}/out/test/**/*.js"], | ||
"preLaunchTask": "npm: watch" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.exclude": { | ||
"out": false // set this to true to hide the "out" folder with the compiled JS files | ||
}, | ||
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
}, | ||
"editor.tabSize": 2, | ||
"cSpell.words": [ | ||
"whatchanged" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch", | ||
"problemMatcher": "$tsc-watch", | ||
"isBackground": true, | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
out/test | ||
src/** | ||
.gitignore | ||
tsconfig.json | ||
tslint.json | ||
resources/screenshot/* | ||
*.log | ||
.DS_Store | ||
renovate.json |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Copyright (c) 2021 Axetroy | ||
|
||
Anti 996 License Version 1.0 (Draft) | ||
|
||
Permission is hereby granted to any individual or legal entity | ||
obtaining a copy of this licensed work (including the source code, | ||
documentation and/or related items, hereinafter collectively referred | ||
to as the "licensed work"), free of charge, to deal with the licensed | ||
work for any purpose, including without limitation, the rights to use, | ||
reproduce, modify, prepare derivative works of, distribute, publish | ||
and sublicense the licensed work, subject to the following conditions: | ||
|
||
1. The individual or the legal entity must conspicuously display, | ||
without modification, this License and the notice on each redistributed | ||
or derivative copy of the Licensed Work. | ||
|
||
2. The individual or the legal entity must strictly comply with all | ||
applicable laws, regulations, rules and standards of the jurisdiction | ||
relating to labor and employment where the individual is physically | ||
located or where the individual was born or naturalized; or where the | ||
legal entity is registered or is operating (whichever is stricter). In | ||
case that the jurisdiction has no such laws, regulations, rules and | ||
standards or its laws, regulations, rules and standards are | ||
unenforceable, the individual or the legal entity are required to | ||
comply with Core International Labor Standards. | ||
|
||
3. The individual or the legal entity shall not induce or force its | ||
employee(s), whether full-time or part-time, or its independent | ||
contractor(s), in any methods, to agree in oral or written form, to | ||
directly or indirectly restrict, weaken or relinquish his or her | ||
rights or remedies under such laws, regulations, rules and standards | ||
relating to labor and employment as mentioned above, no matter whether | ||
such written or oral agreement are enforceable under the laws of the | ||
said jurisdiction, nor shall such individual or the legal entity | ||
limit, in any methods, the rights of its employee(s) or independent | ||
contractor(s) from reporting or complaining to the copyright holder or | ||
relevant authorities monitoring the compliance of the license about | ||
its violation(s) of the said license. | ||
|
||
THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, | ||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
OTHERWISE, ARISING FROM, OUT OF OR IN ANY WAY CONNECTION WITH THE | ||
LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
 | ||
[](https://marketplace.visualstudio.com/items?itemName=axetroy.vscode-whatchanged) | ||
[](https://marketplace.visualstudio.com/items?itemName=axetroy.vscode-whatchanged) | ||
[](https://996.icu) | ||
[](https://github.com/996icu/996.ICU/blob/master/LICENSE) | ||
|
||
# vscode-whatchanged | ||
|
||
vscode extension for [whatchanged](https://github.com/whatchanged-community/whatchanged) | ||
|
||
## Commands | ||
|
||
| Command | description | | ||
| ----------------------- | ---------------------- | | ||
| whatchanged.generate | generate changelog | | ||
| whatchanged.generateAll | generate all changelog | | ||
|
||
## License | ||
|
||
The [Anti 996 License](https://github.com/whatchanged-community/vscode-whatchanged/blob/master/LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"name": "vscode-whatchanged", | ||
"displayName": "whatchanged", | ||
"description": "Generate changelog for git project", | ||
"version": "2.6.12", | ||
"publisher": "axetroy", | ||
"engines": { | ||
"vscode": "^1.61.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/whatchanged-community/vscode-whatchanged.git" | ||
}, | ||
"license": "Anti-996", | ||
"bugs": { | ||
"url": "https://github.com/whatchanged-community/vscode-whatchanged/issues" | ||
}, | ||
"homepage": "https://github.com/whatchanged-community/vscode-whatchanged#readme", | ||
"keywords": [], | ||
"categories": [ | ||
"Other" | ||
], | ||
"icon": "resources/logo.png", | ||
"main": "./out/index.js", | ||
"activationEvents": [ | ||
"onCommand:whatchanged.generate", | ||
"onCommand:whatchanged.generateAll" | ||
], | ||
"contributes": { | ||
"commands": [ | ||
{ | ||
"command": "whatchanged.generate", | ||
"title": "%cmd.generate.title%", | ||
"category": "whatchanged" | ||
}, | ||
{ | ||
"command": "whatchanged.generateAll", | ||
"title": "%cmd.generateAll.title%", | ||
"category": "whatchanged" | ||
} | ||
], | ||
"menus": { | ||
"scm/title": [ | ||
{ | ||
"command": "whatchanged.generate" | ||
}, | ||
{ | ||
"command": "whatchanged.generateAll" | ||
} | ||
], | ||
"commandPalette": [ | ||
{ | ||
"command": "whatchanged.generate" | ||
}, | ||
{ | ||
"command": "whatchanged.generateAll" | ||
} | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"vscode:prepublish": "npm run lint && tsc -p ./ && npm run compile", | ||
"clean": "rimraf ./out", | ||
"compile": "tsc -p ./", | ||
"watch": "tsc -watch -p ./", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx", | ||
"test": "npm run compile && node ./node_modules/vscode/bin/test", | ||
"changelog": "whatchanged HEAD~ > CHANGELOG.md", | ||
"publish": "npx vsce publish", | ||
"package": "npx vsce package", | ||
"postinstall": "node script/install-whatchanged.js" | ||
}, | ||
"devDependencies": { | ||
"@types/byline": "4.2.33", | ||
"@types/fs-extra": "9.0.13", | ||
"@types/lodash": "4.14.173", | ||
"@types/mocha": "9.0.0", | ||
"@types/node": "14.17.17", | ||
"@types/vscode": "1.60.0", | ||
"@types/which": "2.0.1", | ||
"@typescript-eslint/eslint-plugin": "4.32.0", | ||
"@typescript-eslint/parser": "4.32.0", | ||
"download": "^8.0.0", | ||
"eslint": "7.32.0", | ||
"progress": "^2.0.3", | ||
"rimraf": "3.0.2", | ||
"tar": "^6.1.11", | ||
"typescript": "4.4.3" | ||
}, | ||
"dependencies": { | ||
"execa": "5.1.1", | ||
"fs-extra": "10.0.0", | ||
"reflect-metadata": "^0.1.13", | ||
"typedi": "^0.10.0", | ||
"vscode-nls": "^5.0.0", | ||
"vscode-nls-i18n": "0.2.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"cmd.generate.title": "Generate changelog", | ||
"cmd.generateAll.title": "Generate all changelog" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"cmd.generate.title": "生成变更日志", | ||
"cmd.generateAll.title": "生成全部变更日志" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.