@teambit/clear-cache 0.0.156 → 0.0.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clear-cache-cmd.d.ts +1 -0
- package/dist/clear-cache-cmd.js +2 -2
- package/dist/clear-cache-cmd.js.map +1 -1
- package/package-tar/teambit-clear-cache-0.0.157.tgz +0 -0
- package/package.json +3 -3
- package/{preview-1667014802517.js → preview-1667274254521.js} +2 -2
- package/package-tar/teambit-clear-cache-0.0.156.tgz +0 -0
|
@@ -11,6 +11,7 @@ export default class ClearCacheCmd implements Command {
|
|
|
11
11
|
options: CommandOptions;
|
|
12
12
|
loader: boolean;
|
|
13
13
|
skipWorkspace: boolean;
|
|
14
|
+
helpUrl: string;
|
|
14
15
|
constructor(clearCache: ClearCacheMain, docsDomain: string);
|
|
15
16
|
report(arg: any, { remote }: {
|
|
16
17
|
remote?: string;
|
package/dist/clear-cache-cmd.js
CHANGED
|
@@ -32,11 +32,11 @@ class ClearCacheCmd {
|
|
|
32
32
|
(0, _defineProperty2().default)(this, "options", [['r', 'remote <remote-name>', 'clear memory cache from a remote scope']]);
|
|
33
33
|
(0, _defineProperty2().default)(this, "loader", false);
|
|
34
34
|
(0, _defineProperty2().default)(this, "skipWorkspace", true);
|
|
35
|
+
(0, _defineProperty2().default)(this, "helpUrl", 'reference/workspace/clearing-cache');
|
|
35
36
|
this.extendedDescription = `The following gets removed by this command:
|
|
36
37
|
1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)
|
|
37
38
|
2) components cache on the filesystem (mainly the dependencies graph and docs)
|
|
38
|
-
3) scope's index file, which maps the component-id:object-hash
|
|
39
|
-
https://${docsDomain}/workspace/clearing-cache`;
|
|
39
|
+
3) scope's index file, which maps the component-id:object-hash`;
|
|
40
40
|
}
|
|
41
41
|
async report(arg, {
|
|
42
42
|
remote
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ClearCacheCmd","constructor","clearCache","docsDomain","extendedDescription","report","arg","remote","success","clearRemoteCache","chalk","green","red","cacheCleared","title","output","map","str","join","bold"],"sources":["clear-cache-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { ClearCacheMain } from './clear-cache.main.runtime';\n\nexport default class ClearCacheCmd implements Command {\n name = 'clear-cache';\n description = \"clears Bit's cache from current working machine\";\n group = 'general';\n extendedDescription: string;\n alias = 'cc';\n options = [['r', 'remote <remote-name>', 'clear memory cache from a remote scope']] as CommandOptions;\n loader = false;\n skipWorkspace = true;\n\n constructor(private clearCache: ClearCacheMain, private docsDomain: string) {\n this.extendedDescription = `The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash
|
|
1
|
+
{"version":3,"names":["ClearCacheCmd","constructor","clearCache","docsDomain","extendedDescription","report","arg","remote","success","clearRemoteCache","chalk","green","red","cacheCleared","title","output","map","str","join","bold"],"sources":["clear-cache-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { ClearCacheMain } from './clear-cache.main.runtime';\n\nexport default class ClearCacheCmd implements Command {\n name = 'clear-cache';\n description = \"clears Bit's cache from current working machine\";\n group = 'general';\n extendedDescription: string;\n alias = 'cc';\n options = [['r', 'remote <remote-name>', 'clear memory cache from a remote scope']] as CommandOptions;\n loader = false;\n skipWorkspace = true;\n helpUrl = 'reference/workspace/clearing-cache';\n\n constructor(private clearCache: ClearCacheMain, private docsDomain: string) {\n this.extendedDescription = `The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash`;\n }\n\n async report(arg, { remote }: { remote?: string }): Promise<string> {\n if (remote) {\n const success = await this.clearCache.clearRemoteCache(remote);\n if (success) {\n return chalk.green(`successfully cleaned the cache of \"${remote}\"`);\n }\n return chalk.red(`failed cleaning the cache of \"${remote}\"`);\n }\n const cacheCleared = await this.clearCache.clearCache();\n const title = 'the following cache(s) have been cleared:';\n const output = cacheCleared.map((str) => ` ✔ ${str}`).join('\\n');\n return chalk.green(`${chalk.bold(title)}\\n${output}`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGe,MAAMA,aAAa,CAAoB;EAWpDC,WAAW,CAASC,UAA0B,EAAUC,UAAkB,EAAE;IAAA,KAAxDD,UAA0B,GAA1BA,UAA0B;IAAA,KAAUC,UAAkB,GAAlBA,UAAkB;IAAA,8CAVnE,aAAa;IAAA,qDACN,iDAAiD;IAAA,+CACvD,SAAS;IAAA;IAAA,+CAET,IAAI;IAAA,iDACF,CAAC,CAAC,GAAG,EAAE,sBAAsB,EAAE,wCAAwC,CAAC,CAAC;IAAA,gDAC1E,KAAK;IAAA,uDACE,IAAI;IAAA,iDACV,oCAAoC;IAG5C,IAAI,CAACC,mBAAmB,GAAI;AAChC;AACA;AACA,+DAA+D;EAC7D;EAEA,MAAMC,MAAM,CAACC,GAAG,EAAE;IAAEC;EAA4B,CAAC,EAAmB;IAClE,IAAIA,MAAM,EAAE;MACV,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACN,UAAU,CAACO,gBAAgB,CAACF,MAAM,CAAC;MAC9D,IAAIC,OAAO,EAAE;QACX,OAAOE,gBAAK,CAACC,KAAK,CAAE,sCAAqCJ,MAAO,GAAE,CAAC;MACrE;MACA,OAAOG,gBAAK,CAACE,GAAG,CAAE,iCAAgCL,MAAO,GAAE,CAAC;IAC9D;IACA,MAAMM,YAAY,GAAG,MAAM,IAAI,CAACX,UAAU,CAACA,UAAU,EAAE;IACvD,MAAMY,KAAK,GAAG,2CAA2C;IACzD,MAAMC,MAAM,GAAGF,YAAY,CAACG,GAAG,CAAEC,GAAG,IAAM,OAAMA,GAAI,EAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;IACjE,OAAOR,gBAAK,CAACC,KAAK,CAAE,GAAED,gBAAK,CAACS,IAAI,CAACL,KAAK,CAAE,KAAIC,MAAO,EAAC,CAAC;EACvD;AACF;AAAC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/clear-cache",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.157",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/workspace/clear-cache",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "clear-cache",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.157"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/node": "12.20.4"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@teambit/legacy": "1.0.
|
|
26
|
+
"@teambit/legacy": "1.0.380",
|
|
27
27
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
28
28
|
"react": "^16.8.0 || ^17.0.0"
|
|
29
29
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.157/dist/clear-cache.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_clear-cache@0.0.157/dist/clear-cache.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|