Skip to content

Commit dea9f21

Browse files
committed
drop spark- prefix from directory names
Signed-off-by: Miroslav Bajtoš <[email protected]>
1 parent fabab97 commit dea9f21

29 files changed

+73
-23
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
2626
GLIF_TOKEN: ${{ secrets.GLIF_TOKEN }}
27-
NPM_CONFIG_WORKSPACE: spark-api
27+
NPM_CONFIG_WORKSPACE: api
2828
steps:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-node@v4
@@ -51,7 +51,7 @@ jobs:
5151
--health-retries 5
5252
env:
5353
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
54-
NPM_CONFIG_WORKSPACE: spark-publish
54+
NPM_CONFIG_WORKSPACE: publish
5555
steps:
5656
- uses: actions/checkout@v4
5757
- uses: actions/setup-node@v4
@@ -110,7 +110,7 @@ jobs:
110110
steps:
111111
- uses: actions/checkout@v4
112112
- uses: superfly/flyctl-actions/setup-flyctl@master
113-
- run: cd spark-api && flyctl deploy --remote-only
113+
- run: cd api && flyctl deploy --remote-only
114114
env:
115115
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
116116
- if: failure()
@@ -139,7 +139,7 @@ jobs:
139139
steps:
140140
- uses: actions/checkout@v4
141141
- uses: superfly/flyctl-actions/setup-flyctl@master
142-
- run: cd spark-publish && flyctl deploy --remote-only
142+
- run: cd publish && flyctl deploy --remote-only
143143
env:
144144
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_PUBLISH }}
145145
- if: failure()

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ COPY --link package-lock.json package.json ./
2929

3030
# We cannot use a wildcard until `COPY --parents` is stabilised
3131
# See https://docs.docker.com/reference/dockerfile/#copy---parents
32-
COPY --link spark-api/package.json ./spark-api/
33-
COPY --link spark-publish/package.json ./spark-publish/
32+
COPY --link api/package.json ./api/
33+
COPY --link publish/package.json ./publish/
3434

3535
RUN npm ci --workspaces
3636

@@ -50,6 +50,6 @@ ARG SERVICE
5050

5151
# ARGs are not preserved at runtime, we need to store the value
5252
# as a default value of an ENV var
53-
ENV WORKSPACE="spark-${SERVICE}"
53+
ENV WORKSPACE="${SERVICE}"
5454

5555
CMD npm start --workspace ${WORKSPACE}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ docker run -d --name spark-db \
8484
postgres
8585
```
8686

87-
### `spark-api`
87+
### `api`
8888

8989
Start the API service:
9090

9191
```bash
92-
npm start --workspace spark-api
92+
npm start --workspace api
9393
```
9494

9595
Run tests and linters:
9696

9797
```bash
98-
npm test --workspace spark-api
99-
npm run lint --workspace spark-api
98+
npm test --workspace api
99+
npm run lint --workspace api
100100
```
101101

102102
## Deployment
@@ -106,5 +106,5 @@ Pushes to `main` will be deployed automatically.
106106
Perform manual devops using [Fly.io](https://fly.io):
107107

108108
```bash
109-
$ fly deploy spark-api
109+
$ fly deploy api
110110
```
File renamed without changes.
File renamed without changes.
File renamed without changes.

spark-api/lib/ie-contract.js renamed to api/lib/ie-contract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ethers } from 'ethers'
2-
import { RPC_URL, GLIF_TOKEN } from '../../spark-publish/ie-contract-config.js'
2+
import { RPC_URL, GLIF_TOKEN } from '../../publish/ie-contract-config.js'
33
import * as SparkImpactEvaluator from '@filecoin-station/spark-impact-evaluator'
44

55
const fetchRequest = new ethers.FetchRequest(RPC_URL)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)