-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cookiecutter to integration standards
* Proper `.env.example` files * Update vscode launch configuration with new generated integration * Add initial static examples to see the integration quickly in Port, including example blueprints and mappings * Add unit test stub
- Loading branch information
Showing
15 changed files
with
243 additions
and
107 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.env.example
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,2 @@ | ||
OCEAN__PORT__CLIENT_ID="<port-client-id>" | ||
OCEAN__PORT__CLIENT_SECRET="<port-client-secret>" |
41 changes: 41 additions & 0 deletions
41
..._ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/blueprints.json
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,41 @@ | ||
[ | ||
{ | ||
"identifier": "{{ cookiecutter.integration_slug }}ExampleBlueprint", | ||
"title": "{{ cookiecutter.integration_name }} Example", | ||
"icon": "Blueprint", | ||
"schema": { | ||
"properties": { | ||
"status": { | ||
"type": "string", | ||
"enum": [ | ||
"VALID", | ||
"FAILED" | ||
], | ||
"enumColors": { | ||
"VALID": "green", | ||
"FAILED": "red" | ||
}, | ||
"title": "Status" | ||
}, | ||
"text": { | ||
"type": "string", | ||
"title": "Text" | ||
}, | ||
"component": { | ||
"type": "string", | ||
"title": "Component" | ||
}, | ||
"service": { | ||
"type": "string", | ||
"title": "Service" | ||
}, | ||
"score": { | ||
"type": "number", | ||
"title": "Score" | ||
} | ||
}, | ||
"required": [] | ||
}, | ||
"relations": {} | ||
} | ||
] |
16 changes: 16 additions & 0 deletions
16
...an/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/port-app-config.yml
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,16 @@ | ||
resources: | ||
- kind: {{ cookiecutter.integration_slug}}-example-kind | ||
selector: | ||
query: 'true' | ||
port: | ||
entity: | ||
mappings: | ||
identifier: .my_custom_id | ||
title: '(.my_component + " @ " + .my_service)' | ||
blueprint: '"{{ cookiecutter.integration_slug }}ExampleBlueprint"' | ||
properties: | ||
status: .my_enum | ||
text: .my_custom_text | ||
component: .my_component | ||
service: .my_service | ||
score: .my_special_score |
12 changes: 6 additions & 6 deletions
12
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/spec.yaml
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
2 changes: 1 addition & 1 deletion
2
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/CHANGELOG.md
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
7 changes: 7 additions & 0 deletions
7
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/CONTRIBUTING.md
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,7 @@ | ||
# Contributing to Ocean - {{ cookiecutter.integration_slug }} | ||
|
||
## Running locally | ||
|
||
#### NOTE: Add your own instructions of how to run {{ cookiecutter.integration_slug }} | ||
|
||
This could be any gotcha's such as rate limiting, how to setup credentials and so forth |
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
1 change: 1 addition & 0 deletions
1
port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/changelog/.gitignore
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
* | ||
!.gitignore |
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
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