Skip to content

Commit

Permalink
pnpm replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
eve-git committed Apr 19, 2024
1 parent 19e3304 commit c39c661
Show file tree
Hide file tree
Showing 7 changed files with 14,267 additions and 22,135 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:20.5.1 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN pnpm install
COPY ./ .
RUN npm run build
RUN pnpm run build

FROM nginx:1.18.0 as production-stage

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ DOCKER_NAME=namerequest
# expects the terminal to be openshift login
# expects export OPENSHIFT_REPOSITORY=""
#################################################################################
setup: ## Clean and Install npm dependencies
npm ci
setup:
pnpm install --frozen-lockfile

create-env: ## create the configration files from dev
@oc get configmap $(DOCKER_NAME)-dev-ui-configuration -n "$(OPENSHIFT_REPOSITORY)-dev" \
Expand All @@ -22,10 +22,10 @@ create-env: ## create the configration files from dev
ci: lint test

lint: ## Run linting ofcode.
npm run lint
pnpm run lint

test: ## Unit testing
npm run test:unit
pnpm run test:unit

#################################################################################
# COMMANDS - CD
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@

## Project setup
```
npm install
pnpm install
```

### Compiles and hot-reloads for development
```
npm run serve
pnpm run serve
```

### Compiles and minifies for production
```
npm run build
pnpm run build
```

### Run your tests
```
npm run test
pnpm run test
```

### Lints and fixes files
```
npm run lint
pnpm run lint
```

### Run your unit tests
```
npm run test:unit
pnpm run test:unit
```

### Customize configuration
Expand Down
Loading

0 comments on commit c39c661

Please sign in to comment.