Skip to content

Commit c613bb6

Browse files
productify npm packages and content, document how to publish
Signed-off-by: Marc Dumais <[email protected]>
1 parent 8084440 commit c613bb6

File tree

7 files changed

+66
-19
lines changed

7 files changed

+66
-19
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,25 +150,25 @@ For issues related to the Trace Viewer, please open a GitHub tracker for the [Th
150150

151151
For issues concerning `eclipse-cdt-cloud`, please refer to the contact options listed on the [CDT.Cloud website][cdt-cloud-website].
152152

153-
[architecture]: https://github.com/theia-ide/theia-trace-extension#architecture
153+
[architecture]: https://github.com/eclipse-cdt-cloud/theia-trace-extension#architecture
154154
[cdt-cloud-website]: https://cdt-cloud.io/contact/
155-
[commit-message-example]: https://github.com/theia-ide/theia-trace-extension/commit/bc18fcd110d7b8433293692421f2e4fb49f89bd6
155+
[commit-message-example]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/commit/bc18fcd110d7b8433293692421f2e4fb49f89bd6
156156
[commit-message-message]: https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
157157
[commiter-handbook]: https://www.eclipse.org/projects/handbook/#resources-commit
158158
[contact-us]: #contact
159159
[creating-changes]: https://www.dataschool.io/how-to-contribute-on-github/
160160
[dev-process]: https://eclipse.org/projects/dev_process
161161
[eca]: http://www.eclipse.org/legal/ECA.php
162-
[external-components]: https://github.com/theia-ide/theia-trace-extension#related-code
163-
[good-first-issues]: https://github.com/theia-ide/theia-trace-extension/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22
162+
[external-components]: https://github.com/eclipse-cdt-cloud/theia-trace-extension#related-code
163+
[good-first-issues]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22
164164
[flexible-architecture-video]: https://www.youtube.com/watch?v=8s5vGf45e-g
165165
[flexible-architecture-slides]: https://tracingsummit.org/ts/2019/files/Tracingsummit2019-theia-dagenais.pdf
166-
[gitpod-demo]: https://github.com/theia-ide/theia-trace-extension#try-a-live-demo-via-gitpod
166+
[gitpod-demo]: https://github.com/eclipse-cdt-cloud/theia-trace-extension#Nightly-via-Gitpod
167167
[ip-policy]: https://www.eclipse.org/org/documents/Eclipse_IP_Policy.pdf
168168
[issues]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/issues
169-
[issue-317]: https://github.com/theia-ide/theia-trace-extension/issues/317
170-
[issue-369]: https://github.com/theia-ide/theia-trace-extension/pull/369/files
171-
[issue-402]: https://github.com/theia-ide/theia-trace-extension/pull/402
169+
[issue-317]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/issues/317
170+
[issue-369]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/pull/369/files
171+
[issue-402]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/pull/402
172172
[new-contributors]: #new-contributors
173173
[pr-guide]: #pull-request-guidelines
174174
[pull-requests]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/pulls

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,43 @@ pip install -r requirements.txt
384384
* The virtual environment can be replaced with another setup locally.
385385
* Above, the `./requirements.txt` file has [the ADR tool][tools] to install.
386386

387+
## Release/publish
388+
389+
Publishing this repository's npm packages and creating a corresponding GitHub release with git tag (latest only), all happen on GitHub CI.
390+
391+
### Publish next packages
392+
393+
A set of `next` package is automatically published to `npm` every time a PR is merged.
394+
395+
### Publish latest / release
396+
397+
Whenever a new release is desired, including publishing a corresponding set of `latest` package to `npm`, it can be triggered through a PR. The following has to be done:
398+
399+
Create a new branch for your PR. e.g.
400+
```bash
401+
git branch new-release && git checkout new-release
402+
```
403+
404+
Then decide if the release shall be a `Major`, `Minor` or `Patch` release and use the corresponding command below to step packages versions, according to the release type. A new release commit will be created:
405+
406+
``` bash
407+
yarn version:major
408+
# or
409+
yarn version:minor
410+
# or
411+
yarn version:patch
412+
```
413+
414+
Modify the _version tag_ in file `./RELEASE`, to match the new release. Then amend the release commit to include this change:
415+
416+
```bash
417+
<edit ./RELEASES to update tag>
418+
git add RELEASE && git commit --amend
419+
```
420+
421+
Finally, push the branch and use it to create a PR. When the PR is merged, a GitHub release should be created with auto-generated release notes, as well as a git tag. Then the `publish-latest` CI job should trigger and if everything goes well, publish the new version of the repo's packages to `npm`.
422+
423+
387424
[adr]: https://adr.github.io
388425
[app-image]: https://www.dorsal.polymtl.ca/files/other/electron-theia-trace-example-app-0.0.1.AppImage
389426
[cdt-cloud-demo]: https://try.theia-cloud.io/?appDef=cdt-cloud-demo

packages/base/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ The Trace Viewer base package contains trace management utilities for managing t
44

55
## Additional Information
66

7-
- [Theia Trace Viewer Extension](https://github.com/eclipse-cdt-cloud/theia-trace-extension)
8-
- [Trace Server Protocol](https://github.com/eclipse-cdt-cloud/trace-server-protocol)
7+
- [Theia Trace Viewer Extension git repository](https://github.com/eclipse-cdt-cloud/theia-trace-extension)
8+
- [Trace Server Protocol git repository](https://github.com/eclipse-cdt-cloud/trace-server-protocol)
99
- [Reference Trace Server - Download (Eclipse Trace Compass)](https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Description
22

3-
The Trace Viewer react-components package contains views and utilities for visualizing traces and logs via the Trace Server Protocol connected a Trace Server applications. While being initially used within the Theia Trace Viewer extension, its code base is independent to any Theia APIs and hence can be integrated in other web applications.
3+
The Trace Viewer react-components package contains views and utilities for visualizing traces and logs via the Trace Server Protocol, connected a Trace Server application. While being initially used within the Theia Trace Viewer extension, its code base is independent to any Theia APIs and hence can be integrated in other web applications.
44

55
## Styling
66

7-
The Trace Viewer react-components package does not define CSS styles for its components, but it provides CSS variables that can be map to custom CSS styles or variables. Any projects that use the package should define its own CSS styles for the components. All the mappable variables have the prefix `--trace-viewer`.
7+
The Trace Viewer react-components package does not define CSS styles for its components, but it provides CSS variables that can be map to custom CSS styles or variables. Any project that uses the package should define its own CSS styles for the components. All the mappable variables have the prefix `--trace-viewer`.
88

9-
An example (of integration with Theia) that contains all the mappable variables can be found in [here](../../theia-extensions/viewer-prototype/style/trace-viewer.css).
9+
An example (of integration with Theia) that contains all the mappable variables can be found in [here](https://github.com/eclipse-cdt-cloud/theia-trace-extension/blob/master/theia-extensions/viewer-prototype/style/trace-viewer.css).
1010

1111
## Additional Information
1212

13-
- [Theia Trace Viewer Extension](https://github.com/eclipse-cdt-cloud/theia-trace-extension)
14-
- [Trace Server Protocol](https://github.com/eclipse-cdt-cloud/trace-server-protocol)
13+
- [Theia Trace Viewer Extension git repository](https://github.com/eclipse-cdt-cloud/theia-trace-extension)
14+
- [Trace Server Protocol git repository](https://github.com/eclipse-cdt-cloud/trace-server-protocol)
1515
- [Reference Trace Server - Download (Eclipse Trace Compass)](https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/)

packages/react-components/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"type": "git",
88
"url": "https://github.com/eclipse-cdt-cloud/theia-trace-extension"
99
},
10+
"bugs": {
11+
"url": "https://github.com/eclipse-cdt-cloud/theia-trace-extension/issues"
12+
},
13+
"homepage": "https://github.com/eclipse-cdt-cloud/theia-trace-extension",
1014
"files": [
1115
"lib",
1216
"src",

theia-extensions/viewer-prototype/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Description
22

3-
The Theia trace viewer extension is providing a trace viewing front-end to Trace Server applications implementing the Trace Server protocol.
3+
The Theia trace viewer extension is a Theia extension, that one can use to add trace viewing capabilities, to a Theia-based application.
44

55
## Additional Information
66

7-
- [Theia Trace Viewer Extension](https://github.com/eclipse-cdt-cloud/theia-trace-extension)
8-
- [Trace Server Protocol](https://github.com/eclipse-cdt-cloud/trace-server-protocol)
7+
- [Theia Trace Viewer Extension git repository](https://github.com/eclipse-cdt-cloud/theia-trace-extension)
8+
- [Trace Server Protocol git repository](https://github.com/eclipse-cdt-cloud/trace-server-protocol)
99
- [Reference Trace Server - Download (Eclipse Trace Compass)](https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/)
10+
- [Theia Trace Viewer Docker appliance example](https://github.com/eclipse-cdt-cloud/theia-trace-extension/blob/master/examples/docker/)
11+
- [CDT Cloud Blueprint git repository (Contains the Theia Trace Viewer Extension)](https://github.com/eclipse-cdt-cloud/cdt-cloud-blueprint)
1012

1113
## Screenshots
1214

theia-extensions/viewer-prototype/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "theia-traceviewer",
33
"version": "0.1.0",
4-
"description": "Trace Viewer Theia Extension",
4+
"description": "A Trace Viewer for Theia applications, in the form of a Theia extension",
55
"keywords": [
66
"theia-extension"
77
],
@@ -10,6 +10,10 @@
1010
"type": "git",
1111
"url": "https://github.com/eclipse-cdt-cloud/theia-trace-extension"
1212
},
13+
"bugs": {
14+
"url": "https://github.com/eclipse-cdt-cloud/theia-trace-extension/issues"
15+
},
16+
"homepage": "https://github.com/eclipse-cdt-cloud/theia-trace-extension",
1317
"files": [
1418
"lib",
1519
"src",

0 commit comments

Comments
 (0)