Skip to content

Commit 7220b4a

Browse files
committed
Mono-repo configuration
1 parent c02ecd3 commit 7220b4a

19 files changed

+2574
-12578
lines changed

viewer/.editorconfig .editorconfig

File renamed without changes.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.gitpod.dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM gitpod/workspace-full
2+
3+
RUN npm install -g pnpm

.gitpod.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
image:
2+
file: .gitpod.dockerfile
3+
4+
tasks:
5+
- init: pnpm install
6+
command: cd viewer && pnpm serve
7+
8+
ports:
9+
- port: 8080
10+
onOpen: open-preview
11+
12+
github:
13+
prebuilds:
14+
# enable for the master/default branch (defaults to true)
15+
master: true
16+
# enable for pull requests coming from this repo (defaults to true)
17+
pullRequests: true
18+
# enable for pull requests coming from forks (defaults to false)
19+
pullRequestsFromForks: true
20+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
21+
addComment: true
22+
# add a "Review in Gitpod" button to pull requests (defaults to false)
23+
addBadge: false
24+
# add a label once the prebuild is ready to pull requests (defaults to false)
25+
addLabel: prebuilt-in-gitpod
26+
27+
vscode:
28+
extensions:
29+
- [email protected]:03mwRhlVpWDul4qBChcVUA==
30+
- [email protected]:iedq1JRjfM74CfhCoy3gJQ==

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shared-workspace-lockfile = false

.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tabWidth": 4
3+
}

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Container
2+
3+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/boardgamers/container)
4+
5+
Mono repo containing the viewer & the engine for Gaia Container
6+
7+
Checkout their READMEs:
8+
9+
- [engine](./engine/README.md)
10+
- [viewer](./viewer/README.md)
11+
12+
## Demo
13+
14+
Check out [boardgamers.space](https://www.boardgamers.space)! Reach out to us if you want to contribute.
15+
16+
## Install
17+
18+
Do `pnpm install` in the main folder
19+
20+
## Test locally
21+
22+
After the installation step, you can run the viewer with:
23+
24+
```
25+
cd viewer
26+
npm run serve
27+
```
28+
29+
It will use the engine in its sibling folder

engine/README.md

+5-18
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,31 @@
1-
# gaia-engine
1+
# container-engine
22

33
Typescript engine for Container.
44

55
## Setup
66

77
### Requirements
88

9-
Recent version of node / yarn.
9+
Recent version of node / pnpm.
1010

1111
### Dependencies
1212

1313
In the project's folder:
1414

1515
```
16-
yarn
16+
pnpm
1717
```
1818

1919
### Build
2020

2121
To compile Typescript into javascript:
2222

2323
```
24-
yarn build
24+
pnpm build
2525
```
2626

2727
### Test
2828

2929
```
30-
yarn test
31-
```
32-
33-
### Usage as a dependency from another module
34-
35-
If you want to use your local copy of this module instead of the npm version, as a dependency of
36-
another module, do this:
37-
38-
```
39-
## In this folder
40-
yarn link
41-
42-
## In the other project's folder
43-
yarn link container-engine
30+
pnpm test
4431
```

0 commit comments

Comments
 (0)