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: move system information plugin to npm #6105

Merged
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
2 changes: 1 addition & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const jestConfig = {
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
transformIgnorePatterns: [
// Any packages that are published only as ESM need to be listed here
"node_modules/(?!(@reactioncommerce/api-utils|@reactioncommerce/db-version-check|@reactioncommerce/plugin-simple-authorization)/)"
"node_modules/(?!(@reactioncommerce/api-utils|@reactioncommerce/db-version-check|@reactioncommerce/plugin-simple-authorization|@reactioncommerce/plugin-system-information)/)"
]

// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
Expand Down
31 changes: 30 additions & 1 deletion package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"dependencies": {
"@apollo/federation": "^0.12.0",
"@reactioncommerce/api-utils": "~1.7.0",
"@reactioncommerce/db-version-check": "^1.0.0",
"@reactioncommerce/db-version-check": "~1.0.0",
"@reactioncommerce/file-collections": "~0.7.0",
"@reactioncommerce/file-collections-sa-gridfs": "~0.1.0",
"@reactioncommerce/plugin-simple-authorization": "~1.0.0",
"@reactioncommerce/logger": "~1.1.2",
"@reactioncommerce/nodemailer": "~5.0.5",
"@reactioncommerce/plugin-simple-authorization": "~1.0.0",
"@reactioncommerce/plugin-system-information": "~1.0.0",
"@reactioncommerce/random": "~1.0.2",
"@reactioncommerce/reaction-error": "~1.0.1",
"accounting-js": "~1.1.1",
Expand Down
23 changes: 0 additions & 23 deletions src/plugins/system-info/index.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/plugins/system-info/policies.json

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/system-info/queries/index.js

This file was deleted.

23 changes: 0 additions & 23 deletions src/plugins/system-info/queries/systemInformation.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/system-info/resolvers/Query/index.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/plugins/system-info/resolvers/Query/systemInformation.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/system-info/resolvers/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/plugins/system-info/schemas/index.js

This file was deleted.

32 changes: 0 additions & 32 deletions src/plugins/system-info/schemas/schema.graphql

This file was deleted.

10 changes: 0 additions & 10 deletions src/plugins/system-info/xforms/id.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/registerPlugins.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* npm package imports */
import registerSimpleAuthorizationPlugin from "@reactioncommerce/plugin-simple-authorization";
import registerSystemInformationPlugin from "@reactioncommerce/plugin-system-information";

/* node-app imports */
/* core-services */
Expand Down Expand Up @@ -36,7 +37,6 @@ import registerSitemapGeneratorPlugin from "./plugins/sitemap-generator/index.js
import registerSMTPEmailPlugin from "./plugins/email-smtp/index.js";
import registerStripePaymentsPlugin from "./plugins/payments-stripe/index.js";
import registerSurchargesPlugin from "./plugins/surcharges/index.js";
import registerSystemInfoPlugin from "./plugins/system-info/index.js";
import registerTaxesRatesPlugin from "./plugins/taxes-rates/index.js";
import registerTestAddressValidationPlugin from "./plugins/address-validation-test/index.js";
import registerTranslationsPlugin from "./plugins/translations/index.js";
Expand Down Expand Up @@ -73,7 +73,7 @@ export default async function registerPlugins(app) {
await registerEmailPlugin(app); // REQUIRED
await registerAddressPlugin(app); // REQUIRED
await registerTranslationsPlugin(app); // OPTIONAL
await registerSystemInfoPlugin(app); // OPTIONAL
await registerSystemInformationPlugin(app); // OPTIONAL

/**
* Email
Expand Down