Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module.exports = {
extends: ['standard-with-typescript', 'prettier'],
parserOptions: {
project: [
path.resolve(__dirname, './packages/*/tsconfig.json'),
path.resolve(__dirname, './apps/*/tsconfig.json'),
path.resolve(__dirname, './packages/next-rest-framework/tsconfig.json'),
path.resolve(__dirname, './apps/example/tsconfig.json'),
path.resolve(__dirname, './docs/tsconfig.json')
]
},
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: "CI"
name: 'CI'

on:
push:
branches:
- "**"
- '**'

jobs:
build:
name: "Run CI pipeline"
runs-on: ubuntu-latest
name: 'Run CI pipeline'
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand All @@ -20,7 +21,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- run: pnpm run ci

Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
.next
coverage
.docusaurus
pnpm-lock.yaml
4 changes: 2 additions & 2 deletions apps/example/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {};

module.exports = nextConfig
module.exports = nextConfig;
6 changes: 3 additions & 3 deletions apps/example/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
autoprefixer: {}
}
};
2 changes: 1 addition & 1 deletion docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
presets: [require.resolve('@docusaurus/core/lib/babel/preset')]
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"build": "pnpm --filter next-rest-framework run build",
"test": "pnpm --filter next-rest-framework run test",
"test:watch": "pnpm --filter next-rest-framework run test:watch",
"format": "prettier --write '**/*.{ts,json}' && eslint --fix --max-warnings=0 --ext=.ts .",
"lint": "pnpm run -r lint && prettier --check '**/*.{ts,json}' && eslint --max-warnings=0 --ext=.ts . && swagger-cli validate ./apps/example/public/openapi.json",
"format": "prettier --write . && eslint --fix --max-warnings=0 --ext=.ts .",
"lint": "pnpm run -r lint && prettier --check . && eslint --max-warnings=0 --ext=.ts . && swagger-cli validate ./apps/example/public/openapi.json",
"ci": "pnpm run build && pnpm run lint && pnpm run test"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-rest-framework/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module.exports = {
rules: {
'no-var': 'off'
}
}
};
6 changes: 3 additions & 3 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- "packages/*"
- "apps/*"
- "docs"
- 'packages/*'
- 'apps/*'
- 'docs'