Skip to content

Commit

Permalink
setup npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fgandellini committed Jun 9, 2024
1 parent b3706f7 commit 0864055
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitAny": true,
"noUncheckedIndexedAccess": true
"noUncheckedIndexedAccess": true,
"esModuleInterop": true
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"npm": "v10.2.4"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "npm t --workspaces",
"build": "npm run build --workspace @2048/react",
"dev": "npm run dev --workspace @2048/react",
"start": "npm run dev"
},
"keywords": [
"2048",
Expand Down
3 changes: 2 additions & 1 deletion packages/game-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A Typescript implementation of the 2048 game engine",
"main": "src/index.ts",
"scripts": {
"test": "vitest"
"test": "vitest run",
"test:watch": "vitest watch"
},
"keywords": [
"2048",
Expand Down

0 comments on commit 0864055

Please sign in to comment.