Browse Source

Added missing bin/pwa-studio and bin/setup-pwa-studio scripts

Mark Shust 5 năm trước cách đây
mục cha
commit
5f20b609be

+ 7 - 2
CHANGELOG.md

@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
 
 N/A
 
+## [24.1.1] - 2019-10-11
+
+### Fixed
+- Added missing `bin/pwa-studio` and `bin/setup-pwa-studio` bash scripts
+
 ## [24.1.0] - 2019-10-10
 
 ### Added
@@ -15,10 +20,10 @@ N/A
 - Added `hirak/prestissimo` composer package to `bin/setup` helper script for much faster composer installs
 - Downloaded archive installs are now cached on the user's machine, so subsequent installs of Magento will no longer re-download the archive if previously downloaded. Downloaded archives are stored in the `~/.docker-magento` folder.
 
-## Fixed
+### Fixed
 - There is an invalid checksum reference in the Nexcess archive of 2.3.3, replaced checksum reference in `bin/setup` to resolve the error
 
-## Removed
+### Removed
 - The previous CHANGELOG for `24.0.0` referenced `vertex/module-tax` being removed but for some reason it was not removed, now it is
 
 ## [24.0.0] - 2019-10-09

+ 8 - 0
compose/magento-2/bin/pwa-studio

@@ -0,0 +1,8 @@
+#!/bin/bash
+if [ ! -d pwa-studio ]; then
+    echo "PWA studio must first be installed by running bin/setup-pwa-studio"
+    exit
+fi
+
+cd pwa-studio
+NODE_TLS_REJECT_UNAUTHORIZED=0 yarn run watch:all

+ 9 - 0
compose/magento-2/bin/setup-pwa-studio

@@ -0,0 +1,9 @@
+#!/bin/bash
+echo "Install NodeJS and Yarn on host machine, otherwise setup will fail"
+
+BASE_URL=${1:-master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud}
+git clone https://github.com/magento/pwa-studio.git
+cd pwa-studio
+yarn install
+yarn buildpack create-custom-origin packages/venia-concept
+MAGENTO_BACKEND_URL="https://$BASE_URL/" yarn buildpack create-env-file packages/venia-concept

+ 1 - 1
compose/magento-2/docker-compose.dev.yml

@@ -1,5 +1,5 @@
 # Mark Shust's Docker Configuration for Magento (https://github.com/markshust/docker-magento)
-# Version 24.1.0
+# Version 24.1.1
 
 version: "3"
 

+ 1 - 1
compose/magento-2/docker-compose.yml

@@ -1,5 +1,5 @@
 # Mark Shust's Docker Configuration for Magento (https://github.com/markshust/docker-magento)
-# Version 24.1.0
+# Version 24.1.1
 
 version: "3"