forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: elastic search catalog indexing
- moved from separate repo
- Loading branch information
1 parent
e3ca1e9
commit 927a6e4
Showing
27 changed files
with
8,731 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@bugslifesolutions/api-plugin-es-catalog-sync": major | ||
"@bugslifesolutions/api-plugin-payments-stripe-sca": minor | ||
--- | ||
|
||
New Elastic Search Catalog indexing |
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,61 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next |
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 @@ | ||
auto-install-peers=true |
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 @@ | ||
18.18.2 |
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 @@ | ||
18.18.2 |
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,13 @@ | ||
Copyright 2022 BugsLife Solutions | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
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,26 @@ | ||
# api-plugin-es-catalog-sync | ||
|
||
[![npm (scoped)](https://img.shields.io/npm/v/@bugslifesolutions/api-plugin-es-catalog-sync.svg)](https://www.npmjs.com/package/@bugslifesolutions/api-plugin-es-catalog-sync) | ||
[![CircleCI](https://circleci.com/gh/bugslifesolutions/api-plugin-es-catalog-sync.svg?style=svg)](https://circleci.com/gh/bugslifesolutions/api-plugin-es-catalog-sync) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
|
||
## Summary | ||
|
||
es-catalog-sync plugin for the [Reaction API](https://github.com/reactioncommerce/reaction) | ||
|
||
## Developer Certificate of Origin | ||
We use the [Developer Certificate of Origin (DCO)](https://developercertificate.org/) in lieu of a Contributor License Agreement for all contributions to Reaction Commerce open source projects. We request that contributors agree to the terms of the DCO and indicate that agreement by signing all commits made to Bugslife Solutions projects by adding a line with your name and email address to every Git commit message contributed: | ||
``` | ||
Signed-off-by: Jane Doe <[email protected]> | ||
``` | ||
|
||
You can sign your commit automatically with Git by using `git commit -s` if you have your `user.name` and `user.email` set as part of your Git configuration. | ||
|
||
We ask that you use your real name (please no anonymous contributions or pseudonyms). By signing your commit you are certifying that you have the right have the right to submit it under the open source license used by that particular Reaction Commerce project. You must use your real name (no pseudonyms or anonymous contributions are allowed.) | ||
|
||
We use the [Probot DCO GitHub app](https://github.com/apps/dco) to check for DCO signoffs of every commit. | ||
|
||
If you forget to sign your commits, the DCO bot will remind you and give you detailed instructions for how to amend your commits to add a signature. | ||
|
||
## License | ||
This Reaction plugin is [Apache License, Version 2.0](./LICENSE) |
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 @@ | ||
module.exports = require("@bugslifesolutions/api-utils/lib/configs/babel.config.cjs"); |
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 @@ | ||
import register from "./src/index.js"; | ||
|
||
export default register; |
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,64 @@ | ||
{ | ||
"name": "@bugslifesolutions/api-plugin-es-catalog-sync", | ||
"description": "Reaction API Plugin for Elastic Search Catalog synchronization", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"type": "module", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"homepage": "https://github.com/bugslifesolutions/reaction", | ||
"url": "https://github.com/bugslifesolutions/reaction", | ||
"email": "[email protected]", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/bugslifesolutions/reaction.git", | ||
"directory": "packages/bl-api-plugin-es-catalog-sync" | ||
}, | ||
"author": { | ||
"name": "BugsLife Solutions", | ||
"email": "[email protected]", | ||
"url": "https://bugslifesolutions.com" | ||
}, | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/bugslifesolutions/reaction/issues" | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@bugslifesolutions/api-utils": "*", | ||
"@bugslifesolutions/logger": "workspace:^1.2.0-next.10", | ||
"@bugslifesolutions/random": "workspace:^1.1.0-next.10", | ||
"@elastic/app-search-node": "^7.17.0", | ||
"dotenv": "^16.3.1", | ||
"envalid": "^7.3.1", | ||
"fastpriorityqueue": "^0.7.4", | ||
"lodash": "^4.17.21", | ||
"simpl-schema": "~3.2.0", | ||
"typescript": "^5.0.4" | ||
}, | ||
"devDependencies": { | ||
"@bugslifesolutions/data-factory": "^1.2.1", | ||
"@reactioncommerce/babel-remove-es-create-require": "~1.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"lint": "npm run lint:eslint", | ||
"lint:eslint": "eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"test": "npm run test:ci", | ||
"test:ci": "jest --passWithNoTests --setupFiles=dotenv/config --ci", | ||
"test:watch": "jest --watch", | ||
"test:file": "jest --no-cache --watch --coverage=false" | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"prettier": { | ||
"arrowParens": "always" | ||
} | ||
} |
Oops, something went wrong.