-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into supernova/1071_cropped_checkout_2
- Loading branch information
Showing
156 changed files
with
5,168 additions
and
2,798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
save-prefix "^" | ||
save-prefix "~" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
########## .env.docker ######################################################## | ||
# | ||
# See packages/venia-concept/.env.dist file for full option details | ||
# See packages/pwa-buildpack/envVarDefinitions.json file for full option details | ||
# | ||
############################################################################### | ||
|
||
DEV_SERVER_HOST=pwa-docker.localhost | ||
PWA_STUDIO_PUBLIC_PATH=pwa-docker.localhost | ||
PWA_STUDIO_PORTS_DEVELOPMENT=8080 | ||
ENABLE_SERVICE_WORKER_DEBUGGING=0 | ||
PWA_STUDIO_HOT_RELOAD_WITH_POLLING=0 | ||
MAGENTO_BACKEND_URL=https://release-dev-231-npzdaky-zddsyhrdimyra.us-4.magentosite.cloud/ | ||
MAGENTO_BUILDPACK_PROVIDE_SECURE_HOST=0 | ||
UPWARD_JS_UPWARD_PATH=venia-upward.yml | ||
DEV_SERVER_PORT=8080 | ||
DEV_SERVER_SERVICE_WORKER_ENABLED=0 | ||
DEV_SERVER_WATCH_OPTIONS_USE_POLLING=0 | ||
MAGENTO_BACKEND_URL=https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/ | ||
CUSTOM_ORIGIN_ENABLED=0 | ||
UPWARD_JS_UPWARD_PATH=upward.yml | ||
UPWARD_JS_BIND_LOCAL=1 | ||
UPWARD_JS_LOG_URL=1 | ||
BRAINTREE_TOKEN=sandbox_8yrzsvtm_s2bg8fs563crhqzk | ||
CHECKOUT_BRAINTREE_TOKEN=sandbox_8yrzsvtm_s2bg8fs563crhqzk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
########## .env.docker ######################################################## | ||
# | ||
# See packages/venia-concept/.env.dist file for full option details | ||
# See packages/pwa-buildpack/envVarDefinitions.json file for full option details | ||
# | ||
############################################################################### | ||
|
||
NODE_ENV=production | ||
PORT=8080 | ||
PWA_STUDIO_PUBLIC_PATH=localhost | ||
STAGING_SERVER_HOST=localhost | ||
# magento graphql backend set to production mode | ||
MAGENTO_BACKEND_URL=redacted | ||
MAGENTO_BUILDPACK_PROVIDE_SECURE_HOST=0 | ||
UPWARD_JS_UPWARD_PATH=venia-upward.yml | ||
UPWARD_JS_UPWARD_PATH=upward.yml | ||
CUSTOM_ORIGIN_ENABLED=0 | ||
UPWARD_JS_BIND_LOCAL=1 | ||
UPWARD_JS_LOG_URL=1 | ||
BRAINTREE_TOKEN=redacted | ||
CHECKOUT_BRAINTREE_TOKEN=redacted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
#!/bin/bash -xe | ||
|
||
cd ../../ | ||
# We set NODE_ENV=production here, instead of in the now.json file. It's not | ||
# obvious, but this build script runs _after_ yarn install. If | ||
# NODE_ENV=production is set _during_ yarn install, it won't install | ||
# devDependencies. So we need to wait until install is done before setting | ||
# NODE_ENV=production to optimize the build step. | ||
export NODE_ENV="production" | ||
|
||
# This step will happen _twice_ in yarn deploy: once for the static deploy and | ||
# once to compile the lambda. So instead of a full build, this command runs a | ||
# streamlined build to make only what is essential for deploy. | ||
yarn concurrently 'yarn workspace @magento/pwa-buildpack run build' 'yarn workspace @magento/peregrine run build:esm' | ||
# For the Venia build, any environment variables not set in now.json or other | ||
# scripts are filled in by copying the default .env file here. | ||
cp packages/venia-concept/.env.dist packages/venia-concept/.env | ||
yarn workspace @magento/venia-concept run build:prod | ||
# No .env file generation is necessary, since the only required variable without | ||
# a default, MAGENTO_BACKEND_URL, is set in the build environment by now.json. | ||
yarn run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/graphql-cli-validate-magento-pwa-queries/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Logs action type, payload, and result state to the browser console. | ||
* @param {*} reducer a reducing function to wrap with logging | ||
* @returns {Function} a wrapped reducer function | ||
*/ | ||
const withLogger = reducer => (state, action) => { | ||
const result = reducer(state, action); | ||
|
||
console.groupCollapsed(action.type); | ||
console.group('payload'); | ||
console.log(action.payload); | ||
console.groupEnd(); | ||
console.group('next state'); | ||
console.log(result); | ||
console.groupEnd(); | ||
console.groupEnd(); | ||
|
||
return result; | ||
}; | ||
|
||
export default withLogger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const middleware = jest.fn(); | ||
const expressSharp = (module.exports = jest.fn().mockReturnValue(middleware)); | ||
expressSharp.__mockMiddleware = middleware; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const middleware = jest.fn(); | ||
module.exports = { | ||
middleware: jest.fn().mockReturnValue(middleware), | ||
__mockMiddleware: middleware | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env node | ||
|
||
require('yargs') | ||
.commandDir('../dist/cli') | ||
.demandCommand( | ||
1, | ||
'Invoke buildpack with a subcommand (eg. `buildpack create-env-file`) and the arguments to that subcommand.' | ||
) | ||
.strict() | ||
.help().argv; |
Oops, something went wrong.