Skip to content

Commit

Permalink
Merge pull request #89 from Royal-lobster/pnpm-biome-switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster authored Oct 25, 2024
2 parents 7b0a75f + 02097a0 commit 69674f1
Show file tree
Hide file tree
Showing 20 changed files with 7,857 additions and 6,679 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Checks
name: Lint Checks
on: [push]
jobs:
ci:
name: Lint using rome
name: Lint using biome
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Installing dependencies
run: yarn install --frozen-lockfile
- name: Lint rome
run: yarn rome ci .
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js and pnpm
uses: wyvox/action-setup-pnpm@v3
with:
node-version: '18'
- name: Lint biome
run: pnpm biome ci .
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,16 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node.js 18.x
uses: actions/setup-node@v2
- name: Setup Node.js and pnpm
uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18.x
node-version: '18'

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Trigger Publish Workflow
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }}
Expand Down
9 changes: 6 additions & 3 deletions rome.json → biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"$schema": "./node_modules/rome/configuration_schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"organizeImports": {
"enabled": false
},
Expand All @@ -10,7 +15,6 @@
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentSize": 2,
"lineWidth": 80
},
"linter": {
Expand All @@ -36,7 +40,6 @@
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingComma": "all",
"semicolons": "asNeeded"
}
}
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"release": "yarn build && publish-extension --chrome-zip \"artifacts/chrome.zip\" --chrome-extension-id \"$CHROME_EXTENSION_ID\" --chrome-client-id \"$CHROME_CLIENT_ID\" --chrome-client-secret \"$CHROME_CLIENT_SECRET\" --chrome-refresh-token \"$CHROME_REFRESH_TOKEN\"",
"release:cli": "yarn build && dotenv -e .env -- publish-extension --chrome-zip \"artifacts/chrome.zip\" --chrome-extension-id \"$CHROME_EXTENSION_ID\" --chrome-client-id \"$CHROME_CLIENT_ID\" --chrome-client-secret \"$CHROME_CLIENT_SECRET\" --chrome-refresh-token \"$CHROME_REFRESH_TOKEN\"",
"format": "rome format . --write",
"lint": "rome check .",
"release": "pnpm build && publish-extension --chrome-zip \"artifacts/chrome.zip\" --chrome-extension-id \"$CHROME_EXTENSION_ID\" --chrome-client-id \"$CHROME_CLIENT_ID\" --chrome-client-secret \"$CHROME_CLIENT_SECRET\" --chrome-refresh-token \"$CHROME_REFRESH_TOKEN\"",
"release:cli": "pnpm build && dotenv -e .env -- publish-extension --chrome-zip \"artifacts/chrome.zip\" --chrome-extension-id \"$CHROME_EXTENSION_ID\" --chrome-client-id \"$CHROME_CLIENT_ID\" --chrome-client-secret \"$CHROME_CLIENT_SECRET\" --chrome-refresh-token \"$CHROME_REFRESH_TOKEN\"",
"format": "biome format . --write",
"lint": "biome check .",
"flush": "rm -rf artifacts/ dist/",
"lint:fix": "yarn lint --apply"
"lint:fix": "pnpm lint --apply"
},
"dependencies": {
"@dnd-kit/core": "^6.0.8",
Expand Down Expand Up @@ -53,6 +53,7 @@
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@changesets/cli": "^2.26.1",
"@crxjs/vite-plugin": "^2.0.0-beta.15",
"@types/chrome": "^0.0.213",
Expand All @@ -66,7 +67,6 @@
"dotenv-cli": "^7.3.0",
"postcss": "^8.4.21",
"publish-browser-extension": "^1.4.1",
"rome": "12.0.0",
"tailwindcss": "^3.3.5",
"typescript": "^4.9.5",
"vite": "^4.1.1",
Expand Down
Loading

0 comments on commit 69674f1

Please sign in to comment.