Skip to content

Commit c10f7b4

Browse files
committed
chore: versions
1 parent dca28b8 commit c10f7b4

File tree

11 files changed

+134
-58
lines changed

11 files changed

+134
-58
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["@elixir-cloud/trs-filer", "@elixir-cloud/trs", "ecc-docs", "@elixir-cloud/drs-filer", "@elixir-cloud/ro-crate"]
10+
"ignore": ["ecc-docs", "@elixir-cloud/drs-filer", "@elixir-cloud/ro-crate", "@elixir-cloud/tes", "@elixir-cloud/eslint-config"]
1111
}

.github/workflows/publish.yml

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ jobs:
7070
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package.lock') }}-${{ steps.node.outputs.version }}
7171

7272
- name: Install dependencies
73-
run: npm ci
73+
run: npm ci
7474

7575
- name: Install playwright browsers
7676
run: |
7777
sudo apt update
7878
npx playwright install --with-deps
79-
79+
8080
- name: Build
8181
run: npm run build
8282

@@ -113,9 +113,63 @@ jobs:
113113
git config --global user.name "GitHub Actions"
114114
git config --global user.email "github-actions[bot]@users.noreply.github.com"
115115
116-
- name: Update version
116+
- name: Setup Node.js
117+
uses: actions/setup-node@v3
118+
with:
119+
node-version: 20.x
120+
121+
- name: Install dependencies
122+
run: npm ci
123+
124+
- name: Update root package version
117125
run: npm version $RELEASE_VERSION --no-git-tag-version
118126

