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

Setup PNPM & upgrade dev dependencies #31

Merged
merged 3 commits into from
Oct 16, 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
16 changes: 10 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run lint
- run: npm run ts-check
- run: npm test
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
run: pnpm lint
run: pnpm ts-check
run: pnpm test
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ This repo is an open source collection and playground of algorithms, data struct
Install all dependencies

```
npm install
pnpm install
```

To play around with the data structures and algorithms and create your own stuff, run TS in watch mode in order to get incremental compilation errors while you code

```
npm run dev
pnpm dev
```

You can run a TS script

```
npm start <path/to/the/file.ts>
pnpm start <path/to/the/file.ts>
```

You can also write tests and run the entire suite once

```
npm run test
pnpm test
```

or run it in watch mode

```
npm run test:watch
pnpm test:watch
```
Loading