@scandipwa/magento-scripts 1.11.1-alpha.0 → 1.11.1
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 +2 -1
- package/lib/tasks/cleanup.js +1 -1
- package/lib/tasks/import-dump.js +13 -1
- package/lib/tasks/magento/setup-magento/set-base-url.js +2 -1
- package/lib/tasks/php/compile-options.js +4 -4
- package/lib/tasks/stop.js +1 -1
- package/lib/util/match-filesystem.js +1 -0
- package/package.json +2 -2
package/lib/tasks/cleanup.js
CHANGED
|
@@ -10,7 +10,7 @@ const getProjectConfiguration = require('../config/get-project-configuration');
|
|
|
10
10
|
const checkConfigurationFile = require('../config/check-configuration-file');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* @type {() => import('listr2').ListrTask<import('
|
|
13
|
+
* @type {() => import('listr2').ListrTask<import('../../typings/context').ListrContext>}
|
|
14
14
|
*/
|
|
15
15
|
const cleanup = () => ({
|
|
16
16
|
title: 'Cleanup project',
|
package/lib/tasks/import-dump.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const path = require('path');
|
|
1
2
|
const { checkRequirements } = require('./requirements');
|
|
2
3
|
const {
|
|
3
4
|
importDumpToMySQL,
|
|
@@ -14,9 +15,10 @@ const {
|
|
|
14
15
|
configureProject
|
|
15
16
|
} = require('./start');
|
|
16
17
|
const importRemoteDb = require('./mysql/import-remote-db');
|
|
18
|
+
const matchFilesystem = require('../util/match-filesystem');
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
|
-
* @type {() => import('listr2').ListrTask<import('
|
|
21
|
+
* @type {() => import('listr2').ListrTask<import('../../typings/context').ListrContext>}
|
|
20
22
|
*/
|
|
21
23
|
const importDump = () => ({
|
|
22
24
|
title: 'Importing Database Dump',
|
|
@@ -27,6 +29,16 @@ const importDump = () => ({
|
|
|
27
29
|
stopProject(),
|
|
28
30
|
retrieveFreshProjectConfiguration(),
|
|
29
31
|
configureProject(),
|
|
32
|
+
{
|
|
33
|
+
title: 'Installing Magento',
|
|
34
|
+
// skip setup if env.php and config.php are present in app/etc folder
|
|
35
|
+
skip: () => matchFilesystem(path.resolve('app/etc'), ['config.php', 'env.php']),
|
|
36
|
+
task: (subCtx, subTask) => subTask.newListr(
|
|
37
|
+
setupMagento({
|
|
38
|
+
onlyInstallMagento: true
|
|
39
|
+
})
|
|
40
|
+
)
|
|
41
|
+
},
|
|
30
42
|
dumpThemeConfig(),
|
|
31
43
|
importDumpToMySQL(),
|
|
32
44
|
restoreThemeConfig(),
|
|
@@ -21,7 +21,8 @@ module.exports = () => ({
|
|
|
21
21
|
{ path: 'web/unsecure/base_url', value: httpUrl },
|
|
22
22
|
{ path: 'web/secure/base_url', value: httpsUrl },
|
|
23
23
|
{ path: 'web/secure/use_in_frontend', value: enableSecureFrontend },
|
|
24
|
-
{ path: 'web/secure/use_in_adminhtml', value: enableSecureFrontend }
|
|
24
|
+
{ path: 'web/secure/use_in_adminhtml', value: enableSecureFrontend },
|
|
25
|
+
{ path: 'web/cookie/cookie_domain', value: null }
|
|
25
26
|
], { mysqlConnection, task });
|
|
26
27
|
}
|
|
27
28
|
});
|
|
@@ -52,7 +52,7 @@ const compileOptions = {
|
|
|
52
52
|
'+iconv',
|
|
53
53
|
'+json',
|
|
54
54
|
'+mbstring',
|
|
55
|
-
'+openssl=$(brew --prefix openssl)', // ="$(brew --prefix openssl)"
|
|
55
|
+
'+openssl=$(brew --prefix openssl@1.1)', // ="$(brew --prefix openssl@1.1)"
|
|
56
56
|
'+xml',
|
|
57
57
|
'+mysql',
|
|
58
58
|
'+pdo',
|
|
@@ -70,11 +70,11 @@ const compileOptions = {
|
|
|
70
70
|
],
|
|
71
71
|
env: {
|
|
72
72
|
// eslint-disable-next-line max-len
|
|
73
|
-
PKG_CONFIG_PATH: '$PKG_CONFIG_PATH:$(brew --prefix libxml2)/lib/pkgconfig:$(brew --prefix icu4c)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig:$(brew --prefix curl-openssl)/lib/pkgconfig:$(brew --prefix zlib)/lib/pkgconfig',
|
|
74
|
-
CPATH: '$CPATH:$(brew --prefix openssl)/include',
|
|
73
|
+
PKG_CONFIG_PATH: '$PKG_CONFIG_PATH:$(brew --prefix libxml2)/lib/pkgconfig:$(brew --prefix icu4c)/lib/pkgconfig:$(brew --prefix openssl@1.1)/lib/pkgconfig:$(brew --prefix curl-openssl@1.1)/lib/pkgconfig:$(brew --prefix zlib)/lib/pkgconfig',
|
|
74
|
+
CPATH: '$CPATH:$(brew --prefix openssl@1.1)/include',
|
|
75
75
|
CXX: 'g++ -DTRUE=1 -DFALSE=0',
|
|
76
76
|
CC: 'gcc -DTRUE=1 -DFALSE=0',
|
|
77
|
-
LDFLAGS: '$(brew --prefix openssl)/lib/libssl.dylib $(brew --prefix openssl)/lib/libcrypto.dylib'
|
|
77
|
+
LDFLAGS: '$(brew --prefix openssl@1.1)/lib/libssl.dylib $(brew --prefix openssl@1.1)/lib/libcrypto.dylib'
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
};
|
package/lib/tasks/stop.js
CHANGED
|
@@ -5,7 +5,7 @@ const getProjectConfiguration = require('../config/get-project-configuration');
|
|
|
5
5
|
const checkConfigurationFile = require('../config/check-configuration-file');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @type {() => import('listr2').ListrTask<import('
|
|
8
|
+
* @type {() => import('listr2').ListrTask<import('../../typings/context').ListrContext>}
|
|
9
9
|
*/
|
|
10
10
|
const stop = () => ({
|
|
11
11
|
title: 'Stopping project',
|
|
@@ -5,6 +5,7 @@ const pathExists = require('./path-exists');
|
|
|
5
5
|
* Check file system structure to detect possible unfinished installation
|
|
6
6
|
* @param {String} cwd working directory
|
|
7
7
|
* @param {Object} structure Object with template files structure
|
|
8
|
+
* @return {Promise<boolean>}
|
|
8
9
|
*/
|
|
9
10
|
const matchFilesystem = async (cwd, structure) => {
|
|
10
11
|
if (Array.isArray(structure)) {
|
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.11.1
|
|
6
|
+
"version": "1.11.1",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./typings/index.d.ts",
|
|
9
9
|
"license": "OSL-3.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "f2b7cbd752b96db4cd57441eb37434f3bf2065c3"
|
|
45
45
|
}
|