Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit e73676e

Browse files
committed
chore(ember)!: use pnpm instead of yarn
Signed-off-by: Arthur Deierlein <arthur.deierlein@adfinis.com>
1 parent f1dde2a commit e73676e

10 files changed

Lines changed: 15773 additions & 15609 deletions

File tree

.github/workflows/frontend.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,19 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23+
- uses: pnpm/action-setup@v3
24+
with:
25+
version: 8
2326
- name: Install Node
2427
uses: actions/setup-node@v4
2528
with:
2629
node-version: lts/Iron
27-
cache: yarn
28-
cache-dependency-path: ember/yarn.lock
30+
cache: pnpm
31+
cache-dependency-path: ember/pnpm-lock.yaml
2932
- name: Install Dependencies
30-
run: yarn install --frozen-lockfile
33+
run: pnpm install --frozen-lockfile
3134
- name: Lint
32-
run: yarn lint
35+
run: pnpm lint
3336

3437
test:
3538
name: "Test"
@@ -38,13 +41,16 @@ jobs:
3841

3942
steps:
4043
- uses: actions/checkout@v4
44+
- uses: pnpm/action-setup@v3
45+
with:
46+
version: 8
4147
- name: Install Node
4248
uses: actions/setup-node@v4
4349
with:
4450
node-version: lts/Iron
45-
cache: yarn
46-
cache-dependency-path: ember/yarn.lock
51+
cache: pnpm
52+
cache-dependency-path: ember/pnpm-lock.yaml
4753
- name: Install Dependencies
48-
run: yarn install --frozen-lockfile
54+
run: pnpm install --frozen-lockfile
4955
- name: Run Tests
50-
run: yarn ember test
56+
run: pnpm ember test

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ cleanup: ## Cleanup all docker containers, images, volumes and networks from the
3838

3939
.PHONY: ember-lint
4040
ember-lint: ## lint ember
41-
@cd ember && yarn lint
41+
@cd ember && pnpm lint
4242

4343
.PHONY: ember-lint-fix
4444
ember-lint-fix: ## lint and fix ember
45-
@cd ember && yarn lint:fix
45+
@cd ember && pnpm lint:fix
4646

4747
.PHONY: ember-start
4848
ember-start: ## Start ember
4949
@docker compose up ember --build -d
5050

5151
.PHONY: ember-start-livereload
5252
ember-start-livereload: ## Start ember with livereload
53-
@docker compose up -d --build db keycloak api caddy && cd ember && yarn && yarn start-proxy
53+
@docker compose up -d --build db keycloak api caddy && cd ember && pnpm i && pnpm start-proxy
5454

5555
.PHONY: ember-test
5656
ember-test: ## test the frontend
57-
@cd ember && yarn test:ember
57+
@cd ember && pnpm test:ember
5858

5959
.PHONY: lint
6060
lint: api-lint ember-lint ## Lint the API and ember

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An application to track the dependencies of projects.
1111

1212
### Optional
1313

14-
- yarn (for linting ember)
14+
- pnpm (for linting ember)
1515

1616
## Running
1717

ember/.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# pnpm lockfile
2+
pnpm-lock.yaml
3+
14
# unconventional js
25
/blueprints/*/files/
36

@@ -10,4 +13,4 @@
1013
.*/
1114

1215
# ember-try
13-
/.node_modules.ember-try/
16+
/.node_modules.ember-try/

ember/Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
FROM node:lts-slim as build
22

3-
4-
EXPOSE 4200
3+
ENV PNPM_HOME="/pnpm"
4+
ENV PATH="$PNPM_HOME:$PATH"
5+
RUN corepack enable
56

67
WORKDIR /ember
78

8-
COPY package.json yarn.lock ./
9+
COPY package.json pnpm-lock.yaml ./
910

10-
RUN yarn install
11+
RUN pnpm install --frozen-lockfile
1112

1213
COPY . .
1314

14-
RUN yarn build
15-
16-
CMD ["yarn", "start"]
15+
RUN pnpm build
1716

1817
FROM nginx:alpine
1918

ember/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ You will need the following things properly installed on your computer.
99

1010
- [Git](https://git-scm.com/)
1111
- [Node.js](https://nodejs.org/)
12-
- [Yarn](https://yarnpkg.com/)
12+
- [pnpm](https://pnpm.io/)
1313
- [Ember CLI](https://cli.emberjs.com/release/)
1414
- [Google Chrome](https://google.com/chrome/)
1515

1616
## Installation
1717

18-
- `git clone <repository-url>` this repository
18+
- `git clone https://github.com/adfinis/outdated`
1919
- `cd outdated`
20-
- `yarn install`
20+
- `pnpm install`
2121

2222
## Running / Development
2323

@@ -27,22 +27,21 @@ You will need the following things properly installed on your computer.
2727

2828
### Code Generators
2929

30-
Make use of the many generators for code, try `ember help generate` for more details
30+
Make use of the many generators for code, try `pnpm ember help generate` for more details
3131

3232
### Running Tests
3333

34-
- `ember test`
35-
- `ember test --server`
34+
- `pnpm ember test`
35+
- `pnpm ember test --server`
3636

3737
### Linting
3838

39-
- `yarn lint`
40-
- `yarn lint:fix`
39+
- `pnpm lint`
40+
- `pnpm lint:fix`
4141

4242
### Building
4343

44-
- `ember build` (development)
45-
- `ember build --environment production` (production)
44+
- `pnpm build` (production)
4645

4746
### Deploying
4847

ember/config/ember-cli-update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"isBaseBlueprint": true,
1313
"options": [
1414
"--no-welcome",
15-
"--yarn",
15+
"--pnpm",
1616
"--embroider",
1717
"--ci-provider=github"
1818
]

ember/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@faker-js/faker": "^8.4.1",
4242
"@glimmer/component": "^1.1.2",
4343
"@glimmer/tracking": "^1.1.2",
44-
"@warp-drive/core-types": "^0.0.0-alpha.3",
44+
"@warp-drive/core-types": "^0.0.0-beta.4",
4545
"broccoli-asset-rev": "^3.0.0",
4646
"brotli-webpack-plugin": "^1.1.0",
4747
"concurrently": "^8.2.2",
@@ -90,6 +90,7 @@
9090
"flatpickr": "^4.6.13",
9191
"graphql": "^16.8.1",
9292
"loader.js": "^4.7.0",
93+
"lodash": "^4.17.21",
9394
"luxon": "^3.4.4",
9495
"miragejs": "^0.1.48",
9596
"prettier": "^3.2.5",

0 commit comments

Comments
 (0)