-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdev-environment.ts
More file actions
48 lines (38 loc) · 1.63 KB
/
Copy pathdev-environment.ts
File metadata and controls
48 lines (38 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export const DEV_ENVIRONMENT_SUBCOMMAND = 'dev-env';
export const DEV_ENVIRONMENT_FULL_COMMAND = `vip ${ DEV_ENVIRONMENT_SUBCOMMAND }`;
export const DEV_ENVIRONMENT_PROMPT_INTRO =
'This is a wizard to help you set up your local dev environment.\n\n' +
'Sensible default values were pre-selected for convenience. ' +
'You may also choose to create multiple environments with different settings using the --slug option.\n\n';
export const DEV_ENVIRONMENT_NOT_FOUND = 'Environment not found.';
export const DEV_ENVIRONMENT_COMPONENTS = [ 'muPlugins', 'appCode' ] as const;
export const DEV_ENVIRONMENT_COMPONENTS_WITH_WP = [
'wordpress',
...DEV_ENVIRONMENT_COMPONENTS,
] as const;
export const DEV_ENVIRONMENT_RAW_GITHUB_HOST = 'raw.githubusercontent.com';
export const DEV_ENVIRONMENT_WORDPRESS_VERSIONS_URI =
'/Automattic/vip-container-images/master/wordpress/versions.json';
export const DEV_ENVIRONMENT_WORDPRESS_CACHE_KEY = 'wordpress-versions.json';
export const DEV_ENVIRONMENT_WORDPRESS_VERSION_TTL = 86400; // once per day
interface PhpImage {
image: string;
label: string;
}
export const DEV_ENVIRONMENT_PHP_VERSIONS: Record< string, PhpImage > = {
8.2: {
image: 'ghcr.io/automattic/vip-container-images/php-fpm:8.2',
label: '8.2 (recommended)',
},
8.1: { image: 'ghcr.io/automattic/vip-container-images/php-fpm:8.1', label: '8.1' },
8.3: {
image: 'ghcr.io/automattic/vip-container-images/php-fpm:8.3',
label: '8.3',
},
} as const;
export const DEV_ENVIRONMENT_DEFAULTS = {
title: 'VIP Dev',
multisite: false,
phpVersion: Object.keys( DEV_ENVIRONMENT_PHP_VERSIONS )[ 0 ],
} as const;
export const DEV_ENVIRONMENT_VERSION = '2.2.0';