Skip to content

Commit

Permalink
Merge pull request #9 from floroz/chore/migrate-to-npm
Browse files Browse the repository at this point in the history
chore: attempt first migration step
  • Loading branch information
floroz authored Nov 17, 2024
2 parents c8f0eae + 032fc2d commit cd53722
Show file tree
Hide file tree
Showing 7 changed files with 17,089 additions and 11,384 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,24 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.12]

steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: 7.28.0

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
node-version: 20.11
cache: "npm"

- name: Install Dependencies
run: pnpm install
run: npm ci

- name: Lint
run: pnpm lint
run: npm run lint

- name: Unit Test
run: pnpm test
run: npm run test

- name: Build
run: pnpm build
run: npm run build
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ node_modules
.env
dist
.DS_Store

# Because the project uses PNPM, this is another security check to avoid introducing NPM
package-lock.json
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run lint
npx lint-staged
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@
Make sure to install the dependencies:

```bash
pnpm install
npm install
```

## Development Server

Start the development server on http://localhost:3000

```bash
pnpm run dev
npm run dev
```

## Production

Build the application for production:

```bash
pnpm run build
npm run build
```

Locally preview production build:

```bash
pnpm run preview
npm run preview
```
Loading

0 comments on commit cd53722

Please sign in to comment.