Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace yarn with npm #262

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
yarn-error.log
dist
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
with:
node-version: 16.x
- name: Install dependencies
run: yarn
run: npm ci
- name: Lint
run: |
yarn lint
yarn lint:ts
npm run lint
npm run lint:ts
env:
CI: true

Expand All @@ -38,11 +38,11 @@ jobs:
with:
node-version: 16.x
- name: Install dependencies
run: yarn
run: npm ci
- name: Test
run: |
cp .env.example .env
yarn test
npm run test
env:
CI: true

Expand All @@ -56,9 +56,9 @@ jobs:
with:
node-version: 16.x
- name: Install dependencies
run: yarn
run: npm ci
- name: Build
run: yarn build
run: npm run build
env:
CI: true

Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps = true
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ RUN apk add --no-cache --virtual .gyp python3 make g++

COPY . .

RUN yarn --frozen-lockfile
RUN npm install

RUN yarn build
RUN npm run build

FROM node:16-alpine

WORKDIR /usr/src/app

COPY --from=build-env /usr/src/app/ .

RUN yarn --prod
RUN npm install --omit dev

ENV TZ UTC

EXPOSE 5000
CMD ["yarn", "start"]
CMD ["npm", "start"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ git clone https://github.com/cramkle/hipocampo
cd hipocampo

# Install dependencies
yarn
npm install

# Copy example env file to .env
cp .env.example .env
Expand All @@ -34,7 +34,7 @@ brew install mongodb-community redis
Now that you've setup all the project dependencies, you can start developing by running:

```sh
yarn dev
npm run dev
```

This will start the API on [http://localhost:5000/](http://localhost:5000). You can access
Expand Down
Loading
Loading