Skip to content

Commit 5d85e8f

Browse files
committed
chore: add package-specific workspace lint/format tasks and update workspace docs
1 parent 5dfbd56 commit 5d85e8f

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ cd ../frontend && npm install
109109
- `npm run clean` - remove workspace install artifacts
110110
- `npm run workspace:status` - list workspace packages
111111

112+
Package-specific workspace commands:
113+
- `npm run format:backend` / `npm run format:frontend` - run formatting in named workspace packages
114+
- `npm run test:integration` - run integration tests defined in `tests/integration`
115+
112116
> This repository includes root-level formatting and linting configuration: `.editorconfig`, `.prettierrc`, `.eslintrc.json`, `.eslintignore`, and `.prettierignore`.
113117
> Run `npm run install` from the repository root and avoid running package installs from individual subfolders unless you need package-specific dependency changes.
114118

app/frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "eslint",
10+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
1011
"analyze": "cross-env ANALYZE=true next build",
1112
"analyze:windows": "set ANALYZE=true && next build",
1213
"lighthouse": "lighthouse http://localhost:3000 --output=html --output-path=./lighthouse-report.html --chrome-flags='--headless'",

app/image-service/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "index.js",
66
"scripts": {
77
"start": "node index.js",
8-
"dev": "nodemon index.js"
8+
"dev": "nodemon index.js",
9+
"lint": "eslint . --ext .js,.mjs",
10+
"format": "prettier --write \"**/*.{js,json,md}\""
911
},
1012
"dependencies": {
1113
"@aws-sdk/client-s3": "^3.385.0",

tests/integration/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "node test/run-tests.js",
8+
"lint": "npm run test:lint",
9+
"format": "prettier --write \"**/*.{js,json,md}\"",
810
"test:cross-contract": "echo 'Cross-contract tests not implemented for Soroban contracts yet'",
911
"test:token-interactions": "echo 'Token interaction tests not implemented for Soroban contracts yet'",
1012
"test:end-to-end": "echo 'End-to-end tests not implemented for Soroban contracts yet'",

0 commit comments

Comments
 (0)