@scandipwa/magento-scripts 1.13.5-alpha.0 → 1.14.1-alpha.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.
Files changed (33) hide show
  1. package/lib/commands/start.js +23 -12
  2. package/lib/config/templates/php-fpm.template.conf +1 -0
  3. package/lib/config/versions/magento-2.3.0.js +3 -1
  4. package/lib/config/versions/magento-2.3.1.js +3 -1
  5. package/lib/config/versions/magento-2.3.2-p2.js +3 -1
  6. package/lib/config/versions/magento-2.3.2.js +3 -1
  7. package/lib/config/versions/magento-2.3.3-p1.js +3 -1
  8. package/lib/config/versions/magento-2.3.3.js +3 -1
  9. package/lib/config/versions/magento-2.3.4-p2.js +3 -1
  10. package/lib/config/versions/magento-2.3.4.js +3 -1
  11. package/lib/config/versions/magento-2.3.5-p1.js +3 -1
  12. package/lib/config/versions/magento-2.3.5-p2.js +3 -1
  13. package/lib/config/versions/magento-2.3.5.js +3 -1
  14. package/lib/config/versions/magento-2.3.6-p1.js +3 -1
  15. package/lib/config/versions/magento-2.3.6.js +3 -1
  16. package/lib/config/versions/magento-2.3.7-p2.js +47 -0
  17. package/lib/config/versions/magento-2.3.7-p3.js +47 -0
  18. package/lib/config/versions/magento-2.4.3-p2.js +51 -0
  19. package/lib/config/versions/magento-2.4.4.js +51 -0
  20. package/lib/tasks/composer/index.js +1 -1
  21. package/lib/tasks/docker/containers.js +16 -4
  22. package/lib/tasks/magento/setup-magento/set-base-url.js +2 -1
  23. package/lib/tasks/php/compile-options.js +4 -3
  24. package/lib/tasks/php/compile.js +1 -1
  25. package/lib/tasks/php/index.js +22 -8
  26. package/lib/tasks/requirements/composer.js +211 -19
  27. package/lib/tasks/requirements/docker/index.js +12 -1
  28. package/lib/tasks/requirements/docker/permissions.js +58 -0
  29. package/lib/tasks/requirements/index.js +1 -2
  30. package/lib/tasks/status/index.js +24 -9
  31. package/lib/util/instance-metadata.js +74 -0
  32. package/package.json +12 -2
  33. package/readme.md +54 -124
package/readme.md CHANGED
@@ -1,150 +1,80 @@
1
1
  # magento-scripts
2
2
 
