Skip to content

Commit

Permalink
Introduced PlatformIO stack with couple of samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergii Kabashniuk committed Nov 3, 2016
1 parent 5c11cb4 commit 26f9a2f
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 4 deletions.
110 changes: 106 additions & 4 deletions ide/che-core-ide-stacks/src/main/resources/stacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,8 @@
"machines": {
"dev-machine": {
"agents": [
"org.eclipse.che.terminal",
"org.eclipse.che.ws-agent",
"org.eclipse.che.terminal",
"org.eclipse.che.ws-agent",
"org.eclipse.che.ssh",
"org.eclipse.che.ls.csharp",
"org.eclipse.che.ls.json",
Expand Down Expand Up @@ -1440,7 +1440,7 @@
"source": {
"type": "image",
"origin": "codenvy/ubuntu_jre"
}
}
},
{
"id": "bitnami-express",
Expand Down Expand Up @@ -1984,7 +1984,7 @@
"name": "default",
"defaultEnv": "default",
"description": null,
"commands": [
"commands": [
{
"name": "restart zend server",
"type": "custom",
Expand Down Expand Up @@ -2015,5 +2015,107 @@
"name": "type-zend.svg",
"mediaType": "image/svg+xml"
}
},
{
"id": "platformio",
"creator": "ide",
"name": "PlatformIO",
"description": "Stack for IoT development",
"scope": "general",
"tags": [
"PlatformIO",
"IoT",
"embedded",
"arduino",
"mbed"
],
"components": [
{
"name": "Python",
"version": "2.7"
},
{
"name": "pip",
"version": "8.1.1"
},
{
"name": "PlatformIO",
"version": "3.2.0"
}
],
"source": {
"type": "image",
"origin": "code/pio:latest"
},
"workspaceConfig": {
"environments": {
"default": {
"machines": {
"dev-machine": {
"agents": [
"org.eclipse.che.terminal", "org.eclipse.che.ws-agent", "org.eclipse.che.ssh"
],
"servers": {},
"attributes" : {
"memoryLimitBytes": "2147483648"
}
}
},
"recipe": {
"location": "eclipse/platformio:latest",
"type": "dockerimage"
}
}
},
"name": "default",
"defaultEnv": "default",
"description": null,
"commands": [
{
"name": "run",
"type": "custom",
"commandLine": "pio run -d ${current.project.path}",
"attributes": {
"previewUrl": ""
}
},
{
"name": "upload",
"type": "custom",
"commandLine": "cd ${current.project.path} && pio run -t upload",
"attributes": {
"previewUrl": ""
}
},
{
"name": "clean",
"type": "custom",
"commandLine": "cd ${current.project.path} && pio run -t clean",
"attributes": {
"previewUrl": ""
}
},
{
"name": "Remote: Device list",
"type": "custom",
"commandLine": "pio remote device list",
"attributes": {
"previewUrl": ""
}
},
{
"name": "Remote: Upload",
"type": "custom",
"commandLine": "cd ${current.project.path} && pio remote run -t upload",
"attributes": {
"previewUrl": ""
}
}
]
},
"stackIcon": {
"name": "type-python.svg",
"mediaType": "image/svg+xml"
}
}
]
64 changes: 64 additions & 0 deletions ide/che-core-ide-templates/src/main/resources/samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -1311,5 +1311,69 @@
"tags": [
"Zend"
]
},
{
"name": "platformio-arduino-blink",
"displayName": "platformio-arduino-blink",
"path": "/arduino-blink",
"description": "Arduino blink sample",
"projectType": "cpp",
"mixins": [],
"attributes": {
"language": [
"cpp"
]
},
"modules": [],
"problems": [],
"source": {
"type": "git",
"location": "https://github.com/platformio/platformio-examples.git",
"parameters": {
"keepDir":"atmelavr-and-arduino/arduino-blink",
"keepVcs": "false",
"convertToTopLevelProject": "true"
}
},
"commands": [

],
"links": [],
"category": "Samples",
"tags": [
"Platformio"
]
},
{
"name": "platformio-mbed-blink",
"displayName": "platformio-mbed-blink",
"path": "/mbed-blink",
"description": "Mbed blink sample",
"projectType": "cpp",
"mixins": [],
"attributes": {
"language": [
"cpp"
]
},
"modules": [],
"problems": [],
"source": {
"type": "git",
"location": "https://github.com/platformio/platformio-examples.git",
"parameters": {
"keepDir":"mbed/mbed-blink",
"keepVcs": "false",
"convertToTopLevelProject": "true"
}
},
"commands": [

],
"links": [],
"category": "Samples",
"tags": [
"Platformio"
]
}
]

0 comments on commit 26f9a2f

Please sign in to comment.