Skip to content

Commit

Permalink
chore: Improve paths in backend package
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Jun 28, 2024
1 parent 14ecc90 commit e0bbe32
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🐞 Bug report
description: Create a report to help us improve
labels: ["🐞 Bug"]
labels: ['🐞 Bug']
body:
- type: checkboxes
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 💡 Feature request
description: Suggest an idea for this project
labels: ["💡 Feature"]
labels: ['💡 Feature']
body:
- type: checkboxes
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ changelog:
- 🐞 Bug
- title: Other Changes
labels:
- "*"
- '*'
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build

on:
pull_request:
branches: "*"
branches: '*'
types:
- opened
- edited
Expand All @@ -27,13 +27,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Run config init
run: pnpm config:init

- name: Build
run: pnpm build
4 changes: 2 additions & 2 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Lint PR title"
name: 'Lint PR title'

on:
pull_request_target:
branches: "*"
branches: '*'
types:
- opened
- edited
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint

on:
pull_request:
branches: "*"
branches: '*'
types:
- opened
- edited
Expand All @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
Expand Down
13 changes: 0 additions & 13 deletions apps/frontend/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
/graphql/hooks.ts

# next-pwa
/public/precache.*.*.js
/public/sw.js
/public/workbox-*.js
/public/worker-*.js
/public/fallback-*.js
/public/precache.*.*.js.map
/public/sw.js.map
/public/workbox-*.js.map
/public/worker-*.js.map
/public/fallback-*.js
/worker

next.config.js
tailwind.config.js
postcss.config.js
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"config:init": "vitnode-frontend init",
"dev": "pnpm config:init && next dev --turbo",
"dev:turbo": "next dev --turbo",
"build": "pnpm config:init && next build",
"build": "next build",
"analyze": "cross-env ANALYZE=true pnpm build",
"start": "next start",
"start:prod": "node server.js",
Expand Down
1 change: 1 addition & 0 deletions packages/backend/scripts/copy-database-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const copyDatabaseSchema = ({
const currentPathToSchema = path.join(
__dirname,
'..',
'..',
'src',
'templates',
'core',
Expand Down
7 changes: 6 additions & 1 deletion packages/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
"env": {
"node": true
},
"ignorePatterns": ["tailwind.config.ts", "src/graphql/code.ts"]
"ignorePatterns": [
"tailwind.config.ts",
"src/graphql/code.ts",
"codegen.ts",
"scripts/**/*"
]
}
1 change: 1 addition & 0 deletions packages/frontend/src/editor/extensions/files/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Image from 'next/image';
import { formatBytes } from 'vitnode-shared';

import { acceptMimeTypeImage, FilesHandlerAttributes } from './files';

import { CONFIG } from '../../../helpers/config-with-env';

const FileFromNextWithNode = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from '../files';
import { uploadMutationApi } from './upload-mutation-api';
import { getFilesFromContent } from './functions';

import { TextLanguage } from '../../../../graphql/code';

export interface UploadFilesHandlerArgs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { revalidatePath } from 'next/cache';
import { fetcher } from 'vitnode-frontend/graphql/fetcher';

import {
Core_Editor_Files__Delete,
Core_Editor_Files__DeleteMutation,
Expand Down

0 comments on commit e0bbe32

Please sign in to comment.