Skip to content

Commit

Permalink
feat: migrate from nx to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohmn committed Jul 12, 2024
1 parent 9bd3aa9 commit 0179a49
Show file tree
Hide file tree
Showing 39 changed files with 5,983 additions and 14,733 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-docker-img-and-release-dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: yarn clean install
run: yarn install --frozen-lockfile

- name: npm clean install
run: npm ci
- run: yarn global add semantic-release @semantic-release/{git,exec,changelog}

- run: npm i -g semantic-release @semantic-release/{git,exec,changelog}

- run: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: make build
run: npx nx build like
run: yarn build

- name: get-npm-version
id: package-version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
run: npm ci

- name: Typescript compiles
run: npx nx build like
run: yarn build

- name: Eslint
run: npx nx lint like
run: yarn lint
continue-on-error: true

- name: database migration
Expand All @@ -50,5 +50,5 @@ jobs:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres

- name: run tests
run: npx nx test like
run: yarn test

14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:18-alpine as builder
FROM node:18-alpine AS builder
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
ENV PATH=/app/node_modules/.bin:$PATH
COPY package.json ./
COPY package-lock.json ./
RUN npm ci --silent
COPY yarn.lock ./
RUN yarn install --silent --frozen-lockfile
COPY . .
RUN npx prisma generate --schema=apps/like/prisma/schema.prisma
RUN npx nx build like --configuration=production
RUN npm prune --production
RUN yarn build
RUN yarn install --production --ignore-scripts --prefer-offline

FROM node:18-alpine as prod
FROM node:18-alpine AS prod
WORKDIR /app
COPY --from=builder app/dist/apps/like ./dist
COPY --from=builder app/node_modules ./node_modules
Expand Down
18 changes: 0 additions & 18 deletions apps/like/.eslintrc.json

This file was deleted.

11 changes: 0 additions & 11 deletions apps/like/jest.config.ts

This file was deleted.

301 changes: 0 additions & 301 deletions apps/like/package-lock.json

This file was deleted.

Loading

0 comments on commit 0179a49

Please sign in to comment.