Skip to content

Commit

Permalink
Merge pull request #6199 from reactioncommerce/refactor-kieckhafer-mo…
Browse files Browse the repository at this point in the history
…veShipmentsFlatRatePlugin

refactor: move `shipments-flat-rate` plugin to npm
  • Loading branch information
aldeed authored Apr 24, 2020
2 parents 0497f2e + 12e314f commit 7bdb70e
Show file tree
Hide file tree
Showing 78 changed files with 19 additions and 3,433 deletions.
1 change: 1 addition & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const externalNodeModules = [
"@reactioncommerce/api-plugin-settings",
"@reactioncommerce/api-plugin-simple-schema",
"@reactioncommerce/api-plugin-shipments",
"@reactioncommerce/api-plugin-shipments-flat-rate",
"@reactioncommerce/api-plugin-shops",
"@reactioncommerce/api-plugin-surcharges",
"@reactioncommerce/api-plugin-tags",
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 @@ -43,6 +43,7 @@
"@reactioncommerce/api-plugin-products": "~1.0.0",
"@reactioncommerce/api-plugin-settings": "~1.0.0",
"@reactioncommerce/api-plugin-shipments": "~1.0.0",
"@reactioncommerce/api-plugin-shipments-flat-rate": "~1.0.0",
"@reactioncommerce/api-plugin-shops": "~1.0.0",
"@reactioncommerce/api-plugin-simple-schema": "~1.0.0",
"@reactioncommerce/api-plugin-surcharges": "~1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"sMTPEmail": "@reactioncommerce/api-plugin-email-smtp",
"settings": "@reactioncommerce/api-plugin-settings",
"shipments": "@reactioncommerce/api-plugin-shipments",
"shippingRates": "./src/plugins/shipping-rates/index.js",
"shippingRates": "@reactioncommerce/api-plugin-shipments-flat-rate",
"shops": "@reactioncommerce/api-plugin-shops",
"simpleInventory": "@reactioncommerce/api-plugin-inventory-simple",
"simpleSchema": "@reactioncommerce/api-plugin-simple-schema",
Expand Down
42 changes: 0 additions & 42 deletions src/mockTypes.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ scalar JSONObject
"A string used as a connection cursor"
scalar ConnectionCursor

"An integer which will be auto-adjusted to be greater than 0 and less than 50 if necessary"
scalar ConnectionLimitInt

extend type FakeData {
"AddressConnection lint fix"
addressConnection(
Expand Down Expand Up @@ -133,15 +130,6 @@ type AddressEdge {
node: Address
}

"The order in which the connection results should be sorted, based on the sortBy field."
enum SortOrder {
"ascending"
asc

"descending"
desc
}

"Mutations have side effects, such as mutating data or triggering a task"
type Mutation {
"A test mutation that returns whatever string you send it"
Expand Down Expand Up @@ -470,36 +458,6 @@ input ShopSettingsUpdates {
fakeField: String
}

# ========================================
# api-plugin-shipments
# ========================================
"""
A fake type to satisfy linting
type lives in `api-plugin-shipments`
"""
enum FulfillmentType {
"An order will be fulfilled digitally, such as by sending a download link"
digital

"An order will be fulfilled by the customer picking it up"
pickup

"An order will be fulfilled by the seller shipping it to the customer"
shipping
}

# ========================================
# api-plugin-shops
# ========================================
"""
A fake type to satisfy linting
type lives in `api-plugin-shops`
"""
type Shop {
"A fake field to satisfy linting"
fakeField: String
}

# ========================================
# api-plugin-tags
# ========================================
Expand Down
100 changes: 0 additions & 100 deletions src/plugins/shipping-rates/getFulfillmentMethodsWithQuotes.js

This file was deleted.

23 changes: 0 additions & 23 deletions src/plugins/shipping-rates/i18n/ar.json

This file was deleted.

23 changes: 0 additions & 23 deletions src/plugins/shipping-rates/i18n/bg.json

This file was deleted.

23 changes: 0 additions & 23 deletions src/plugins/shipping-rates/i18n/cs.json

This file was deleted.

23 changes: 0 additions & 23 deletions src/plugins/shipping-rates/i18n/de.json

This file was deleted.

23 changes: 0 additions & 23 deletions src/plugins/shipping-rates/i18n/el.json

This file was deleted.

24 changes: 0 additions & 24 deletions src/plugins/shipping-rates/i18n/en.json

This file was deleted.

23 changes: 0 additions & 23 deletions src/plugins/shipping-rates/i18n/es.json

This file was deleted.

Loading

0 comments on commit 7bdb70e

Please sign in to comment.