Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use npm package for simple-pricing plugin #6225

Merged
merged 5 commits into from
Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const externalNodeModules = [
"@reactioncommerce/api-plugin-orders",
"@reactioncommerce/api-plugin-payments",
"@reactioncommerce/api-plugin-payments-stripe",
"@reactioncommerce/api-plugin-pricing-simple",
"@reactioncommerce/api-plugin-products",
"@reactioncommerce/api-plugin-settings",
"@reactioncommerce/api-plugin-simple-schema",
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@reactioncommerce/api-plugin-orders": "~1.0.0",
"@reactioncommerce/api-plugin-payments": "~1.0.0",
"@reactioncommerce/api-plugin-payments-stripe": "~1.0.0",
"@reactioncommerce/api-plugin-pricing-simple": "~1.0.0",
"@reactioncommerce/api-plugin-products": "~1.0.0",
"@reactioncommerce/api-plugin-settings": "~1.0.0",
"@reactioncommerce/api-plugin-shipments": "~1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"notifications": "@reactioncommerce/api-plugin-notifications",
"orders": "@reactioncommerce/api-plugin-orders",
"payments": "@reactioncommerce/api-plugin-payments",
"pricing": "./src/plugins/simple-pricing/index.js",
"pricing": "@reactioncommerce/api-plugin-pricing-simple",
"product": "@reactioncommerce/api-plugin-products",
"sMTPEmail": "@reactioncommerce/api-plugin-email-smtp",
"settings": "@reactioncommerce/api-plugin-settings",
Expand Down
2 changes: 2 additions & 0 deletions src/mockTypes.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ extend type FakeData {
productVariantInput: ProductVariantInput
): Product,
"Fake field to satisfy linting"
productVariant: ProductVariant,
"Fake field to satisfy linting"
metafield: Metafield
"Fake field to satisfy linting"
imageInfo: ImageInfo,
Expand Down
11 changes: 0 additions & 11 deletions src/plugins/simple-pricing/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions src/plugins/simple-pricing/i18n/en.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/plugins/simple-pricing/i18n/index.js

This file was deleted.

49 changes: 0 additions & 49 deletions src/plugins/simple-pricing/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/simple-pricing/mutations/index.js

This file was deleted.

65 changes: 0 additions & 65 deletions src/plugins/simple-pricing/mutations/updateProductVariantPrices.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/plugins/simple-pricing/policies.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/plugins/simple-pricing/preStartup.js

This file was deleted.

15 changes: 0 additions & 15 deletions src/plugins/simple-pricing/queries/getVariantPrice.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/simple-pricing/queries/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/simple-pricing/resolvers/CatalogProduct.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/simple-pricing/resolvers/CatalogProductVariant.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/simple-pricing/resolvers/Mutation/index.js

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions src/plugins/simple-pricing/resolvers/Product.js

This file was deleted.

24 changes: 0 additions & 24 deletions src/plugins/simple-pricing/resolvers/ProductPricingInfo.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/plugins/simple-pricing/resolvers/ProductPricingInfo.test.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/plugins/simple-pricing/resolvers/ProductVariant.js

This file was deleted.

15 changes: 0 additions & 15 deletions src/plugins/simple-pricing/resolvers/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/simple-pricing/schemas/index.js

This file was deleted.

Loading