@teambit/global-config 0.0.873 → 0.0.875
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_harmony_global_config-preview.js +1 -1
- package/artifacts/schema.json +2 -2
- package/dist/global-config.main.runtime.js +1 -2
- package/dist/global-config.main.runtime.js.map +1 -1
- package/dist/{preview-1717384755471.js → preview-1717557712672.js} +2 -2
- package/dist/system.cmd.d.ts +11 -0
- package/dist/system.cmd.js +26 -1
- package/dist/system.cmd.js.map +1 -1
- package/package.json +3 -3
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.harmony/global-config@0.0.
|
3
|
+
<testsuite name="teambit.harmony/global-config@0.0.875" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/global-config-preview"]=t():e["teambit.harmony/global-config-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/global-config-preview"]=t():e["teambit.harmony/global-config-preview"]=t()}(self,(()=>(()=>{"use strict";var e={19945:(e,t,o)=>{var n={id:"teambit.harmony/global-config@0.0.875",homepage:"https://bit.cloud/teambit/harmony/global-config",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/global-config.svg"}));a.__bit_component=n,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>f,compositions_metadata:()=>u,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(19945);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(null,arguments)}var l={},p="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,r.mdx)(p,c({},l,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"This aspect let you read / change / delete bit's global config.")))}s.isMDXComponent=!0;const f=[t],d=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
package/artifacts/schema.json
CHANGED
@@ -1563,7 +1563,7 @@
|
|
1563
1563
|
"__schema": "UnImplementedSchema",
|
1564
1564
|
"location": {
|
1565
1565
|
"filePath": "global-config.main.runtime.ts",
|
1566
|
-
"line":
|
1566
|
+
"line": 97,
|
1567
1567
|
"character": 1
|
1568
1568
|
},
|
1569
1569
|
"name": "GlobalConfigAspect.addRuntime(GlobalConfigMain);",
|
@@ -1622,7 +1622,7 @@
|
|
1622
1622
|
"componentId": {
|
1623
1623
|
"scope": "teambit.harmony",
|
1624
1624
|
"name": "global-config",
|
1625
|
-
"version": "0.0.
|
1625
|
+
"version": "0.0.875"
|
1626
1626
|
},
|
1627
1627
|
"taggedModuleExports": []
|
1628
1628
|
}
|
@@ -100,8 +100,7 @@ class GlobalConfigMain {
|
|
100
100
|
static async provider([cli]) {
|
101
101
|
const globalConfig = new GlobalConfigMain();
|
102
102
|
const systemCmd = new (_system().SystemCmd)();
|
103
|
-
|
104
|
-
systemCmd.commands = [systemLogCmd];
|
103
|
+
systemCmd.commands = [new (_system().SystemLogCmd)(), new (_system().SystemTailLogCmd)()];
|
105
104
|
cli.register(new (_globals().GlobalsCmd)(globalConfig), systemCmd);
|
106
105
|
return globalConfig;
|
107
106
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_constants","_globalConfig","_globalConfig2","_globals","_system","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalConfigMain","get","key","getBool","result","undefined","Error","getSync","list","listSync","set","val","setSync","del","delSync","getGlobalCapsulesBaseDir","CFG_CAPSULES_ROOT_BASE_DIR","GLOBALS_DEFAULT_CAPSULES","invalidateCache","getKnownGlobalDirs","CACHE_ROOT","DEBUG_LOG","GLOBAL_SCOPE","GLOBAL_CONFIG","provider","cli","globalConfig","systemCmd","SystemCmd","
|
1
|
+
{"version":3,"names":["_cli","data","require","_constants","_globalConfig","_globalConfig2","_globals","_system","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GlobalConfigMain","get","key","getBool","result","undefined","Error","getSync","list","listSync","set","val","setSync","del","delSync","getGlobalCapsulesBaseDir","CFG_CAPSULES_ROOT_BASE_DIR","GLOBALS_DEFAULT_CAPSULES","invalidateCache","getKnownGlobalDirs","CACHE_ROOT","DEBUG_LOG","GLOBAL_SCOPE","GLOBAL_CONFIG","provider","cli","globalConfig","systemCmd","SystemCmd","commands","SystemLogCmd","SystemTailLogCmd","register","GlobalsCmd","exports","MainRuntime","CLIAspect","GlobalConfigAspect","addRuntime"],"sources":["global-config.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport {\n CACHE_ROOT,\n DEBUG_LOG,\n GLOBAL_SCOPE,\n GLOBAL_CONFIG,\n CFG_CAPSULES_ROOT_BASE_DIR,\n GLOBALS_DEFAULT_CAPSULES,\n} from '@teambit/legacy/dist/constants';\nimport {\n del,\n delSync,\n get,\n getSync,\n list,\n listSync,\n set,\n setSync,\n invalidateCache,\n} from '@teambit/legacy/dist/api/consumer/lib/global-config';\nimport { GlobalConfig } from '@teambit/legacy/dist/global-config';\nimport { GlobalConfigAspect } from './global-config.aspect';\nimport { GlobalsCmd } from './globals.cmd';\nimport { SystemCmd, SystemLogCmd, SystemTailLogCmd } from './system.cmd';\n\nexport class GlobalConfigMain {\n static runtime = MainRuntime;\n static dependencies = [CLIAspect];\n static slots = [];\n\n async get(key: string): Promise<string | undefined> {\n return get(key);\n }\n\n async getBool(key: string): Promise<boolean | undefined> {\n const result = await get(key);\n if (result === undefined || result === null) return undefined;\n if (typeof result === 'boolean') return result;\n if (result === 'true') return true;\n if (result === 'false') return false;\n throw new Error(`the configuration \"${key}\" has an invalid value \"${result}\". it should be boolean`);\n }\n\n getSync(key: string): string | undefined {\n return getSync(key);\n }\n\n list(): Promise<Record<string, string>> {\n return list();\n }\n listSync(): Record<string, string> {\n return listSync();\n }\n\n async set(key: string, val: string): Promise<GlobalConfig> {\n return set(key, val);\n }\n setSync(key: string, val: string): GlobalConfig {\n return setSync(key, val);\n }\n\n async del(key: string): Promise<GlobalConfig> {\n return del(key);\n }\n\n delSync(key: string): GlobalConfig {\n return delSync(key);\n }\n\n getGlobalCapsulesBaseDir() {\n return this.getSync(CFG_CAPSULES_ROOT_BASE_DIR) || GLOBALS_DEFAULT_CAPSULES;\n }\n\n invalidateCache() {\n invalidateCache();\n }\n\n getKnownGlobalDirs() {\n return {\n 'Global Dir': CACHE_ROOT,\n 'Log file': DEBUG_LOG,\n 'Global Scope Dir': GLOBAL_SCOPE,\n 'Config Dir': GLOBAL_CONFIG,\n 'Capsules Dir': this.getGlobalCapsulesBaseDir(),\n };\n }\n\n static async provider([cli]: [CLIMain]) {\n const globalConfig = new GlobalConfigMain();\n const systemCmd = new SystemCmd();\n systemCmd.commands = [new SystemLogCmd(), new SystemTailLogCmd()];\n cli.register(new GlobalsCmd(globalConfig), systemCmd);\n return globalConfig;\n }\n}\n\nGlobalConfigAspect.addRuntime(GlobalConfigMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAG,cAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,aAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAYA,SAAAI,eAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,cAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAA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AACC,GAAG,CAAY,EAAE;IACtC,MAAMC,YAAY,GAAG,IAAI1B,gBAAgB,CAAC,CAAC;IAC3C,MAAM2B,SAAS,GAAG,KAAIC,mBAAS,EAAC,CAAC;IACjCD,SAAS,CAACE,QAAQ,GAAG,CAAC,KAAIC,sBAAY,EAAC,CAAC,EAAE,KAAIC,0BAAgB,EAAC,CAAC,CAAC;IACjEN,GAAG,CAACO,QAAQ,CAAC,KAAIC,qBAAU,EAACP,YAAY,CAAC,EAAEC,SAAS,CAAC;IACrD,OAAOD,YAAY;EACrB;AACF;AAACQ,OAAA,CAAAlC,gBAAA,GAAAA,gBAAA;AAAAnB,eAAA,CArEYmB,gBAAgB,aACVmC,kBAAW;AAAAtD,eAAA,CADjBmB,gBAAgB,kBAEL,CAACoC,gBAAS,CAAC;AAAAvD,eAAA,CAFtBmB,gBAAgB,WAGZ,EAAE;AAoEnBqC,mCAAkB,CAACC,UAAU,CAACtC,gBAAgB,CAAC","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.875/dist/global-config.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_global-config@0.0.875/dist/global-config.docs.md';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/dist/system.cmd.d.ts
CHANGED
@@ -13,6 +13,17 @@ export declare class SystemLogCmd implements Command {
|
|
13
13
|
description: string;
|
14
14
|
group: string;
|
15
15
|
alias: string;
|
16
|
+
loader: boolean;
|
16
17
|
options: CommandOptions;
|
17
18
|
report(): Promise<string>;
|
18
19
|
}
|
20
|
+
export declare class SystemTailLogCmd implements Command {
|
21
|
+
name: string;
|
22
|
+
description: string;
|
23
|
+
extendedDescription: string;
|
24
|
+
group: string;
|
25
|
+
alias: string;
|
26
|
+
loader: boolean;
|
27
|
+
options: CommandOptions;
|
28
|
+
wait(): Promise<void>;
|
29
|
+
}
|
package/dist/system.cmd.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.SystemLogCmd = exports.SystemCmd = void 0;
|
6
|
+
exports.SystemTailLogCmd = exports.SystemLogCmd = exports.SystemCmd = void 0;
|
7
7
|
function _fsExtra() {
|
8
8
|
const data = _interopRequireDefault(require("fs-extra"));
|
9
9
|
_fsExtra = function () {
|
@@ -18,6 +18,13 @@ function _chalk() {
|
|
18
18
|
};
|
19
19
|
return data;
|
20
20
|
}
|
21
|
+
function _child_process() {
|
22
|
+
const data = _interopRequireDefault(require("child_process"));
|
23
|
+
_child_process = function () {
|
24
|
+
return data;
|
25
|
+
};
|
26
|
+
return data;
|
27
|
+
}
|
21
28
|
function _constants() {
|
22
29
|
const data = require("@teambit/legacy/dist/constants");
|
23
30
|
_constants = function () {
|
@@ -49,6 +56,7 @@ class SystemLogCmd {
|
|
49
56
|
_defineProperty(this, "description", `print debug.log to the screen`);
|
50
57
|
_defineProperty(this, "group", 'workspace');
|
51
58
|
_defineProperty(this, "alias", '');
|
59
|
+
_defineProperty(this, "loader", false);
|
52
60
|
_defineProperty(this, "options", []);
|
53
61
|
}
|
54
62
|
async report() {
|
@@ -57,5 +65,22 @@ class SystemLogCmd {
|
|
57
65
|
}
|
58
66
|
}
|
59
67
|
exports.SystemLogCmd = SystemLogCmd;
|
68
|
+
class SystemTailLogCmd {
|
69
|
+
constructor() {
|
70
|
+
_defineProperty(this, "name", 'tail-log');
|
71
|
+
_defineProperty(this, "description", `print the log file to the screen as it is being written`);
|
72
|
+
_defineProperty(this, "extendedDescription", 'similar to linux "tail -f" command');
|
73
|
+
_defineProperty(this, "group", 'workspace');
|
74
|
+
_defineProperty(this, "alias", '');
|
75
|
+
_defineProperty(this, "loader", false);
|
76
|
+
_defineProperty(this, "options", []);
|
77
|
+
}
|
78
|
+
async wait() {
|
79
|
+
_child_process().default.execSync(`tail -f ${_constants().DEBUG_LOG}`, {
|
80
|
+
stdio: 'inherit'
|
81
|
+
});
|
82
|
+
}
|
83
|
+
}
|
84
|
+
exports.SystemTailLogCmd = SystemTailLogCmd;
|
60
85
|
|
61
86
|
//# sourceMappingURL=system.cmd.js.map
|
package/dist/system.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_chalk","_constants","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SystemCmd","constructor","report","unrecognizedSubcommand","chalk","red","exports","SystemLogCmd","logFile","fs","readFileSync","DEBUG_LOG"],"sources":["system.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport { DEBUG_LOG } from '@teambit/legacy/dist/constants';\n\nexport class SystemCmd implements Command {\n name = 'system <sub-command>';\n description = `system operations`;\n group = 'workspace';\n alias = '';\n options = [] as CommandOptions;\n commands: Command[] = [];\n\n async report([unrecognizedSubcommand]: [string]) {\n return chalk.red(\n `\"${unrecognizedSubcommand}\" is not a subcommand of \"system\", please run \"bit system --help\" to list the subcommands`\n );\n }\n}\n\nexport class SystemLogCmd implements Command {\n name = 'log';\n description = `print debug.log to the screen`;\n group = 'workspace';\n alias = '';\n options = [] as CommandOptions;\n\n async report() {\n const logFile = fs.readFileSync(DEBUG_LOG, 'utf8');\n return logFile;\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_chalk","_child_process","_constants","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SystemCmd","constructor","report","unrecognizedSubcommand","chalk","red","exports","SystemLogCmd","logFile","fs","readFileSync","DEBUG_LOG","SystemTailLogCmd","wait","cp","execSync","stdio"],"sources":["system.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport { Command, CommandOptions } from '@teambit/cli';\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport cp from 'child_process';\nimport { DEBUG_LOG } from '@teambit/legacy/dist/constants';\n\nexport class SystemCmd implements Command {\n name = 'system <sub-command>';\n description = `system operations`;\n group = 'workspace';\n alias = '';\n options = [] as CommandOptions;\n commands: Command[] = [];\n\n async report([unrecognizedSubcommand]: [string]) {\n return chalk.red(\n `\"${unrecognizedSubcommand}\" is not a subcommand of \"system\", please run \"bit system --help\" to list the subcommands`\n );\n }\n}\n\nexport class SystemLogCmd implements Command {\n name = 'log';\n description = `print debug.log to the screen`;\n group = 'workspace';\n alias = '';\n loader = false;\n options = [] as CommandOptions;\n\n async report() {\n const logFile = fs.readFileSync(DEBUG_LOG, 'utf8');\n return logFile;\n }\n}\n\nexport class SystemTailLogCmd implements Command {\n name = 'tail-log';\n description = `print the log file to the screen as it is being written`;\n extendedDescription = 'similar to linux \"tail -f\" command';\n group = 'workspace';\n alias = '';\n loader = false;\n options = [] as CommandOptions;\n\n async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,IAAIA,CAAA,EAAG;IACXC,wBAAE,CAACC,QAAQ,CAAC,WAAWJ,sBAAS,EAAE,EAAE;MAAEK,KAAK,EAAE;IAAU,CAAC,CAAC;EAC3D;AACF;AAACV,OAAA,CAAAM,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/global-config",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.875",
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/global-config",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.harmony",
|
8
8
|
"name": "global-config",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.875"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
13
|
"pad-right": "0.2.2",
|
14
14
|
"fs-extra": "10.0.0",
|
15
15
|
"@teambit/harmony": "0.4.6",
|
16
|
-
"@teambit/cli": "0.0.
|
16
|
+
"@teambit/cli": "0.0.872"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
19
|
"@types/fs-extra": "9.0.7",
|