@plasmicapp/cli 0.1.353 → 0.1.355
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/__tests__/envdetect.spec.d.ts +1 -0
- package/dist/actions/sync-components.d.ts +1 -1
- package/dist/actions/sync-data-tokens.d.ts +1 -1
- package/dist/actions/sync-global-contexts.d.ts +1 -1
- package/dist/actions/sync-global-variants.d.ts +1 -1
- package/dist/actions/sync-icons.d.ts +1 -1
- package/dist/actions/sync-project-module.d.ts +1 -1
- package/dist/actions/sync-splits-provider.d.ts +1 -1
- package/dist/actions/sync-style-tokens-provider.d.ts +1 -1
- package/dist/index.js +248 -262
- package/dist/lib.js +248 -262
- package/dist/utils/code-utils.d.ts +6 -6
- package/dist/utils/config-utils.d.ts +3 -3
- package/dist/utils/envdetect.d.ts +1 -1
- package/package.json +2 -2
- package/src/__tests__/code-utils-spec.ts +6 -9
- package/src/__tests__/envdetect.spec.ts +115 -0
- package/src/actions/export.ts +110 -120
- package/src/actions/fix-imports.ts +5 -3
- package/src/actions/init.ts +5 -4
- package/src/actions/sync-components.ts +2 -6
- package/src/actions/sync-data-tokens.ts +5 -10
- package/src/actions/sync-global-contexts.ts +5 -6
- package/src/actions/sync-global-variants.ts +3 -8
- package/src/actions/sync-icons.ts +3 -4
- package/src/actions/sync-project-module.ts +5 -6
- package/src/actions/sync-splits-provider.ts +5 -6
- package/src/actions/sync-style-tokens-provider.ts +5 -7
- package/src/actions/sync.ts +15 -30
- package/src/migrations/migrations.ts +3 -3
- package/src/utils/code-utils.ts +15 -44
- package/src/utils/config-utils.ts +7 -21
- package/src/utils/envdetect.ts +42 -5
- package/src/utils/rsc-config.ts +29 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ChecksumBundle, ComponentBundle } from "../api";
|
|
2
2
|
import { ComponentUpdateSummary } from "../utils/code-utils";
|
|
3
3
|
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
4
|
-
export declare function syncProjectComponents(context: PlasmicContext, project: ProjectConfig, version: string, componentBundles: ComponentBundle[], forceOverwrite: boolean, summary: Map<string, ComponentUpdateSummary>, projectLock: ProjectLock, checksums: ChecksumBundle
|
|
4
|
+
export declare function syncProjectComponents(context: PlasmicContext, project: ProjectConfig, version: string, componentBundles: ComponentBundle[], forceOverwrite: boolean, summary: Map<string, ComponentUpdateSummary>, projectLock: ProjectLock, checksums: ChecksumBundle): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
2
|
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
3
|
export declare const DEFAULT_DATA_TOKENS_NAME = "plasmic-data-tokens";
|
|
4
|
-
export declare function syncDataTokens(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle
|
|
4
|
+
export declare function syncDataTokens(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle): Promise<void>;
|
|
5
5
|
export declare function getDataTokensResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
2
|
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
3
|
export declare const DEFAULT_GLOBAL_CONTEXTS_NAME = "PlasmicGlobalContextsProvider";
|
|
4
|
-
export declare function syncGlobalContexts(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle
|
|
4
|
+
export declare function syncGlobalContexts(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle): Promise<void>;
|
|
5
5
|
export declare function getGlobalContextsResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChecksumBundle, GlobalVariantBundle, ProjectMetaBundle } from "../api";
|
|
2
2
|
import { PlasmicContext } from "../utils/config-utils";
|
|
3
|
-
export declare function syncGlobalVariants(context: PlasmicContext, projectMeta: ProjectMetaBundle, bundles: GlobalVariantBundle[], checksums: ChecksumBundle, branchName: string
|
|
3
|
+
export declare function syncGlobalVariants(context: PlasmicContext, projectMeta: ProjectMetaBundle, bundles: GlobalVariantBundle[], checksums: ChecksumBundle, branchName: string): Promise<void>;
|
|
@@ -4,4 +4,4 @@ import { PlasmicContext } from "../utils/config-utils";
|
|
|
4
4
|
export interface SyncIconsArgs extends CommonArgs {
|
|
5
5
|
projects: readonly string[];
|
|
6
6
|
}
|
|
7
|
-
export declare function syncProjectIconAssets(context: PlasmicContext, projectId: string, branchName: string, version: string, iconBundles: IconBundle[], checksums: ChecksumBundle
|
|
7
|
+
export declare function syncProjectIconAssets(context: PlasmicContext, projectId: string, branchName: string, version: string, iconBundles: IconBundle[], checksums: ChecksumBundle): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
2
|
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
3
|
export declare const DEFAULT_PROJECT_MODULE_NAME = "plasmic";
|
|
4
|
-
export declare function syncProjectModule(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle
|
|
4
|
+
export declare function syncProjectModule(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle): Promise<void>;
|
|
5
5
|
export declare function getProjectModuleResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
2
|
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
3
|
export declare const DEFAULT_SPLITS_PROVIDER_NAME = "PlasmicSplitsProvider";
|
|
4
|
-
export declare function syncSplitsProvider(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle
|
|
4
|
+
export declare function syncSplitsProvider(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle): Promise<void>;
|
|
5
5
|
export declare function getSplitsProviderResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
2
|
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
3
|
export declare const DEFAULT_STYLE_TOKENS_PROVIDER_NAME = "PlasmicStyleTokensProvider";
|
|
4
|
-
export declare function syncStyleTokensProvider(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle
|
|
4
|
+
export declare function syncStyleTokensProvider(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle): Promise<void>;
|
|
5
5
|
export declare function getStyleTokensProviderResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|