Skip to content

Commit 0703eaa

Browse files
authored
Merge pull request #289 from com-pas/282-adhere-to-monorepository-structure
infra!: adhere to monorepo strucutre of open-scd
2 parents 59f2187 + 5afb2d7 commit 0703eaa

File tree

1,013 files changed

+69641
-32446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,013 files changed

+69641
-32446
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ updates:
1212
interval: "daily"
1313
open-pull-requests-limit: 5
1414
- package-ecosystem: "docker"
15-
directory: "/"
15+
directory: "packages/compas-openscd/"
1616
schedule:
1717
interval: "daily"
1818
open-pull-requests-limit: 5

.github/workflows/build-project.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,21 @@ jobs:
4242
timeout-minutes: 45
4343
if: ${{ github.event_name == 'push' }}
4444
run: |
45+
cd packages/compas-open-scd
4546
npm ci
4647
npm run-script test
4748
4849
- name: Build application with npm
4950
if: ${{ github.event_name == 'pull_request' }}
5051
timeout-minutes: 45
5152
run: |
53+
cd packages/compas-open-scd
5254
npm ci
5355
npm run-script build
5456
- name: Build docker image
5557
if: ${{ github.event_name == 'pull_request' }}
5658
uses: docker/build-push-action@v5
5759
with:
58-
# Set the context to use the current directory and not execute it's own git checkout.
59-
context: .
60+
# Set the context to use the packages/compas-open-scd directory and not execute it's own git checkout.
61+
context: packages/compas-open-scd
6062
push: false

.github/workflows/release-project.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ jobs:
4444

4545
- name: Build application with npm
4646
run: |
47+
cd packages/compas-open-scd
4748
npm ci
4849
npm run-script build
4950
- name: Build and push docker image to Docker Hub
5051
uses: docker/build-push-action@v5
5152
with:
52-
# Set the context to use the current directory and not execute it's own git checkout.
53-
context: .
53+
# Set the context to use the packages/compas-open-scd directory and not execute it's own git checkout.
54+
context: packages/compas-open-scd
5455
push: true
5556
# Tag the images using the tagname and also latest.
5657
tags: |

.github/workflows/test-and-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ jobs:
1515

1616
- name: Install and Build
1717
run: |
18+
cd packages/compas-open-scd
1819
npm ci
1920
npm run-script build

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ jobs:
1818

1919
- name: Install and Test
2020
run: |
21+
cd packages/compas-open-scd
2122
npm ci
2223
npm run-script test

.gitignore

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,5 @@
66
.DS_Store
77

88
## npm
9-
/node_modules/
9+
node_modules/
1010
/npm-debug.log
11-
12-
## testing
13-
/coverage/
14-
/**/dist/*.snap.dev.js
15-
16-
## docs
17-
/doc/
18-
19-
# build
20-
/_site/
21-
/build/
22-
/out-tsc/
23-
24-
/public/cim/
25-
!/public/cim/README.md

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@ CoMPAS Open Substation Communication Designer is an editor for SCL files as desc
1717
CoMPAS OpenSCD is a fork of the [OpenSCD](https://github.com/openscd/open-scd) project. The idea is to add functionality
1818
to use the CoMPAS Backend Service to open and save SCL Files and more.
1919

20-
## Contributing
20+
## Development
2121

22-
See [Development](DEVELOPMENT.md) for more information about how to build and run CoMPAS OpenSCD locally.
22+
This repository is a [↗ monorepo](https://en.wikipedia.org/wiki/Monorepo), made up of several packages.
23+
To find out more about the development of each packages, such as the base distribution or the plugins, please refer to their respective READMEs:
24+
- [open-scd](packages/open-scd/README.md): provides the (upstream) base distribution available on [openscd.github.io](https://openscd.github.io)
25+
- [compas-open-scd](packages/compas-open-scd/README.md): provides the base distribution available on [demo.compas.energy](https://demo.compas.energy)
2326

24-
## Releasing
27+
## Contributing
2528

26-
See [Releasing](RELEASING.md) for a step by step guide on releasing this fork with the latest version of [open-scd](https://github.com/openscd/open-scd/).
29+
A recommended read for every newcomer to the CoMPAS project is [the CoMPAS Contributing guide](https://com-pas.github.io/contributing/).
2730

28-
## License
31+
You can also get in touch by joining the `#compas` channel hosted on [the LF Energy Slack server](https://lfenergy.slack.com/archives/C01926K9D39).
2932

30-
The [IEC 61850](https://webstore.iec.ch/publication/63319) XSD and NSD code components used are
31-
distributed under their [end user license agreement](CC-EULA.pdf).
33+
## Documentation
3234

33-
This project is licensed under the [Apache License 2.0](LICENSE.md).
35+
How the documentation is organized.
3436

35-
© 2020-2022 OMICRON electronics GmbH, TransnetBW GmbH, Alliander N.V., and others
37+
A high-level overview of how it’s organized will help you know where to look for certain things:
3638

37-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenscd%2Fopen-scd.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenscd%2Fopen-scd?ref=badge_large)
39+
- [⚖️ Decisions](docs/decisions/README.md) documents the decisions we made and why we made them.

0 commit comments

Comments
 (0)