This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Add task plugin #97
Merged
Merged
Add task plugin #97
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
77d19a0
Add task plugin
RomanNikitenko 9c33db6
Fix notes
RomanNikitenko ec032f9
Code clean up
RomanNikitenko 0f9177f
Remove ReconnectingWebSocket dependency
RomanNikitenko 4b13e93
Code clean up
RomanNikitenko 3184ec1
Clean up import
RomanNikitenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,4 @@ | ||
dist/ | ||
lib/ | ||
node_modules/ | ||
*.theia |
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,31 @@ | ||
# Theia - Che Task Plug-in | ||
|
||
The plugin allows to work with the Che Commands through the Theia Tasks concept. | ||
|
||
Contributes: | ||
- Che task runner that runs the Che commands as the Theia tasks; | ||
- Che task resolver that fills the missed mandatory parameters in a task; | ||
- Che task provider that provides the Che workspace's commands as provided Theia tasks; | ||
- `Preview URLs` view; | ||
- `che.task.preview.notifications` preference to set the preferred way of previewing a service URL: | ||
- `on` value enables a notification to ask a user how a URL should be opened | ||
- `alwaysPreview` value tells Theia to open a preview URL automatically inside Theia as soon as a task is running | ||
- `alwaysGoTo` value tells Theia to open a preview URL automatically in a separate browser's tab as soon as a task is running | ||
- `off` value disables opening a preview URL (automatically and with a notification) | ||
|
||
The format of a Che task is the following: | ||
```json | ||
{ | ||
"type": "che", | ||
"label": "", | ||
"command": "", | ||
"target": { | ||
"workspaceId": "", | ||
"machineName": "" | ||
}, | ||
"previewUrl": "" | ||
} | ||
``` | ||
The `target` and `previewUrl` fields are optional. | ||
|
||
The variables substitution is supported for the `command` and `previewUrl` fields. |
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,62 @@ | ||
{ | ||
"name": "task-plugin", | ||
"publisher": "theia", | ||
"keywords": [ | ||
"theia-plugin" | ||
], | ||
"version": "0.0.1", | ||
"license": "EPL-2.0", | ||
"contributors": [ | ||
{ | ||
"name": "Artem Zatsarynnyi", | ||
"email": "azatsary@redhat.com" | ||
}, | ||
{ | ||
"name": "Roman Nikitenko", | ||
"email": "rnikiten@redhat.com" | ||
} | ||
], | ||
"files": [ | ||
"src" | ||
], | ||
"contributes": { | ||
"configuration": { | ||
"type": "object", | ||
"title": "Che task preview configuration", | ||
"properties": { | ||
"che.task.preview.notifications": { | ||
"type": "string", | ||
"default": "on", | ||
"enum": [ | ||
"on", | ||
"alwaysPreview", | ||
"alwaysGoTo", | ||
"off" | ||
], | ||
"description": "Enable/disable the notifications with a proposal to open a Che task's preview URL. Can be: 'on', 'alwaysPreview', 'alwaysGoTo' or 'off'." | ||
} | ||
} | ||
} | ||
}, | ||
"devDependencies": { | ||
"@eclipse-che/plugin": "0.0.1", | ||
"@theia/plugin": "next", | ||
"@theia/plugin-packager": "latest" | ||
}, | ||
"scripts": { | ||
"prepare": "yarn run clean && yarn run build", | ||
"clean": "rimraf lib", | ||
"format": "tsfmt -r --useTsfmt ../../configs/tsfmt.json", | ||
"watch": "tsc -watch", | ||
"compile": "tsc", | ||
"lint": "tslint -c ../../configs/tslint.json --project tsconfig.json", | ||
"lint:fix": "tslint -c ../../configs/tslint.json --fix --project .", | ||
"build": "concurrently -n \"format,lint,compile\" -c \"red,green,blue\" \"yarn format\" \"yarn lint\" \"yarn compile\" && theia:plugin pack" | ||
}, | ||
"engines": { | ||
"theiaPlugin": "next" | ||
}, | ||
"theiaPlugin": { | ||
"backend": "lib/task-plugin-backend.js" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-lock.json file should be removed (we're using yarn workspaces)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed, thank you!