mirror of
https://github.com/gosticks/plane.git
synced 2025-10-16 12:45:33 +00:00
feat: adding standard scripts for lint and format check (#7326)
* feat: adding standard scripts for lint and format check * fix: update packages scripts * fix: adding tsup config to utils package * chore: updated build scripts in logger pacakge
This commit is contained in:
parent
f2a87e8f15
commit
ba884d1e4d
@ -10,9 +10,12 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"preview": "next build && next start",
|
"preview": "next build && next start",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"format": "prettier --write .",
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint . --ext .ts,.tsx --quiet"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^1.7.19",
|
"@headlessui/react": "^1.7.19",
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"fix:lint": "eslint . --fix",
|
"fix:lint": "eslint . --fix",
|
||||||
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|||||||
@ -8,9 +8,12 @@
|
|||||||
"develop": "next dev -p 3002",
|
"develop": "next dev -p 3002",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist",
|
||||||
"lint:errors": "eslint . --ext .ts,.tsx --quiet",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"export": "next export"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blueprintjs/core": "^4.16.3",
|
"@blueprintjs/core": "^4.16.3",
|
||||||
|
|||||||
@ -8,12 +8,12 @@
|
|||||||
"develop": "next dev --port 3000",
|
"develop": "next dev --port 3000",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist",
|
||||||
"lint:errors": "eslint . --ext .ts,.tsx --quiet",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"export": "next export",
|
"check:types": "tsc --noEmit",
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"dev:trace": "NEXT_TURBOPACK_TRACING=1 NEXT_CPU_PROF=1 next dev",
|
"fix:lint": "eslint . --fix",
|
||||||
"view-trace": "next internal turbo-trace-server ./.next/trace"
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atlaskit/pragmatic-drag-and-drop": "^1.1.3",
|
"@atlaskit/pragmatic-drag-and-drop": "^1.1.3",
|
||||||
|
|||||||
@ -13,10 +13,9 @@
|
|||||||
"build": "turbo run build",
|
"build": "turbo run build",
|
||||||
"dev": "turbo run dev --concurrency=13",
|
"dev": "turbo run dev --concurrency=13",
|
||||||
"start": "turbo run start",
|
"start": "turbo run start",
|
||||||
"lint": "turbo run lint",
|
|
||||||
"lint:errors": "turbo run lint:errors",
|
|
||||||
"clean": "turbo run clean",
|
"clean": "turbo run clean",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
"fix": "turbo run fix",
|
||||||
|
"check": "turbo run check"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "latest",
|
"prettier": "latest",
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"fix:lint": "eslint . --fix",
|
"fix:lint": "eslint . --fix",
|
||||||
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@plane/types": "*"
|
"@plane/types": "*"
|
||||||
|
|||||||
@ -13,8 +13,12 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup src/index.ts --format esm,cjs --dts --external express,ws",
|
"build": "tsup src/index.ts --format esm,cjs --dts --external express,ws",
|
||||||
"dev": "tsup src/index.ts --format esm,cjs --watch --dts --external express,ws",
|
"dev": "tsup src/index.ts --format esm,cjs --watch --dts --external express,ws",
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.21.2",
|
"express": "^4.21.2",
|
||||||
|
|||||||
@ -24,10 +24,12 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup --minify",
|
"build": "tsup --minify",
|
||||||
"dev": "tsup --watch",
|
"dev": "tsup --watch",
|
||||||
"check-types": "tsc --noEmit",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:types": "tsc --noEmit",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet",
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
|
|||||||
@ -3,7 +3,4 @@ module.exports = {
|
|||||||
root: true,
|
root: true,
|
||||||
extends: ["@plane/eslint-config/library.js"],
|
extends: ["@plane/eslint-config/library.js"],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
|
||||||
project: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -11,9 +11,14 @@
|
|||||||
"dist/**"
|
"dist/**"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup ./src/index.ts --format esm,cjs --dts --external react --minify",
|
"build": "tsup --minify",
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"dev": "tsup --watch",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^18.3.1"
|
"react": "^18.3.1"
|
||||||
|
|||||||
9
packages/hooks/tsup.config.ts
Normal file
9
packages/hooks/tsup.config.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { defineConfig } from "tsup";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
entry: ["src/index.ts"],
|
||||||
|
format: ["esm", "cjs"],
|
||||||
|
dts: true,
|
||||||
|
clean: true,
|
||||||
|
external: ["react"],
|
||||||
|
});
|
||||||
@ -7,8 +7,12 @@
|
|||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"types": "./src/index.ts",
|
"types": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@plane/utils": "*",
|
"@plane/utils": "*",
|
||||||
|
|||||||
@ -11,11 +11,14 @@
|
|||||||
"dist/**"
|
"dist/**"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsup --minify",
|
||||||
"dev": "tsc --watch",
|
"dev": "tsup --watch",
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet",
|
"check:types": "tsc --noEmit",
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
|
|||||||
@ -4,8 +4,12 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
"./ui/*": "./src/ui/*.tsx",
|
"./ui/*": "./src/ui/*.tsx",
|
||||||
|
|||||||
@ -5,8 +5,12 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@plane/constants": "*",
|
"@plane/constants": "*",
|
||||||
|
|||||||
@ -7,8 +7,12 @@
|
|||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"types": "./src/index.ts",
|
"types": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"zod": "^3.22.2"
|
"zod": "^3.22.2"
|
||||||
|
|||||||
@ -20,11 +20,12 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsup --watch",
|
"dev": "tsup --watch",
|
||||||
"build": "tsc --noEmit && tsup",
|
"build": "tsc --noEmit && tsup",
|
||||||
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"check:types": "tsc --noEmit",
|
"check:types": "tsc --noEmit",
|
||||||
"check:lint": "eslint src --ext .ts,.tsx",
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"check:format": "prettier --check \"**/*.{ts,tsx,md}\"",
|
"fix:lint": "eslint . --fix",
|
||||||
"fix:lint": "eslint src --ext .ts,.tsx --fix",
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
"fix:format": "prettier --write \"**/*.{ts,tsx,md}\""
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@plane/eslint-config": "*",
|
"@plane/eslint-config": "*",
|
||||||
|
|||||||
@ -14,12 +14,15 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup src/index.ts --format esm,cjs --dts --external react --minify",
|
"build": "tsup src/index.ts --format esm,cjs --dts --external react --minify",
|
||||||
"dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react",
|
"dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react",
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build",
|
||||||
"postcss": "postcss styles/globals.css -o styles/output.css --watch",
|
"postcss": "postcss styles/globals.css -o styles/output.css --watch",
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
|
|||||||
@ -3,7 +3,4 @@ module.exports = {
|
|||||||
root: true,
|
root: true,
|
||||||
extends: ["@plane/eslint-config/library.js"],
|
extends: ["@plane/eslint-config/library.js"],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
|
||||||
project: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -11,9 +11,14 @@
|
|||||||
"dist/**"
|
"dist/**"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup ./src/index.ts --format esm,cjs --dts --external react --minify",
|
"build": "tsc --noEmit && tsup --minify",
|
||||||
"lint": "eslint src --ext .ts,.tsx",
|
"dev": "tsup --watch",
|
||||||
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
|
"check:types": "tsc --noEmit",
|
||||||
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"fix:lint": "eslint . --fix",
|
||||||
|
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@plane/constants": "*",
|
"@plane/constants": "*",
|
||||||
|
|||||||
8
packages/utils/tsup.config.ts
Normal file
8
packages/utils/tsup.config.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { defineConfig } from "tsup";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
entry: ["src/index.ts"],
|
||||||
|
format: ["esm", "cjs"],
|
||||||
|
dts: true,
|
||||||
|
external: ["react"],
|
||||||
|
});
|
||||||
35
turbo.json
35
turbo.json
@ -24,23 +24,38 @@
|
|||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": [".next/**", "dist/**"]
|
"outputs": [".next/**", "dist/**"]
|
||||||
},
|
},
|
||||||
"develop": {
|
|
||||||
"cache": false,
|
|
||||||
"persistent": true,
|
|
||||||
"dependsOn": ["^build"]
|
|
||||||
},
|
|
||||||
"dev": {
|
"dev": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"persistent": true,
|
"persistent": true
|
||||||
"dependsOn": ["^build"]
|
},
|
||||||
|
"check:types": {
|
||||||
|
"dependsOn": ["^build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"check:lint": {
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"check:format": {
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"check": {
|
||||||
|
"dependsOn": ["check:format", "check:lint", "check:types"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"fix:lint": {
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"fix:format": {
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"fix": {
|
||||||
|
"dependsOn": ["fix:format", "fix:lint"],
|
||||||
|
"cache": false
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"lint": {
|
|
||||||
"outputs": []
|
|
||||||
},
|
|
||||||
"start": {
|
"start": {
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user