-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize example generator and isolate examples (#63)
* Centralize definition of examples * Generalize example generator * Introduce contribution point for examples * Support merging of new launch and task configs with existing ones * Add reveal navigator after project generation * Enforce a target folder (no generation into root) Contributed on behalf of STMicroelectronics
- Loading branch information
Showing
77 changed files
with
451 additions
and
133 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
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
15 changes: 0 additions & 15 deletions
15
theia-extensions/blueprint-example-generator/resources/cmake-example/.theia/launch.json
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
theia-extensions/blueprint-example-generator/resources/cmake-example/.theia/tasks.json
This file was deleted.
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
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
17 changes: 17 additions & 0 deletions
17
theia-extensions/blueprint-example-generator/src/node/index.ts
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,17 @@ | ||
/******************************************************************************** | ||
* Copyright (C) 2023 STMicroelectronics and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
|
||
export { Example, ExampleGeneratorService, ExamplesContribution, ExampleOptions } from '../common/protocol'; |
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,10 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
extends: [ | ||
'../../configs/build.eslintrc.json' | ||
], | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: 'tsconfig.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,53 @@ | ||
{ | ||
"name": "@eclipse-cdt-cloud/blueprint-examples", | ||
"version": "1.38.0", | ||
"description": "Extension for generating examples in CDT Cloud Blueprint", | ||
"dependencies": { | ||
"@theia/core": "1.38.0", | ||
"@theia/workspace": "1.38.0", | ||
"@theia/navigator": "1.38.0", | ||
"@theia/task": "1.38.0", | ||
"@theia/debug": "1.38.0", | ||
"@theia/filesystem": "1.38.0", | ||
"@theia/editor": "1.38.0", | ||
"@eclipse-cdt-cloud/blueprint-example-generator": "1.38.0", | ||
"inversify": "^5.1.1" | ||
}, | ||
"devDependencies": { | ||
"rimraf": "^2.7.1", | ||
"tslint": "^5.12.0", | ||
"typescript": "^4.5.5" | ||
}, | ||
"theiaExtensions": [ | ||
{ | ||
"frontendElectron": "lib/browser/blueprint-examples-frontend-module", | ||
"frontend": "lib/browser/blueprint-examples-frontend-module", | ||
"backend": "lib/node/blueprint-examples-backend-module" | ||
} | ||
], | ||
"keywords": [ | ||
"theia-extension" | ||
], | ||
"license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/eclipse-cdt-cloud/cdt-cloud-blueprint.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/eclipse-cdt-cloud/cdt-cloud-blueprint/issues" | ||
}, | ||
"homepage": "https://www.eclipse.org/cdt-cloud/", | ||
"files": [ | ||
"resources", | ||
"lib", | ||
"src" | ||
], | ||
"scripts": { | ||
"prepare": "yarn clean && yarn build", | ||
"clean": "rimraf lib *.tsbuildinfo", | ||
"build": "tsc -b", | ||
"lint": "eslint --ext js,jsx,ts,tsx src", | ||
"lint:fix": "eslint --ext js,jsx,ts,tsx src --fix", | ||
"update:next": "ts-node ../../scripts/update-theia-to-next.ts" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.