Skip to content

Commit 31b9915

Browse files
committed
Move Blueprints v1-specific files to v1 subdirectory
1 parent f3648e1 commit 31b9915

File tree

15 files changed

+22
-22
lines changed

15 files changed

+22
-22
lines changed

packages/playground/blueprints/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ export type {
66
BlueprintBundle,
77
BlueprintDeclaration,
88
PHPConstants,
9-
} from './lib/blueprint';
9+
} from './lib/v1/types';
1010
export {
1111
compileBlueprint,
1212
getBlueprintDeclaration,
1313
isBlueprintBundle,
1414
runBlueprintSteps,
15-
} from './lib/compile';
15+
} from './lib/v1/compile';
1616
export type {
1717
CompileBlueprintOptions,
1818
CompiledBlueprint,
1919
CompiledStep,
2020
OnStepCompleted,
21-
} from './lib/compile';
21+
} from './lib/v1/compile';
2222
export type {
2323
CachedResource,
2424
CorePluginReference,
@@ -37,7 +37,7 @@ export type {
3737
UrlResource,
3838
VFSReference,
3939
VFSResource,
40-
} from './lib/resources';
40+
} from './lib/v1/resources';
4141
export * from './lib/steps';
4242
export * from './lib/steps/handlers';
4343
export type {

packages/playground/blueprints/src/lib/resolve-remote-blueprint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
OverlayFilesystem,
55
ZipFilesystem,
66
} from '@wp-playground/storage';
7-
import type { BlueprintBundle } from './blueprint';
7+
import type { BlueprintBundle } from './v1/types';
88

99
/**
1010
* Resolves a remote blueprint from a URL.

packages/playground/blueprints/src/lib/steps/import-wxr.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { installPlugin } from './install-plugin';
1010
import type { PHPRequestHandler } from '@php-wasm/universal';
1111
import { bootWordPress } from '@wp-playground/wordpress';
1212
import { loadNodeRuntime } from '@php-wasm/node';
13-
import { CorePluginResource } from '../resources';
13+
import { CorePluginResource } from '../v1/resources';
1414
import { resetData } from './reset-data';
1515

1616
describe('Blueprint step importWxr', () => {

packages/playground/blueprints/src/lib/steps/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
FileReference,
55
DirectoryReference,
66
Directory,
7-
} from '../resources';
7+
} from '../v1/resources';
88
import type { ActivatePluginStep } from './activate-plugin';
99
import type { DefineSiteUrlStep } from './define-site-url';
1010
import type { InstallPluginStep, InstallPluginOptions } from './install-plugin';

packages/playground/blueprints/src/lib/steps/install-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { installAsset } from './install-asset';
44
import { activatePlugin } from './activate-plugin';
55
import { writeFile } from './write-file';
66
import { zipNameToHumanName } from '../utils/zip-name-to-human-name';
7-
import type { Directory } from '../resources';
7+
import type { Directory } from '../v1/resources';
88
import { joinPaths } from '@php-wasm/util';
99
import { writeFiles } from '@php-wasm/universal';
1010
import { logger } from '@php-wasm/logger';

packages/playground/blueprints/src/lib/steps/install-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { StepHandler } from '.';
22
import type { InstallAssetOptions } from './install-asset';
33
import { installAsset } from './install-asset';
44
import { activateTheme } from './activate-theme';
5-
import type { Directory } from '../resources';
5+
import type { Directory } from '../v1/resources';
66
import { importThemeStarterContent } from './import-theme-starter-content';
77
import { zipNameToHumanName } from '../utils/zip-name-to-human-name';
88
import { writeFiles } from '@php-wasm/universal';

packages/playground/blueprints/src/lib/steps/wp-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { PHPResponse, UniversalPHP } from '@php-wasm/universal';
22
import type { StepHandler } from '.';
33
import { joinPaths, phpVar } from '@php-wasm/util';
4-
import type { FileReference } from '../resources';
4+
import type { FileReference } from '../v1/resources';
55
import { logger } from '@php-wasm/logger';
66

77
export const defaultWpCliPath = '/tmp/wp-cli.phar';

packages/playground/blueprints/src/lib/steps/write-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { writeFiles as writeFilesToPhpWasm } from '@php-wasm/universal';
22
import type { StepHandler } from '.';
3-
import type { Directory } from '../resources';
3+
import type { Directory } from '../v1/resources';
44
import { logger } from '@php-wasm/logger';
55

66
/**

packages/playground/blueprints/src/lib/compile.spec.ts renamed to packages/playground/blueprints/src/lib/v1/compile.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
runBlueprintSteps,
55
validateBlueprint,
66
} from './compile';
7-
import { defineWpConfigConsts } from './steps/define-wp-config-consts';
7+
import { defineWpConfigConsts } from '../steps/define-wp-config-consts';
88
import { RecommendedPHPVersion } from '@wp-playground/common';
99
import { PHPRequestHandler } from '@php-wasm/universal';
1010
import { loadNodeRuntime } from '@php-wasm/node';

packages/playground/blueprints/src/lib/compile.ts renamed to packages/playground/blueprints/src/lib/v1/compile.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import {
77
} from '@php-wasm/universal';
88
import type { FileReference } from './resources';
99
import { isResourceReference, Resource } from './resources';
10-
import type { Step, StepDefinition, WriteFileStep } from './steps';
11-
import * as allStepHandlers from './steps/handlers';
10+
import type { Step, StepDefinition, WriteFileStep } from '../steps';
11+
import * as allStepHandlers from '../steps/handlers';
1212
import type {
1313
BlueprintDeclaration,
1414
BlueprintBundle,
1515
ExtraLibrary,
1616
StreamBundledFile,
1717
Blueprint,
18-
} from './blueprint';
18+
} from './types';
1919
import { logger } from '@php-wasm/logger';
2020

2121
// @TODO: Configure this in the `wp-cli` step, not here.
@@ -39,8 +39,8 @@ const keyedStepHandlers = {
3939
* `dts-bundle-generator` utility we use for type rollyps does not support
4040
* watching for changes.
4141
*/
42-
import blueprintValidator from '../../public/blueprint-schema-validator';
43-
import { defaultWpCliPath, defaultWpCliResource } from './steps/wp-cli';
42+
import blueprintValidator from '../../../public/blueprint-schema-validator';
43+
import { defaultWpCliPath, defaultWpCliResource } from '../steps/wp-cli';
4444

4545
export type CompiledStep = (php: UniversalPHP) => Promise<void> | void;
4646

0 commit comments

Comments
 (0)