feat: add version info in console.log (#117)

This commit is contained in:
QuentinHsu 2022-06-20 14:14:03 +08:00 committed by GitHub
parent 69ccc6bd08
commit 4dde556daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -2,7 +2,8 @@
"ignorePatterns": ["*.min.js", "src/vendor/*.js"], "ignorePatterns": ["*.min.js", "src/vendor/*.js"],
"env": { "env": {
"browser": true, "browser": true,
"es2021": true "es2021": true,
"node": true
}, },
"extends": "eslint:recommended", "extends": "eslint:recommended",
"parserOptions": { "parserOptions": {

View File

@ -6,7 +6,7 @@
* *
* *
* Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket! * Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket!
* @updated: 2022/6/20 11:11:18 * @updated: 6/20/2022, 12:32:19 PM
* @version: 2.0.7 * @version: 2.0.7
* @author: Peng-YM * @author: Peng-YM
* @github: https://github.com/Peng-YM/Sub-Store * @github: https://github.com/Peng-YM/Sub-Store

View File

@ -10,10 +10,13 @@
* @github: https://github.com/Peng-YM/Sub-Store * @github: https://github.com/Peng-YM/Sub-Store
* @documentation: https://www.notion.so/Sub-Store-6259586994d34c11a4ced5c406264b46 * @documentation: https://www.notion.so/Sub-Store-6259586994d34c11a4ced5c406264b46
*/ */
const packageJson = require('../package.json');
const { version } = packageJson;
console.log( console.log(
` `
𝑺𝒖𝒃-𝑺𝒕𝒐𝒓𝒆 © 𝑷𝒆𝒏𝒈-𝒀𝑴 𝑺𝒖𝒃-𝑺𝒕𝒐𝒓𝒆 © 𝑷𝒆𝒏𝒈-𝒀𝑴
Version: ${version}
`, `,
); );

File diff suppressed because one or more lines are too long