mirror of
https://github.com/OBKoro1/autoCommit.git
synced 2024-11-22 18:39:26 +08:00
package.json
This commit is contained in:
parent
aff262a28c
commit
fa47e25a6e
@ -8,3 +8,5 @@
|
|||||||
<!-- TODO: html的链接 -->
|
<!-- TODO: html的链接 -->
|
||||||
|
|
||||||
<!-- TODO: 可以挂在后台慢慢commit -->
|
<!-- TODO: 可以挂在后台慢慢commit -->
|
||||||
|
|
||||||
|
<!-- TODO: icon -->
|
55
package.json
55
package.json
@ -2,8 +2,8 @@
|
|||||||
"name": "autoCommit",
|
"name": "autoCommit",
|
||||||
"displayName": "autoCommit",
|
"displayName": "autoCommit",
|
||||||
"description": "自动提交commit到github",
|
"description": "自动提交commit到github",
|
||||||
"publisher": "OBkoro1",
|
"publisher": "OBKoro1",
|
||||||
"version": "0.0.1",
|
"version": "1.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vsce package",
|
"build": "vsce package",
|
||||||
"vscode:prepublish": "webpack --mode production",
|
"vscode:prepublish": "webpack --mode production",
|
||||||
@ -13,13 +13,25 @@
|
|||||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||||
"test": "yarn run compile && node ./node_modules/vscode/bin/test"
|
"test": "yarn run compile && node ./node_modules/vscode/bin/test"
|
||||||
},
|
},
|
||||||
"engines": {
|
"homepage": "https://github.com/OBKoro1/autoCommit",
|
||||||
"vscode": "^1.41.0"
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
|
"author": {
|
||||||
|
"name": "OBKoro1",
|
||||||
|
"email": "obkoro1@foxmail.com",
|
||||||
|
"url": "http://obkoro1.com/web_accumulate/"
|
||||||
|
},
|
||||||
|
"galleryBanner": {
|
||||||
|
"color": "#3B4859",
|
||||||
|
"theme": "dark"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/OBKoro1/autoCommit"
|
"url": "https://github.com/OBKoro1/autoCommit"
|
||||||
},
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/OBKoro1/koro1FileHeader/issues",
|
||||||
|
"email": "obkoro1@foxmail.com"
|
||||||
|
},
|
||||||
"categories": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
],
|
],
|
||||||
@ -36,24 +48,27 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"vscode": "^1.41.0"
|
||||||
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"vscode korofileheader",
|
"vscode autoCommit",
|
||||||
"korofileheader",
|
"autoCommit",
|
||||||
"annotation",
|
"auto commit",
|
||||||
"comment",
|
"autocommit",
|
||||||
"vscode comment",
|
"自动commit",
|
||||||
"vscode annotation",
|
"vscode 自动commit",
|
||||||
"vscode 注释",
|
"vscode github",
|
||||||
"vscode 文件头部注释",
|
"vscode commit",
|
||||||
"注释",
|
"github commit",
|
||||||
"文件注释",
|
"github autoCommit",
|
||||||
"头部注释",
|
"git commit",
|
||||||
"函数注释",
|
"git",
|
||||||
"fileheader",
|
"github",
|
||||||
"vscode-fileheader",
|
"commit",
|
||||||
"Document This",
|
"koro1",
|
||||||
"obkoro1",
|
"obkoro1",
|
||||||
"koro1"
|
"github 自动commit"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/glob": "^7.1.1",
|
"@types/glob": "^7.1.1",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Author : OBKoro1
|
* Author : OBKoro1
|
||||||
* Date : 2019-12-25 17:08:18
|
* Date : 2019-12-25 17:08:18
|
||||||
* LastEditors : OBKoro1
|
* LastEditors : OBKoro1
|
||||||
* LastEditTime : 2020-01-01 17:20:11
|
* LastEditTime : 2020-01-02 14:35:12
|
||||||
* FilePath : /autoCommit/src/models/index.ts
|
* FilePath : /autoCommit/src/models/index.ts
|
||||||
* Description : 插件逻辑入口
|
* Description : 插件逻辑入口
|
||||||
* https://github.com/OBKoro1
|
* https://github.com/OBKoro1
|
||||||
@ -14,6 +14,7 @@ import { setPanelWebview, isProduction } from '../util/vscodeUtil';
|
|||||||
import CommitHandle from './commitHandle';
|
import CommitHandle from './commitHandle';
|
||||||
import { outputLog } from '../util/vscodeUtil';
|
import { outputLog } from '../util/vscodeUtil';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
import { sep } from 'path';
|
||||||
|
|
||||||
class ExtensionLogic {
|
class ExtensionLogic {
|
||||||
public readonly context: vscode.ExtensionContext;
|
public readonly context: vscode.ExtensionContext;
|
||||||
@ -45,8 +46,8 @@ class ExtensionLogic {
|
|||||||
this.CommitHandle = new CommitHandle(message);
|
this.CommitHandle = new CommitHandle(message);
|
||||||
} else if (message.command === 'choose-item') {
|
} else if (message.command === 'choose-item') {
|
||||||
this.publishChooseFile();
|
this.publishChooseFile();
|
||||||
} else if(message.command === 'cancel autoCommit'){
|
} else if (message.command === 'cancel autoCommit') {
|
||||||
this.CommitHandle.closeCommit()
|
this.CommitHandle.closeCommit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 选择项目文件夹
|
// 选择项目文件夹
|
||||||
@ -66,7 +67,7 @@ class ExtensionLogic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public hasGit(itemSrc: string) {
|
public hasGit(itemSrc: string) {
|
||||||
const url = `${itemSrc}/.git`; // 文件路径
|
const url = `${itemSrc}${sep}.git`; // 文件路径
|
||||||
try {
|
try {
|
||||||
let isDirectory = fs.statSync(url).isDirectory(); // 判断是否为文件夹 返回布尔值
|
let isDirectory = fs.statSync(url).isDirectory(); // 判断是否为文件夹 返回布尔值
|
||||||
if (isDirectory) {
|
if (isDirectory) {
|
||||||
|
Loading…
Reference in New Issue
Block a user