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