-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
1 parent
fabd051
commit ed6b6d1
Showing
9 changed files
with
91 additions
and
2 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
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,18 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path_1 = __importDefault(require("path")); | ||
const cjson_1 = __importDefault(require("cjson")); | ||
function default_1() { | ||
var _a; | ||
/** 包配置 */ | ||
const project_package = cjson_1.default.load(path_1.default.join(Editor.Project.path, "package.json")); | ||
if (!((_a = project_package["mk-framework"]) === null || _a === void 0 ? void 0 : _a.version_s)) { | ||
console.log(Editor.I18n.t("mk-framework.当前项目未安装框架")); | ||
return; | ||
} | ||
console.log(Editor.I18n.t("mk-framework.当前项目框架版本为") + project_package["mk-framework"].version_s); | ||
} | ||
exports.default = default_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
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
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
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
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
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,14 @@ | ||
import path from "path"; | ||
import cjson from "cjson"; | ||
|
||
export default function () { | ||
/** 包配置 */ | ||
const project_package = cjson.load(path.join(Editor.Project.path, "package.json")); | ||
|
||
if (!project_package["mk-framework"]?.version_s) { | ||
console.log(Editor.I18n.t("mk-framework.当前项目未安装框架")); | ||
return; | ||
} | ||
|
||
console.log(Editor.I18n.t("mk-framework.当前项目框架版本为") + project_package["mk-framework"].version_s); | ||
} |
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