Skip to content

Commit

Permalink
Move composite-checkout-wpcom into client/lib
Browse files Browse the repository at this point in the history
Moving this package into calypso so we get hot reloading during development. It may or may not make sense to move some of this out of calypso later, particularly the parts that are tightly bound to the billing backend.
  • Loading branch information
nbloomf committed Nov 19, 2019
1 parent d906929 commit 09a11d3
Show file tree
Hide file tree
Showing 31 changed files with 14 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
/* TypeScript generated files */
*.d.ts
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Need to force the test environment to be browser-like.
*
* @see https://github.com/Automattic/wp-calypso/blob/master/docs/testing/unit-tests.md#testing-globals
* @jest-environment jsdom
*/

/**
* External dependencies
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
*/
import React from 'react';
import { createRegistry, createPayPalMethod } from '@automattic/composite-checkout';
import {
WPCOMCheckout,
makeShoppingCartHook,
mockPayPalExpressRequest,
} from '@automattic/composite-checkout-wpcom';

/**
* Internal dependencies
*/
import wp from 'lib/wp';
import {
WPCOMCheckout,
makeShoppingCartHook,
mockPayPalExpressRequest,
} from 'lib/composite-checkout-wpcom';

const initialCart = {
coupon: '',
Expand Down
24 changes: 0 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@automattic/color-studio": "2.2.0",
"@automattic/components": "file:./packages/components",
"@automattic/composite-checkout": "file:./packages/composite-checkout",
"@automattic/composite-checkout-wpcom": "file:./packages/composite-checkout-wpcom",
"@automattic/format-currency": "file:./packages/format-currency",
"@automattic/load-script": "file:./packages/load-script",
"@automattic/material-design-icons": "file:./packages/material-design-icons",
Expand Down Expand Up @@ -296,7 +295,7 @@
"prewhybundled": "cross-env-shell CALYPSO_ENV=production EMIT_STATS=withreasons NODE_ARGS=--max_old_space_size=8192 npm run -s build-client",
"whybundled": "whybundled stats.json",
"composite-checkout-demo": "webpack-dev-server --config ./packages/composite-checkout/webpack.config.demo.js --mode development",
"composite-checkout-wpcom-demo": "webpack-dev-server --config ./packages/composite-checkout-wpcom/webpack.config.demo.js --mode development"
"composite-checkout-wpcom-demo": "webpack-dev-server --config ./client/lib/composite-checkout-wpcom/webpack.config.demo.js --mode development"
},
"devDependencies": {
"@automattic/babel-plugin-i18n-calypso": "file:./packages/babel-plugin-i18n-calypso",
Expand Down

0 comments on commit 09a11d3

Please sign in to comment.