-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: set pnpm as package manager (#125)
Co-authored-by: Kamil Dubiel <kamil.dubiel@infinum.com>
- Loading branch information
Showing
14 changed files
with
6,690 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'@infinum/eslint-plugin': major | ||
--- | ||
|
||
Set `pNPM` as package manager: | ||
- Added `pnpm` lockfile and workspace configuration | ||
- Added static code analysis scripts to `package.json` | ||
- Configured `packageManager` for `corepack` | ||
- Updated `CONTRIBUTING.md` documentation | ||
- Updated `GithubActions` for `pnpm` support and resolved Node version warnings | ||
- Updated `husky` configuration for `pnpm` | ||
- Fixed `ESLint` configuration so it could be run for this repository also | ||
- Fixed `npm` doppelgangers | ||
- Added `changesets` config to `Prettier` ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"root": true, | ||
"extends": ["@infinum/core", "@infinum/typescript"] | ||
"extends": ["plugin:@infinum/core", "plugin:@infinum/typescript", "plugin:prettier/recommended"], | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 🩺 Code Analysis | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
code-analysis: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: 📥 Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🗃️ Install corepack | ||
run: corepack enable | ||
|
||
- name: ⚡️ Install pNPM | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
run_install: false | ||
|
||
- name: 🎰 Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.12.2 | ||
cache: 'pnpm' | ||
|
||
- name: 📦 Install dependencies | ||
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts | ||
|
||
- name: 🏗️ Build the pacakge | ||
run: pnpm build | ||
|
||
- name: 🧐 Prettier | ||
run: pnpm prettier:check | ||
|
||
- name: 🫣 Lint | ||
run: pnpm lint | ||
|
||
- name: 🧪 Run Tests | ||
run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit | ||
pnpm commitlint --edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,4 @@ LICENSE | |
|
||
# Intentionally ignored | ||
*.hbs | ||
.changeset/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.