127+
- name: Update all package versions
128+
run: |
129+
# Read ignore list from changeset config
130+
IGNORE_PACKAGES=$(node -e "
131+
const config = require('./.changeset/config.json');
132+
const ignoreList = config.ignore || [];
133+
console.log(ignoreList.join(','));
134+
")
135+
136+
echo "Ignore list: $IGNORE_PACKAGES"
137+
138+
# Find all package.json files and update versions
139+
find . -name "package.json" -not -path "./node_modules/*" -not -path "./.git/*" | while read package_file; do
140+
if [ "$package_file" != "./package.json" ]; then
141+
# Extract package name from package.json
142+
PACKAGE_NAME=$(node -e "
143+
try {
144+
const pkg = require('$package_file');
145+
console.log(pkg.name || '');
146+
} catch(e) {
147+
console.log('');
148+
}
149+
")
150+
151+
# Check if package should be ignored
152+
if [ -n "$PACKAGE_NAME" ]; then
153+
SHOULD_IGNORE=$(echo "$IGNORE_PACKAGES" | grep -q "$PACKAGE_NAME" && echo "true" || echo "false")
154+
155+
if [ "$SHOULD_IGNORE" = "false" ]; then
156+
echo "Updating $PACKAGE_NAME in $package_file to version $RELEASE_VERSION"
157+
# Update version in package.json
158+
node -e "
159+
const fs = require('fs');
160+
const pkg = JSON.parse(fs.readFileSync('$package_file', 'utf8'));
161+
if (!pkg.private) {
162+
pkg.version = '$RELEASE_VERSION';
163+
fs.writeFileSync('$package_file', JSON.stringify(pkg, null, 2) + '\n');
164+
}
165+
"
166+
else
167+
echo "Skipping $PACKAGE_NAME (in ignore list)"
168+
fi
169+
fi
170+
fi
171+
done
172+
119173
- name: Commit version
120174
run: |
121175
git add .
@@ -151,4 +205,4 @@ jobs:
151205
run: npm run build
152206

153207
- name: Publish to npm
154-
run: npm run release
208+
run: echo "Publishing to npm..."

README.md

Lines changed: 62 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,86 @@
22

33
ELIXIR Cloud Components (ECC) are lightweight, fast and reusable Web Components for operationalizing various [ELIXIR Cloud & AAI](https://elixir-cloud.dcc.sib.swiss/) and [GA4GH](https://ga4gh.org/) [Cloud](https://www.ga4gh.org/work_stream/cloud/) services.
44

5-
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
6-
7-
[badge-all-contributors-image]: https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square&color=%23F6DA80%20
8-
9-
<!-- ALL-CONTRIBUTORS-BADGE:END -->
10-
115
[![License][badge-license-image]][badge-license-url]
126
[![Chat][badge-chat-image]][badge-chat-url]
137

8+
## Documentation
149

15-
### Packages
10+
For comprehensive guides, API references, and examples, visit our documentation:
1611

17-
| Name | Description |
18-
|----------------------------|--------------------------------------------------------------------------------------------------------|
19-
| @elixir-cloud/design | Encapsulation & Utility components to manage the headless yet constitent design accross ecc components |
20-
| @elixir-cloud/tes | Collection of Web Components for interacting with TES (Task Execution Service) |
21-
| @elixir-cloud/wes | Collection of Web Components for interacting with WES (Workflow Execution Service) |
12+
**[https://cloud-components.2.rahtiapp.fi/](https://cloud-components.2.rahtiapp.fi/)**
2213

23-
## Development Setup
14+
## Quick Start for Developers
2415

2516
### Prerequisites
2617

27-
- Node.js (v16 or higher)
18+
- Node.js (v18 or higher)
2819
- npm or yarn
2920

30-
### Getting Started
21+
### Development Setup
22+
23+
1. **Clone the repository:**
24+
```bash
25+
git clone https://github.com/elixir-cloud-aai/cloud-components.git
26+
cd cloud-components
27+
```
28+
29+
2. **Install dependencies:**
30+
```bash
31+
npm install
32+
```
33+
34+
3. **Start development:**
35+
```bash
36+
# Run the design package first (required by all other packages)
37+
npm run dev --workspace=@elixir-cloud/design
3138

32-
1. Clone the repository:
39+
# In another terminal, run a specific package:
40+
npm run dev --workspace=@elixir-cloud/<package-name>
41+
```
3342

34-
```bash
35-
git clone https://github.com/elixir-cloud-aai/cloud-components.git
36-
```
43+
### Available Packages
3744

38-
2. Install dependencies:
45+
| Package | Description |
46+
|---------|-------------|
47+
| `@elixir-cloud/design` | Design system and utility components |
48+
| `@elixir-cloud/service-registry` | GA4GH Service Registry components |
49+
| `@elixir-cloud/cloud-registry` | ELIXIR Cloud Registry components |
50+
| `@elixir-cloud/trs` | GA4GH Tool Registry Service components |
51+
| `@elixir-cloud/trs-filer` | TRS-Filer service components |
52+
| `@elixir-cloud/wes` | GA4GH Workflow Execution Service components |
3953

40-
```bash
41-
npm install
42-
```
54+
## Development Commands
4355

44-
3. Start the development server:
56+
```bash
57+
# Install dependencies
58+
npm install
4559

46-
- Run the design package first as it is required by all other packages as dependency:
47-
```bash
48-
npm run dev --workspace=@elixir-cloud/design
49-
```
50-
- Run the specific package of choice from [here](#packages):
51-
52-
```bash
53-
npm run dev --workspace=@elixir-cloud/<package-name>
54-
```
60+
# Run specific package in development mode
61+
npm run dev --workspace=@elixir-cloud/<package-name>
5562

56-
e.g.
57-
```bash
58-
npm run dev --workspace=@elixir-cloud/tes
59-
```
63+
# Build all packages
64+
npm run build
6065

66+
# Run tests
67+
npm test
6168

69+
# Lint code
70+
npm run lint
71+
72+
# Format code
73+
npm run format
74+
```
75+
76+
## Architecture
77+
78+
ECC is built on modern web standards:
79+
80+
- **Web Components**: Platform-agnostic, framework-independent components
81+
- **TypeScript**: Type-safe development with excellent IDE support
82+
- **Lit**: Efficient web component library for building reactive UIs
83+
- **Vite**: Fast build tool and development server
84+
- **Monorepo**: Organized workspace with shared dependencies and tooling
6285

6386
## Contributing
6487

@@ -106,12 +129,11 @@ To get in touch with use, please use one of the following routes:
106129
[chat board][badge-chat-url] or [email] the community
107130
leaders.
108131

132+
---
133+
109134
[![logo-elixir][logo-elixir]][elixir]
110135
[![logo-elixir-cloud-aai][logo-elixir-cloud-aai]][elixir-cloud-aai]
111136

112-
[all-contributors]: https://allcontributors.org/docs/en/specification
113-
[all-contributors-bot]: https://allcontributors.org/docs/en/bot/overview
114-
[all-contributors-types]: https://allcontributors.org/docs/en/emoji-key
115137
[badge-license-image]: https://img.shields.io/badge/license-Apache%202.0-blue.svg
116138
[badge-license-url]: http://www.apache.org/licenses/LICENSE-2.0
117139
[badge-chat-image]: https://img.shields.io/static/v1?label=chat&message=Slack&color=ff6994

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elixir-cloud-components",
3-
"version": "1.0.1",
3+
"version": "2.0.0-alpha.19",
44
"description": "Elixir Cloud Components is lightweight, fast, and reusable web-components developed by Elixir Cloud and AAI Community for managing and accessing various services.",
55
"repository": {
66
"type": "git",

packages/ecc-client-elixir-cloud-registry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@elixir-cloud/cloud-registry",
33
"description": "Web Component for interacting with Elixir Cloud Registry",
44
"license": "Apache-2.0",
5-
"version": "2.0.0-alpha.6",
5+
"version": "2.0.0-alpha.19",
66
"type": "module",
77
"main": "./dist/index.js",
88
"module": "./dist/index.mjs",

packages/ecc-client-elixir-trs-filer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@elixir-cloud/trs-filer",
33
"description": "Web Component for interacting with Elixir TRS Filer",
44
"license": "Apache-2.0",
5-
"version": "2.0.0-alpha.4",
5+
"version": "2.0.0-alpha.19",
66
"type": "module",
77
"main": "./dist/index.js",
88
"module": "./dist/index.mjs",

packages/ecc-client-ga4gh-service-registry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@elixir-cloud/service-registry",
33
"description": "Web Component for interacting with GA4GH Service Registry Standard",
44
"license": "Apache-2.0",
5-
"version": "2.0.0-alpha.6",
5+
"version": "2.0.0-alpha.19",
66
"type": "module",
77
"main": "./dist/index.js",
88
"module": "./dist/index.mjs",

packages/ecc-client-ga4gh-trs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@elixir-cloud/trs",
33
"description": "Web Component for interacting with GA4GH TRS Standard",
44
"license": "Apache-2.0",
5-
"version": "2.0.0-alpha.13",
5+
"version": "2.0.0-alpha.19",
66
"type": "module",
77
"main": "./dist/index.js",
88
"module": "./dist/index.mjs",

packages/ecc-client-ga4gh-wes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@elixir-cloud/wes",
33
"description": "Web Component for interacting with GA4GH WES Standard",
44
"license": "Apache-2.0",
5-
"version": "2.0.0-alpha.1",
5+
"version": "2.0.0-alpha.19",
66
"type": "module",
77
"main": "./dist/index.js",
88
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)