@scandipwa/magento-scripts 1.17.0 → 1.17.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.
@@ -57,6 +57,7 @@ const dependenciesForPlatforms = {
57
57
  dependencies: [
58
58
  'openssl-devel',
59
59
  'libjpeg-turbo-devel',
60
+ 'readline-devel',
60
61
  'libpng-devel',
61
62
  'gd-devel',
62
63
  'libicu',
@@ -0,0 +1,39 @@
1
+ const path = require('path');
2
+ const { defaultMagentoConfig } = require('../magento-config');
3
+ const { php81 } = require('../php/releases');
4
+ const { sslTerminator } = require('../ssl-terminator');
5
+ const { varnish70 } = require('../varnish/varnish-7-0');
6
+
7
+ module.exports = ({ templateDir } = {}) => ({
8
+ magentoVersion: '2.4.4-p2',
9
+ isDefault: true,
10
+ configuration: {
11
+ php: php81({ templateDir }),
12
+ nginx: {
13
+ version: '1.18.0',
14
+ configTemplate: path.join(templateDir || '', 'nginx.template.conf')
15
+ },
16
+ redis: {
17
+ version: '6.0'
18
+ },
19
+ mysql: {
20
+ version: '8.0'
21
+ },
22
+ mariadb: {
23
+ version: '10.4'
24
+ },
25
+ elasticsearch: {
26
+ version: '7.16.3'
27
+ },
28
+ composer: {
29
+ version: '2'
30
+ },
31
+ varnish: varnish70({ templateDir }),
32
+ sslTerminator: sslTerminator({ templateDir })
33
+ },
34
+ magento: defaultMagentoConfig,
35
+ host: 'localhost',
36
+ ssl: {
37
+ enabled: false
38
+ }
39
+ });
@@ -0,0 +1,39 @@
1
+ const path = require('path');
2
+ const { defaultMagentoConfig } = require('../magento-config');
3
+ const { php81 } = require('../php/releases');
4
+ const { sslTerminator } = require('../ssl-terminator');
5
+ const { varnish70 } = require('../varnish/varnish-7-0');
6
+
7
+ module.exports = ({ templateDir } = {}) => ({
8
+ magentoVersion: '2.4.5-p1',
9
+ isDefault: true,
10
+ configuration: {
11
+ php: php81({ templateDir }),
12
+ nginx: {
13
+ version: '1.18.0',
14
+ configTemplate: path.join(templateDir || '', 'nginx.template.conf')
15
+ },
16
+ redis: {
17
+ version: '6.0'
18
+ },
19
+ mysql: {
20
+ version: '8.0'
21
+ },
22
+ mariadb: {
23
+ version: '10.4'
24
+ },
25
+ elasticsearch: {
26
+ version: '7.17.6'
27
+ },
28
+ composer: {
29
+ version: '2'
30
+ },
31
+ varnish: varnish70({ templateDir }),
32
+ sslTerminator: sslTerminator({ templateDir })
33
+ },
34
+ magento: defaultMagentoConfig,
35
+ host: 'localhost',
36
+ ssl: {
37
+ enabled: false
38
+ }
39
+ });
@@ -23,7 +23,7 @@ module.exports = ({ templateDir } = {}) => ({
23
23
  version: '10.4'
24
24
  },
25
25
  elasticsearch: {
26
- version: '7.16.3'
26
+ version: '7.17.6'
27
27
  },
28
28
  composer: {
29
29
  version: '2'
@@ -17,11 +17,21 @@ const excludeFoldersPaths = [
17
17
  /**
18
18
  * Will retrieve project config file path from module.xml
19
19
  *
20
- * @returns {Promise<String>}
20
+ * @returns {Promise<String | null>}
21
21
  */
22
22
  const getProjectConfigFilePath = async () => {
23
23
  const modulesConfigData = await loadXmlFile(pathToModulesConfig);
24
- return modulesConfigData.project.component.modules.module['@_filepath'].replace('$PROJECT_DIR$', process.cwd());
24
+ const {
25
+ project: {
26
+ component: {
27
+ modules: {
28
+ module
29
+ } = {}
30
+ } = {}
31
+ } = {}
32
+ } = modulesConfigData || {};
33
+ const filePath = module && module['@_filepath'];
34
+ return filePath ? filePath.replace('$PROJECT_DIR$', process.cwd()) : null;
25
35
  };
26
36
 
27
37
  /**
@@ -127,7 +137,7 @@ const setupExcludedFoldersConfig = () => ({
127
137
  task: async (ctx, task) => {
128
138
  if (await pathExists(pathToModulesConfig)) {
129
139
  const projectFilePath = await getProjectConfigFilePath();
130
- if (await pathExists(projectFilePath)) {
140
+ if (projectFilePath && await pathExists(projectFilePath)) {
131
141
  const projectConfigData = await loadXmlFile(projectFilePath);
132
142
  const excludedFoldersConfig = getExcludedFoldersConfig(projectConfigData);
133
143
  const hasChanges = setupExcludedFolders(excludedFoldersConfig);
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.17.0",
6
+ "version": "1.17.1",
7
7
  "main": "./index.js",
8
8
  "types": "./typings/index.d.ts",
9
9
  "license": "OSL-3.0",
@@ -53,5 +53,5 @@
53
53
  "mysql",
54
54
  "scandipwa"
55
55
  ],
56
- "gitHead": "0698c02d64c2570c0f546e6c99747232242e7123"
56
+ "gitHead": "7132c339615e8772bf3dd4a0b43ab0022a7ef9db"
57
57
  }