@scandipwa/magento-scripts 1.11.2 → 1.12.0
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/lib/config/dependencies-for-platforms.js +0 -1
- package/lib/config/index.js +4 -2
- package/lib/config/{php.js → php-config.js} +0 -0
- package/lib/config/phpstorm/debug-config.js +46 -0
- package/lib/config/templates/Project_Default.template.xml +13 -0
- package/lib/config/templates/dataSources.local.template.xml +11 -0
- package/lib/config/templates/dataSources.template.xml +12 -0
- package/lib/config/templates/php.template.xml +14 -0
- package/lib/config/templates/vscode-launch.template.json +15 -0
- package/lib/config/templates/workspace.template.xml +20 -0
- package/lib/config/versions/magento-2.3.0.js +1 -1
- package/lib/config/versions/magento-2.3.1.js +1 -1
- package/lib/config/versions/magento-2.3.2-p2.js +1 -1
- package/lib/config/versions/magento-2.3.2.js +1 -1
- package/lib/config/versions/magento-2.3.3-p1.js +1 -1
- package/lib/config/versions/magento-2.3.3.js +1 -1
- package/lib/config/versions/magento-2.3.4-p2.js +1 -1
- package/lib/config/versions/magento-2.3.4.js +1 -1
- package/lib/config/versions/magento-2.3.5-p1.js +1 -1
- package/lib/config/versions/magento-2.3.5-p2.js +1 -1
- package/lib/config/versions/magento-2.3.5.js +1 -1
- package/lib/config/versions/magento-2.3.6-p1.js +1 -1
- package/lib/config/versions/magento-2.3.6.js +1 -1
- package/lib/config/versions/magento-2.3.7-p1.js +3 -3
- package/lib/config/versions/magento-2.3.7.js +3 -3
- package/lib/config/versions/magento-2.4.0-p1.js +2 -2
- package/lib/config/versions/magento-2.4.0.js +2 -2
- package/lib/config/versions/magento-2.4.1-p1.js +2 -2
- package/lib/config/versions/magento-2.4.1.js +2 -2
- package/lib/config/versions/magento-2.4.2-p1.js +3 -3
- package/lib/config/versions/magento-2.4.2-p2.js +3 -3
- package/lib/config/versions/magento-2.4.2.js +3 -3
- package/lib/config/versions/magento-2.4.3-p1.js +3 -3
- package/lib/config/versions/magento-2.4.3.js +3 -3
- package/lib/tasks/composer/index.js +13 -6
- package/lib/tasks/docker/index.js +1 -1
- package/lib/tasks/docker/network.js +2 -2
- package/lib/tasks/file-system/create-php-storm-config.js +82 -0
- package/lib/tasks/file-system/create-vscode-config.js +111 -0
- package/lib/tasks/file-system/index.js +5 -1
- package/lib/tasks/magento/setup-magento/set-deployment-mode.js +1 -1
- package/lib/tasks/magento/setup-magento/waiting-for-redis.js +1 -1
- package/lib/tasks/php/compile.js +2 -2
- package/lib/tasks/php/configure.js +56 -60
- package/lib/tasks/php/extensions/disable.js +41 -0
- package/lib/tasks/php/extensions/enable.js +44 -0
- package/lib/tasks/php/extensions/install.js +47 -0
- package/lib/tasks/php-fpm/start-php-fpm.js +3 -3
- package/lib/tasks/php-fpm/stop-php-fpm.js +2 -2
- package/lib/tasks/requirements/composer.js +1 -1
- package/lib/tasks/requirements/docker/index.js +2 -2
- package/lib/util/config-file-validator.js +7 -1
- package/package.json +17 -16
- package/typings/context.d.ts +2 -2
- package/typings/index.d.ts +36 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Scripts and configuration used by CMA.",
|
|
4
4
|
"homepage": "https://docs.create-magento-app.com/",
|
|
5
5
|
"repository": "github:scandipwa/create-magento-app",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.12.0",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./typings/index.d.ts",
|
|
9
9
|
"license": "OSL-3.0",
|
|
@@ -22,24 +22,25 @@
|
|
|
22
22
|
"arm64"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@scandipwa/scandipwa-dev-utils": "
|
|
26
|
-
"conf": "
|
|
25
|
+
"@scandipwa/scandipwa-dev-utils": "0.1.12",
|
|
26
|
+
"conf": "10.0.3",
|
|
27
27
|
"enquirer": "2.3.6",
|
|
28
|
-
"eta": "
|
|
29
|
-
"getos": "
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
28
|
+
"eta": "1.12.3",
|
|
29
|
+
"getos": "3.2.1",
|
|
30
|
+
"hjson": "^3.2.2",
|
|
31
|
+
"is-installed-globally": "0.4.0",
|
|
32
|
+
"joi": "17.4.2",
|
|
33
|
+
"listr2": "3.13.0",
|
|
34
|
+
"macos-version": "5.2.1",
|
|
35
|
+
"merge-files": "0.1.2",
|
|
36
|
+
"mysql2": "2.3.2",
|
|
37
|
+
"node-ssh": "12.0.0",
|
|
38
|
+
"semver": "7.3.5",
|
|
39
|
+
"systeminformation": "5.9.8",
|
|
40
|
+
"yargs": "17.2.1"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "24e277b08147a61ac53ae974895135d27668a9ca"
|
|
45
46
|
}
|
package/typings/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CMAConfiguration,
|
|
1
|
+
import { CMAConfiguration, PHPExtensions } from './index';
|
|
2
2
|
|
|
3
3
|
export interface ListrContext {
|
|
4
4
|
magentoVersion: string
|
|
@@ -29,7 +29,7 @@ export interface ListrContext {
|
|
|
29
29
|
fpmBinPath: string
|
|
30
30
|
fpmConfPath: string
|
|
31
31
|
fpmPidFilePath: string
|
|
32
|
-
extensions:
|
|
32
|
+
extensions: PHPExtensions
|
|
33
33
|
version: string
|
|
34
34
|
}
|
|
35
35
|
composer: {
|
package/typings/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { ListrTaskWrapper } from 'listr2';
|
|
2
|
+
|
|
3
|
+
import { ListrContext } from './context';
|
|
4
|
+
|
|
1
5
|
/* eslint-disable no-use-before-define */
|
|
2
6
|
export interface ServiceWithVersion {
|
|
3
7
|
/**
|
|
@@ -37,11 +41,40 @@ export interface PHPExtension extends Record<string, unknown> {
|
|
|
37
41
|
* }
|
|
38
42
|
* ```
|
|
39
43
|
*/
|
|
44
|
+
linuxOptions?: string
|
|
45
|
+
macosOptions?: string
|
|
40
46
|
extensionName?: string
|
|
41
47
|
hooks?: {
|
|
42
|
-
|
|
43
|
-
|
|
48
|
+
preEnable?: (config: CMAConfiguration['configuration']) => Promise<void> | void
|
|
49
|
+
postEnable?: (config: CMAConfiguration['configuration']) => Promise<void> | void
|
|
50
|
+
preDisable?: (config: CMAConfiguration['configuration']) => Promise<void> | void
|
|
51
|
+
postDisable?: (config: CMAConfiguration['configuration']) => Promise<void> | void
|
|
52
|
+
preInstall?: (config: CMAConfiguration['configuration']) => Promise<void> | void
|
|
53
|
+
postInstall?: (config: CMAConfiguration['configuration']) => Promise<void> | void
|
|
44
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Allow to define custom logic to install extension
|
|
57
|
+
*/
|
|
58
|
+
install?: (
|
|
59
|
+
ctx: ListrContext,
|
|
60
|
+
task: ListrTaskWrapper<ListrContext, any>
|
|
61
|
+
) => Promise<void> | void
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Allow to define custom logic to enable an extension
|
|
65
|
+
*/
|
|
66
|
+
enable?: (
|
|
67
|
+
ctx: ListrContext,
|
|
68
|
+
task: ListrTaskWrapper<ListrContext, any>
|
|
69
|
+
) => Promise<void> | void
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Allow to define custom logic to disable an extension
|
|
73
|
+
*/
|
|
74
|
+
disable?: (
|
|
75
|
+
ctx: ListrContext,
|
|
76
|
+
task: ListrTaskWrapper<ListrContext, any>
|
|
77
|
+
) => Promise<void> | void
|
|
45
78
|
}
|
|
46
79
|
|
|
47
80
|
export interface PHPExtensions {
|
|
@@ -54,6 +87,7 @@ export interface PHPExtensions {
|
|
|
54
87
|
xdebug: PHPExtension
|
|
55
88
|
fileinfo: PHPExtension
|
|
56
89
|
libsodium: PHPExtension
|
|
90
|
+
[key: string]: PHPExtension
|
|
57
91
|
}
|
|
58
92
|
|
|
59
93
|
export interface PHPConfiguration {
|