@wix/cli 1.1.58 → 1.1.60
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/build/{DevCommand-32POU3TX.js → DevCommand-AEGLMQVP.js} +15 -16
- package/build/{DevCommand-32POU3TX.js.map → DevCommand-AEGLMQVP.js.map} +1 -1
- package/build/DevCommand-GO3Z73V7.js +7561 -0
- package/build/DevCommand-GO3Z73V7.js.map +1 -0
- package/build/{LoginCommand-WRCKEWCE.js → LoginCommand-SGLKXJF6.js} +13 -13
- package/build/{LogoutCommand-BYWH527O.js → LogoutCommand-YL6M6BT7.js} +9 -9
- package/build/{WhoamiCommand-WKXZCRSJ.js → WhoamiCommand-4EJZYY4W.js} +5 -5
- package/build/{chunk-WZEZZAE4.js → chunk-24KEFD7K.js} +126 -70
- package/build/chunk-24KEFD7K.js.map +1 -0
- package/build/{chunk-Q5WMVJRK.js → chunk-2DE7QM5C.js} +2 -2
- package/build/{chunk-6F2RSXHN.js → chunk-2NWGTFAC.js} +3 -3
- package/build/{chunk-6F2RSXHN.js.map → chunk-2NWGTFAC.js.map} +1 -1
- package/build/{chunk-LOJ4G3VD.js → chunk-5XUFGBCU.js} +2 -2
- package/build/{chunk-WYEQRRT2.js → chunk-B23S4M74.js} +3422 -424
- package/build/chunk-B23S4M74.js.map +1 -0
- package/build/{chunk-IFQQVSBK.js → chunk-BGKFJNUK.js} +2 -2
- package/build/{chunk-53UCEZFU.js → chunk-BNWDAMAL.js} +175 -45
- package/build/chunk-BNWDAMAL.js.map +1 -0
- package/build/{chunk-3KIPOGXI.js → chunk-BVAC4BZH.js} +5 -5
- package/build/{chunk-UQXJQCG3.js → chunk-CRXPC3TE.js} +2 -2
- package/build/{chunk-4S2ZMDZM.js → chunk-DWEFYET4.js} +7 -7
- package/build/{chunk-24HYCAK2.js → chunk-EDNJGHVN.js} +10 -5
- package/build/chunk-EDNJGHVN.js.map +1 -0
- package/build/{chunk-3R4OZ46Z.js → chunk-G6TDIUNY.js} +2 -2
- package/build/{chunk-WRMFR7CU.js → chunk-GFSMOEGG.js} +8 -8
- package/build/{chunk-XU2RG4HE.js → chunk-GG7YZNYL.js} +10 -2
- package/build/{chunk-XU2RG4HE.js.map → chunk-GG7YZNYL.js.map} +1 -1
- package/build/{chunk-X7GWN4JO.js → chunk-GIS574I5.js} +2 -2
- package/build/{chunk-ZOWPPCOU.js → chunk-J2FXQRPG.js} +5 -5
- package/build/{chunk-F63O2UMD.js → chunk-KCTZ5EX4.js} +401 -116
- package/build/chunk-KCTZ5EX4.js.map +1 -0
- package/build/{chunk-MPSJ2YGQ.js → chunk-LCYX5MZA.js} +3 -3
- package/build/{chunk-RJBLVNKS.js → chunk-LPA74SM5.js} +7 -7
- package/build/{chunk-CQHI53JJ.js → chunk-OISYBAR4.js} +5043 -659
- package/build/chunk-OISYBAR4.js.map +1 -0
- package/build/{chunk-LC2NSYSB.js → chunk-P5FUKDOS.js} +8 -8
- package/build/{chunk-BQ6AW6QJ.js → chunk-PGR3OZNK.js} +6 -6
- package/build/{chunk-NK4U57KS.js → chunk-QZJC3FP3.js} +5 -5
- package/build/{chunk-KT54TL6D.js → chunk-RNMVLLSA.js} +6 -6
- package/build/{chunk-KOCJZPLK.js → chunk-SELJR2HV.js} +2 -2
- package/build/{chunk-IRR7PD4K.js → chunk-VNZYI6OK.js} +3 -3
- package/build/{chunk-W32TRG4E.js → chunk-WN3D6AOY.js} +39 -25
- package/build/chunk-WN3D6AOY.js.map +1 -0
- package/build/{chunk-5EXKEGN6.js → chunk-WVS26NCB.js} +301 -441
- package/build/chunk-WVS26NCB.js.map +1 -0
- package/build/{chunk-JMUOY2KY.js → chunk-XANTHYQG.js} +9 -9
- package/build/{chunk-JMUOY2KY.js.map → chunk-XANTHYQG.js.map} +1 -1
- package/build/{chunk-OIH7DI4E.js → chunk-XWFG3TRU.js} +74 -6
- package/build/{chunk-OIH7DI4E.js.map → chunk-XWFG3TRU.js.map} +1 -1
- package/build/{chunk-KLWKSELB.js → chunk-YQ2ZYOKK.js} +6 -6
- package/build/{dev-M7P6GT7S.js → dev-72CJF6Z6.js} +25 -26
- package/build/{dev-M7P6GT7S.js.map → dev-72CJF6Z6.js.map} +1 -1
- package/build/index.js +28 -28
- package/build/{install-SX7OQQGW.js → install-7NZK44CY.js} +19 -19
- package/build/{preview-7WGCS2DK.js → preview-NIPXK2PL.js} +20 -20
- package/build/{publish-U7Y5KNMR.js → publish-Z3WVKI47.js} +20 -20
- package/build/{render-command-P4B7B4WB.js → render-command-GJLP3KAJ.js} +13 -13
- package/build/{render-command-TJTVTOHT.js → render-command-I6OSOLTK.js} +12 -12
- package/build/{render-command-6GZ7MNO5.js → render-command-OTTR4HS4.js} +13 -13
- package/build/{run-command-ZLQ3PKCS.js → run-command-BR7STFFP.js} +10 -10
- package/build/{src-WBDWTVY2.js → src-7HIQOGPY.js} +9 -9
- package/build/{src-I6QIZSAX.js → src-IRKCACSZ.js} +8 -8
- package/build/{src-Q3X5WF65.js → src-QCND6FA3.js} +6 -6
- package/build/{src-WKNIYADZ.js → src-QJJ7EIYT.js} +8 -8
- package/build/{src-JGFI4IQH.js → src-U45WATPX.js} +19 -19
- package/build/{src-5XWKD5UB.js → src-U7SGKJCW.js} +2 -2
- package/build/{src-BMV74WCO.js → src-XSN6C5L2.js} +3 -3
- package/build/sync-types-JLBBFIOB.js +30 -0
- package/build/{uninstall-L6JBTJHG.js → uninstall-KQDD5ADQ.js} +18 -18
- package/package.json +6 -6
- package/build/DevCommand-WT3DJON6.js +0 -1040
- package/build/DevCommand-WT3DJON6.js.map +0 -1
- package/build/chunk-24HYCAK2.js.map +0 -1
- package/build/chunk-53UCEZFU.js.map +0 -1
- package/build/chunk-5EXKEGN6.js.map +0 -1
- package/build/chunk-CQHI53JJ.js.map +0 -1
- package/build/chunk-F63O2UMD.js.map +0 -1
- package/build/chunk-OUBPZBBH.js +0 -558
- package/build/chunk-OUBPZBBH.js.map +0 -1
- package/build/chunk-W32TRG4E.js.map +0 -1
- package/build/chunk-WYEQRRT2.js.map +0 -1
- package/build/chunk-WZEZZAE4.js.map +0 -1
- package/build/sync-types-6XPVFG3C.js +0 -31
- /package/build/{LoginCommand-WRCKEWCE.js.map → LoginCommand-SGLKXJF6.js.map} +0 -0
- /package/build/{LogoutCommand-BYWH527O.js.map → LogoutCommand-YL6M6BT7.js.map} +0 -0
- /package/build/{WhoamiCommand-WKXZCRSJ.js.map → WhoamiCommand-4EJZYY4W.js.map} +0 -0
- /package/build/{chunk-Q5WMVJRK.js.map → chunk-2DE7QM5C.js.map} +0 -0
- /package/build/{chunk-LOJ4G3VD.js.map → chunk-5XUFGBCU.js.map} +0 -0
- /package/build/{chunk-IFQQVSBK.js.map → chunk-BGKFJNUK.js.map} +0 -0
- /package/build/{chunk-3KIPOGXI.js.map → chunk-BVAC4BZH.js.map} +0 -0
- /package/build/{chunk-UQXJQCG3.js.map → chunk-CRXPC3TE.js.map} +0 -0
- /package/build/{chunk-4S2ZMDZM.js.map → chunk-DWEFYET4.js.map} +0 -0
- /package/build/{chunk-3R4OZ46Z.js.map → chunk-G6TDIUNY.js.map} +0 -0
- /package/build/{chunk-WRMFR7CU.js.map → chunk-GFSMOEGG.js.map} +0 -0
- /package/build/{chunk-X7GWN4JO.js.map → chunk-GIS574I5.js.map} +0 -0
- /package/build/{chunk-ZOWPPCOU.js.map → chunk-J2FXQRPG.js.map} +0 -0
- /package/build/{chunk-MPSJ2YGQ.js.map → chunk-LCYX5MZA.js.map} +0 -0
- /package/build/{chunk-RJBLVNKS.js.map → chunk-LPA74SM5.js.map} +0 -0
- /package/build/{chunk-LC2NSYSB.js.map → chunk-P5FUKDOS.js.map} +0 -0
- /package/build/{chunk-BQ6AW6QJ.js.map → chunk-PGR3OZNK.js.map} +0 -0
- /package/build/{chunk-NK4U57KS.js.map → chunk-QZJC3FP3.js.map} +0 -0
- /package/build/{chunk-KT54TL6D.js.map → chunk-RNMVLLSA.js.map} +0 -0
- /package/build/{chunk-KOCJZPLK.js.map → chunk-SELJR2HV.js.map} +0 -0
- /package/build/{chunk-IRR7PD4K.js.map → chunk-VNZYI6OK.js.map} +0 -0
- /package/build/{chunk-KLWKSELB.js.map → chunk-YQ2ZYOKK.js.map} +0 -0
- /package/build/{install-SX7OQQGW.js.map → install-7NZK44CY.js.map} +0 -0
- /package/build/{preview-7WGCS2DK.js.map → preview-NIPXK2PL.js.map} +0 -0
- /package/build/{publish-U7Y5KNMR.js.map → publish-Z3WVKI47.js.map} +0 -0
- /package/build/{render-command-P4B7B4WB.js.map → render-command-GJLP3KAJ.js.map} +0 -0
- /package/build/{render-command-TJTVTOHT.js.map → render-command-I6OSOLTK.js.map} +0 -0
- /package/build/{render-command-6GZ7MNO5.js.map → render-command-OTTR4HS4.js.map} +0 -0
- /package/build/{run-command-ZLQ3PKCS.js.map → run-command-BR7STFFP.js.map} +0 -0
- /package/build/{src-5XWKD5UB.js.map → src-7HIQOGPY.js.map} +0 -0
- /package/build/{src-I6QIZSAX.js.map → src-IRKCACSZ.js.map} +0 -0
- /package/build/{src-BMV74WCO.js.map → src-QCND6FA3.js.map} +0 -0
- /package/build/{src-WKNIYADZ.js.map → src-QJJ7EIYT.js.map} +0 -0
- /package/build/{src-JGFI4IQH.js.map → src-U45WATPX.js.map} +0 -0
- /package/build/{src-Q3X5WF65.js.map → src-U7SGKJCW.js.map} +0 -0
- /package/build/{src-WBDWTVY2.js.map → src-XSN6C5L2.js.map} +0 -0
- /package/build/{sync-types-6XPVFG3C.js.map → sync-types-JLBBFIOB.js.map} +0 -0
- /package/build/{uninstall-L6JBTJHG.js.map → uninstall-KQDD5ADQ.js.map} +0 -0
|
@@ -2,48 +2,47 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
useVeloClient
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-GFSMOEGG.js";
|
|
6
|
+
import "./chunk-2DE7QM5C.js";
|
|
7
|
+
import "./chunk-GIS574I5.js";
|
|
8
8
|
import {
|
|
9
9
|
syncLatestTypes
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OISYBAR4.js";
|
|
11
11
|
import "./chunk-OJHDGJWP.js";
|
|
12
|
-
import "./chunk-OUBPZBBH.js";
|
|
13
12
|
import "./chunk-YXFEXGAH.js";
|
|
14
13
|
import {
|
|
15
14
|
useProjectModel
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YQ2ZYOKK.js";
|
|
17
16
|
import {
|
|
18
17
|
pRetry,
|
|
19
18
|
useAuth
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-24KEFD7K.js";
|
|
20
|
+
import "./chunk-XWFG3TRU.js";
|
|
22
21
|
import {
|
|
23
22
|
Spinner,
|
|
24
23
|
Trans,
|
|
25
24
|
require_react,
|
|
26
25
|
useAsync,
|
|
27
26
|
useTranslation
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-WVS26NCB.js";
|
|
28
|
+
import "./chunk-WN3D6AOY.js";
|
|
30
29
|
import "./chunk-W423UTD3.js";
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-2NWGTFAC.js";
|
|
32
31
|
import "./chunk-YU54OBFT.js";
|
|
33
32
|
import "./chunk-XMTHMR2B.js";
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-5XUFGBCU.js";
|
|
35
34
|
import {
|
|
36
35
|
outputDir,
|
|
37
36
|
outputFile
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EDNJGHVN.js";
|
|
39
38
|
import {
|
|
40
39
|
getTestOverrides
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BNWDAMAL.js";
|
|
42
41
|
import {
|
|
43
42
|
CliError,
|
|
44
43
|
CliErrorCode,
|
|
45
44
|
require_lib
|
|
46
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GG7YZNYL.js";
|
|
47
46
|
import {
|
|
48
47
|
__toESM,
|
|
49
48
|
init_esm_shims
|
|
@@ -169,4 +168,4 @@ var DevCommand = () => {
|
|
|
169
168
|
export {
|
|
170
169
|
DevCommand
|
|
171
170
|
};
|
|
172
|
-
//# sourceMappingURL=DevCommand-
|
|
171
|
+
//# sourceMappingURL=DevCommand-AEGLMQVP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../cli-site-live/src/components/DevCommand/DevCommand.tsx","../../cli-site-live/src/components/DevCommand/InitializingState.tsx","../../cli-site-live/src/velo-types-sync-client/useVeloTypesSyncClient.ts","../../cli-site-live/src/velo-types-sync-client/velo-types-sync-client.ts","../../cli-site-live/src/project-files-service/useProjectFilesService.ts","../../cli-site-live/src/project-files-service/project-files-service.ts","../../cli-site-live/src/components/DevCommand/ReadyState.tsx"],"sourcesContent":["import React from 'react';\nimport type { FC } from 'react';\nimport { InitializingState } from './InitializingState.js';\nimport { ReadyState } from './ReadyState.js';\n\nexport const DevCommand: FC = () => {\n return (\n <InitializingState>\n <ReadyState />\n </InitializingState>\n );\n};\n","import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\nimport { match } from 'variant';\nimport { Spinner, useAsync } from '@wix/cli-ui-kit';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { useVeloClient } from '@wix/velo-client';\nimport { useVeloTypesSyncClient } from '../../velo-types-sync-client/useVeloTypesSyncClient.js';\nimport { useProjectFilesService } from '../../project-files-service/useProjectFilesService.js';\nimport { useProjectModel } from '../../model.js';\n\nexport const InitializingState: FC<PropsWithChildren> = ({ children }) => {\n const { t } = useTranslation();\n const veloClient = useVeloClient();\n const projectFilesService = useProjectFilesService();\n const { veloAppId, projectFolder } = useProjectModel();\n const veloTypeSyncer = useVeloTypesSyncClient(projectFolder);\n\n const { status } = useAsync(async () => {\n async function initProjectFiles() {\n const { files, directories } = await veloClient.listAppFiles(veloAppId);\n await Promise.all([\n ...directories.map(projectFilesService.addDir),\n ...files.map(projectFilesService.saveFile),\n ]);\n }\n await Promise.all([initProjectFiles(), veloTypeSyncer.syncLatestTypes()]);\n }, []);\n\n return match(status, {\n Success: () => children,\n Error: () => null,\n Loading: () => <Spinner text={t('dev_command.init.fetching_files')} />,\n });\n};\n","import { useAuth } from '@wix/cli-auth';\nimport { useMemo } from 'react';\nimport { VeloTypesSyncClient } from './velo-types-sync-client.js';\n\nexport function useVeloTypesSyncClient(projectFolder: string) {\n const { getAccessToken } = useAuth();\n\n return useMemo(\n () => new VeloTypesSyncClient(projectFolder, getAccessToken),\n [projectFolder, getAccessToken]\n );\n}\n","import pRetry from 'p-retry';\nimport type { Options } from 'p-retry';\nimport { syncLatestTypes } from '@wix/velo-site-types-syncer';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\n\nexport class VeloTypesSyncClient {\n private readonly retryOptions: Options;\n\n constructor(\n private projectFolder: string,\n private getToken: () => Promise<string>\n ) {\n const { minRetryTimeout } = getTestOverrides();\n\n this.retryOptions = {\n retries: 3,\n minTimeout: minRetryTimeout,\n maxTimeout: 3 * 1000,\n };\n }\n\n syncLatestTypes = async () => {\n const token = await this.getToken();\n\n try {\n await pRetry(\n () =>\n syncLatestTypes(this.projectFolder, {\n getAppToken: () => token,\n }),\n this.retryOptions\n );\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToSyncPagesTypes(),\n cause: e,\n });\n }\n };\n}\n","import { useMemo } from 'react';\nimport { useProjectModel } from '../model.js';\nimport { ProjectFilesService } from './project-files-service.js';\n\nexport const useProjectFilesService = () => {\n const { projectFolder } = useProjectModel();\n\n return useMemo(() => new ProjectFilesService(projectFolder), [projectFolder]);\n};\n","import { join } from 'node:path';\nimport type { Directory, File } from '@wix/velo-client';\nimport { outputFile, outputDir } from '@wix/cli-fs';\n\nexport class ProjectFilesService {\n constructor(private projectFolder: string) {}\n\n addDir = async (file: Directory): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputDir(filePath);\n };\n\n saveFile = async (file: File): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputFile(filePath, file.content);\n };\n\n private getFullPath = (file: File | Directory) =>\n join(this.projectFolder, file.path);\n}\n","import React from 'react';\nimport { Trans } from '@wix/cli-i18n';\n\nexport const ReadyState = () => {\n return <Trans i18nKey=\"dev_command.welcome\" />;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../cli-site-live/src/components/DevCommand/DevCommand.tsx","../../cli-site-live/src/components/DevCommand/InitializingState.tsx","../../cli-site-live/src/velo-types-sync-client/useVeloTypesSyncClient.ts","../../cli-site-live/src/velo-types-sync-client/velo-types-sync-client.ts","../../cli-site-live/src/project-files-service/useProjectFilesService.ts","../../cli-site-live/src/project-files-service/project-files-service.ts","../../cli-site-live/src/components/DevCommand/ReadyState.tsx"],"sourcesContent":["import React from 'react';\nimport type { FC } from 'react';\nimport { InitializingState } from './InitializingState.js';\nimport { ReadyState } from './ReadyState.js';\n\nexport const DevCommand: FC = () => {\n return (\n <InitializingState>\n <ReadyState />\n </InitializingState>\n );\n};\n","import type { FC, PropsWithChildren } from 'react';\nimport React from 'react';\nimport { match } from 'variant';\nimport { Spinner, useAsync } from '@wix/cli-ui-kit';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { useVeloClient } from '@wix/velo-client';\nimport { useVeloTypesSyncClient } from '../../velo-types-sync-client/useVeloTypesSyncClient.js';\nimport { useProjectFilesService } from '../../project-files-service/useProjectFilesService.js';\nimport { useProjectModel } from '../../model.js';\n\nexport const InitializingState: FC<PropsWithChildren> = ({ children }) => {\n const { t } = useTranslation();\n const veloClient = useVeloClient();\n const projectFilesService = useProjectFilesService();\n const { veloAppId, projectFolder } = useProjectModel();\n const veloTypeSyncer = useVeloTypesSyncClient(projectFolder);\n\n const { status } = useAsync(async () => {\n async function initProjectFiles() {\n const { files, directories } = await veloClient.listAppFiles(veloAppId);\n await Promise.all([\n ...directories.map(projectFilesService.addDir),\n ...files.map(projectFilesService.saveFile),\n ]);\n }\n await Promise.all([initProjectFiles(), veloTypeSyncer.syncLatestTypes()]);\n }, []);\n\n return match(status, {\n Success: () => children,\n Error: () => null,\n Loading: () => <Spinner text={t('dev_command.init.fetching_files')} />,\n });\n};\n","import { useAuth } from '@wix/cli-auth';\nimport { useMemo } from 'react';\nimport { VeloTypesSyncClient } from './velo-types-sync-client.js';\n\nexport function useVeloTypesSyncClient(projectFolder: string) {\n const { getAccessToken } = useAuth();\n\n return useMemo(\n () => new VeloTypesSyncClient(projectFolder, getAccessToken),\n [projectFolder, getAccessToken]\n );\n}\n","import pRetry from 'p-retry';\nimport type { Options } from 'p-retry';\nimport { syncLatestTypes } from '@wix/velo-site-types-syncer';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\n\nexport class VeloTypesSyncClient {\n private readonly retryOptions: Options;\n\n constructor(\n private projectFolder: string,\n private getToken: () => Promise<string>\n ) {\n const { minRetryTimeout } = getTestOverrides();\n\n this.retryOptions = {\n retries: 3,\n minTimeout: minRetryTimeout,\n maxTimeout: 3 * 1000,\n };\n }\n\n syncLatestTypes = async () => {\n const token = await this.getToken();\n\n try {\n await pRetry(\n () =>\n syncLatestTypes(this.projectFolder, {\n getAppToken: () => token,\n }),\n this.retryOptions\n );\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToSyncPagesTypes(),\n cause: e,\n });\n }\n };\n}\n","import { useMemo } from 'react';\nimport { useProjectModel } from '../model.js';\nimport { ProjectFilesService } from './project-files-service.js';\n\nexport const useProjectFilesService = () => {\n const { projectFolder } = useProjectModel();\n\n return useMemo(() => new ProjectFilesService(projectFolder), [projectFolder]);\n};\n","import { join } from 'node:path';\nimport type { Directory, File } from '@wix/velo-client';\nimport { outputFile, outputDir } from '@wix/cli-fs';\n\nexport class ProjectFilesService {\n constructor(private projectFolder: string) {}\n\n addDir = async (file: Directory): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputDir(filePath);\n };\n\n saveFile = async (file: File): Promise<void> => {\n const filePath = this.getFullPath(file);\n await outputFile(filePath, file.content);\n };\n\n private getFullPath = (file: File | Directory) =>\n join(this.projectFolder, file.path);\n}\n","import React from 'react';\nimport { Trans } from '@wix/cli-i18n';\n\nexport const ReadyState = () => {\n return <Trans i18nKey=\"dev_command.welcome\" />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,IAAAA,gBAAkB;;;ACAlB;AACA,IAAAC,gBAAkB;AAClB,qBAAsB;;;ACFtB;AACA,mBAAwB;;;ACDxB;AAMO,IAAM,sBAAN,MAA0B;AAAA,EAG/B,YACU,eACA,UACR;AAFQ;AACA;AAER,UAAM,EAAE,gBAAgB,IAAI,iBAAiB;AAE7C,SAAK,eAAe;AAAA,MAClB,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,YAAY,IAAI;AAAA,IAClB;AAAA,EACF;AAAA,EAbiB;AAAA,EAejB,kBAAkB,YAAY;AAC5B,UAAM,QAAQ,MAAM,KAAK,SAAS;AAElC,QAAI;AACF,YAAM;AAAA,QACJ,MACE,gBAAgB,KAAK,eAAe;AAAA,UAClC,aAAa,MAAM;AAAA,QACrB,CAAC;AAAA,QACH,KAAK;AAAA,MACP;AAAA,IACF,SAAS,GAAG;AACV,YAAM,IAAI,SAAS;AAAA,QACjB,MAAM,aAAa,uBAAuB;AAAA,QAC1C,OAAO;AAAA,MACT,CAAC;AAAA,IACH;AAAA,EACF;AACF;;;ADpCO,SAAS,uBAAuB,eAAuB;AAC5D,QAAM,EAAE,eAAe,IAAI,QAAQ;AAEnC,aAAO;AAAA,IACL,MAAM,IAAI,oBAAoB,eAAe,cAAc;AAAA,IAC3D,CAAC,eAAe,cAAc;AAAA,EAChC;AACF;;;AEXA;AAAA,IAAA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