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

🎉 New destination: Streamr #8160

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 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
10 changes: 10 additions & 0 deletions airbyte-integrations/connectors/destination-streamr/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
**/node_modules
**/lib
**/secrets
**/*.log
**/*.out
**/.pytest_cache
**/acceptance-test-config.yml
**/acceptance_tests_logs
**/test_files
**/test
51 changes: 51 additions & 0 deletions airbyte-integrations/connectors/destination-streamr/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'simple-import-sort',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
ignorePatterns: [
'/bin/',
'/lib/',
'/out/',
],
rules: {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'warn',
// https://github.com/microsoft/TypeScript/issues/18433
'no-restricted-globals': [
'error',
'closed',
'event',
'fdescribe',
'length',
'location',
'name',
'parent',
'top',
],
'simple-import-sort/imports': 'error',
},
overrides: [
{
files: ['test/**/*.ts'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
}
},
],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
labels:
- 'dependencies'
open-pull-requests-limit: 20
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Description

> Provide description here

## Type of change
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change

## Related issues

> Fix [#1]()

## Migration notes

> Describe migration notes if any

## Extra info

> Add any additional information
18 changes: 18 additions & 0 deletions airbyte-integrations/connectors/destination-streamr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
lib/
node_modules/
.DS_Store
*.code-workspace
.vscode
out/
faros-airbyte-cdk/package-lock.json
destinations/**/package-lock.json
sources/**/package-lock.json
secrets/
acceptance-test-*.log
acceptance_tests_logs
**/jenkins/data/logs
**/jenkins/data/war
**/jenkins/data/.cache
**/jenkins/data/.java
**/jenkins/data/.lastStarted
**/jenkins/data/*.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.ts": [
"prettier --write",
"eslint --fix"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bracketSpacing": false,
"parser": "typescript",
"trailingComma": "es5",
"singleQuote": true
}
15 changes: 15 additions & 0 deletions airbyte-integrations/connectors/destination-streamr/.tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"declaration": true,
"esModuleInterop": true,
"module": "commonjs",
"noImplicitAny": false,
"pretty": true,
"resolveJsonModule": false,
"skipLibCheck": true,
"sourceMap": false,
"strict": true,
"strictNullChecks": false,
"target": "es2019"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Code of conduct
View in [docs.airbyte.io](https://docs.airbyte.io/contributing-to-airbyte/code-of-conduct)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Contributing
View on [docs.airbyte.io](https://docs.airbyte.io/contributing-to-airbyte)
29 changes: 29 additions & 0 deletions airbyte-integrations/connectors/destination-streamr/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM node:14-alpine

WORKDIR /home/node/airbyte
# RUN npm install -g yarn

RUN apk add --no-cache --virtual .gyp \
python3 \
make \
g++
# RUN apk add --update python make g++ \
# && rm -rf /var/cache/apk/*

COPY lerna.json .tsconfig.json package.json yarn.lock ./
RUN sed -i "/eslint\|husky\|jest\|lint-staged\|mockttp\|prettier/d" package.json

COPY ./destinations ./destinations
RUN yarn
RUN yarn build

RUN apk del .gyp

ARG path
RUN test -n "$path" || (echo "'path' argument is not set, e.g --build-arg path=destinations/faros-destination" && false)
ENV CONNECTOR_PATH $path

RUN ln -s "/home/node/airbyte/$CONNECTOR_PATH/bin/main" "/home/node/airbyte/main"

ENV AIRBYTE_ENTRYPOINT "/home/node/airbyte/main"
ENTRYPOINT ["/home/node/airbyte/main"]
Loading