3
- This package contains scripts and configuration used by Create Magento App by [Create Magento App](https://github.com/scandipwa/create-magento-app).
3
+ This package contains scripts and configuration used by [Create Magento App](https://github.com/scandipwa/create-magento-app).
4
4
 
5
5
  ## Overview
6
6
 
7
7
  What this package does:
8
- - Compiles correct php with all necessary extensions to run Magento on your system.
9
- - Organize services required to run Magento on your system, such as Nginx, Redis, MySQL and Elasticsearch, in docker containers with forwarded ports to host system.
8
+ - Compiles correct PHP version with all necessary extensions to run Magento on your system.
9
+ - Organize services required to run Magento on your system, such as Nginx, Redis, MySQL and Elasticsearch in Docker containers with forwarded ports to host system.
10
10
  - Allows you to run multiple M2 projects simultaneously on the same machine without ports/files/context overlapping.
11
11
 
12
+ ## Requirements
13
+
14
+ ### Linux Requirements
15
+
16
+ Dependency list and installation guide is available in our [documentation for installation on Linux](https://docs.create-magento-app.com/getting-started/prerequisites/installation-on-linux)!
17
+
18
+ ### MacOS Requirements
19
+
20
+ Dependency list and installation guide is available in our [documentation for installation on Mac](https://docs.create-magento-app.com/getting-started/prerequisites/installation-on-macos)!
21
+
22
+ ### Windows Requirements
23
+
24
+ Dependency list and installation guide is available in our [documentation for installation on Windows](https://docs.create-magento-app.com/getting-started/prerequisites/windows-requirements)!
25
+
26
+ > If you miss a requirement CMA will tell you and will give instructions or even provide a one click fix!
27
+
12
28
  ## Usage
13
29
 
14
- ```bash
15
- > npx create-magento-app <folder name>
16
- > cd <folder name>
17
- > yarn/npm run start
18
- ```
30
+ ### Start the App
19
31
 
20
- To use commands such as `composer`, `magento` and `php` with correct version run command:
21
32
  ```bash
22
- > yarn/npm cli
23
- ```
24
- This will open bash with correct aliases to `php`, `magento` and `composer`.
33
+ # Create an App
34
+ npx create-magento-app <folder name>
25
35
 
26
- To open logs use command `logs` with one of the scopes: `redis`, `mysql`, `elasticsearch`, `nginx` or `magento`.
27
- ```bash
28
- > yarn/npm run logs nginx
29
- > // nginx logs
36
+ cd <folder name>
37
+
38
+ # Run it with yarn
39
+ yarn start
40
+
41
+ # Or with npm
42
+ npm run start
30
43
  ```
31
44
 
32
- > NOTE: you can use shortcuts for logs! Like `yarn logs m` will show `mysql` logs, `yarn logs ma` will show `magento` logs and e.t.c.
45
+ > Documentation for `start` command is available [here](https://docs.create-magento-app.com/getting-started/available-commands/start).
33
46
 
34
- ## Requirements
47
+ ### Access Application CLI
35
48
 
36
- - [Docker](https://docs.docker.com/get-docker/) ^19
37
- - [phpbrew](https://github.com/phpbrew/phpbrew) ^1.25
38
-
39
- For Mac
40
- - MacOS 10.5 and newer
41
- - Xcode 11 and newer You can find it.
42
- - [Homebrew](https://brew.sh/)
43
-
44
- ## Dependencies
45
-
46
- ### Ubuntu
47
-
48
- ```sh
49
- apt-get install \
50
- libcurl4-openssl-dev \
51
- libonig-dev \
52
- libjpeg-dev \
53
- libjpeg8-dev \
54
- libjpeg-turbo8-dev \
55
- libpng-dev \
56
- libicu-dev \
57
- libfreetype6-dev \
58
- libzip-dev \
59
- libssl-dev \
60
- build-essential \
61
- libbz2-dev \
62
- libreadline-dev \
63
- libsqlite3-dev \
64
- libssl-dev \
65
- libxml2-dev \
66
- libxslt-dev \
67
- libonig-dev \
68
- php-cli \
69
- php-bz2 \
70
- pkg-config \
71
- autoconf
49
+ To access Magento CLI, Composer and PHP use `cli` command:
50
+ ```bash
51
+ # With yarn
52
+ yarn cli
53
+
54
+ # Or npm
55
+ npm run cli
72
56
  ```
73
57
 
74
- ### Mint Linux
58
+ This will a new instance of Bash with aliases for PHP, Composer and Magento used in Create Magento App project.
75
59
 
76
- ```
77
- apt-get install \
78
- libjpeg-dev \
79
- libjpeg8-dev \
80
- libjpeg-turbo8-dev \
81
- libpng-dev \
82
- libicu-dev \
83
- libfreetype6-dev \
84
- libzip-dev \
85
- libssl-dev \
86
- build-essential \
87
- libbz2-dev \
88
- libreadline-dev \
89
- libsqlite3-dev \
90
- libssl-dev \
91
- libxml2-dev \
92
- libxslt-dev \
93
- libonig-dev \
94
- php-cli \
95
- php-bz2 \
96
- pkg-config \
97
- autoconf \
98
- libcurl4-openssl-dev
99
- ```
60
+ > Documentation for `cli` command is available [here](https://docs.create-magento-app.com/getting-started/available-commands/cli).
100
61
 
101
- ### CentsOS / Fedora
102
- ```sh
103
- yum install --enablerepo=PowerTools openssl-devel \
104
- libjpeg-turbo-devel \
105
- libpng-devel \
106
- gd-devel \
107
- libicu libicu-devel \
108
- libzip-devel \
109
- libtool-ltdl-devel \
110
- oniguruma-devel
111
- ```
62
+ ### Access Application Logs
112
63
 
113
- ### Arch
114
- ```sh
115
- pamac install freetype2 \
116
- openssl \
117
- oniguruma \
118
- libxslt \
119
- bzip2 \
120
- libjpeg-turbo \
121
- libpng \
122
- icu \
123
- libxml2 \
124
- autoconf \
125
- libzip \
126
- sqlite \
127
- readline \
128
- perl
129
- ```
64
+ To open logs use command `logs` with one of the scopes: `redis`, `mysql`, `elasticsearch`, `nginx` or `magento`.
65
+ ```bash
66
+ # With yarn
67
+ yarn logs nginx
130
68
 
131
- ### MacOS
69
+ # Or npm
70
+ npm run logs nginx
132
71
 
133
- ```sh
134
- sudo xcode-select -switch /Applications/Xcode.app
135
- ```
136
- ```sh
137
- brew install zlib \
138
- bzip2 \
139
- libiconv \
140
- curl \
141
- libpng \
142
- gd \
143
- freetype \
144
- oniguruma \
145
- icu4c \
146
- libzip
72
+ > ... nginx logs
147
73
  ```
148
74
 
149
- Additional libraries:
150
- - Installed PHP with json extension.
75
+ > NOTE: you can also use name matching for logs! Like `yarn logs m` will show `mysql` logs, `yarn logs ma` will show `magento` logs and e.t.c.
76
+ Read more about this [here](https://docs.create-magento-app.com/getting-started/available-commands/logs#usage-example).
77
+
78
+ ---
79
+
80
+ CMA contains even more useful commands like [checking application status](https://docs.create-magento-app.com/getting-started/available-commands/status), [executing commands in Docker containers](https://docs.create-magento-app.com/getting-started/available-commands/exec), [linking a theme](https://docs.create-magento-app.com/getting-started/available-commands/link) and [importing database](https://docs.create-magento-app.com/getting-started/available-commands/import-db)!