Skip to content

Commit

Permalink
feat: improve dev/build process with new development scripts (#253)
Browse files Browse the repository at this point in the history
* feat: add "watch:all" script to root package.json

* feat: add "dev:{example}" scripts for examples

* feat: separate build scripts for packages and examples

* chore: rename "watch:all" to "watch"

* chore: rename "dev:" scripts to "example:"

* feat: add "dev" script as an alias for "watch"
  • Loading branch information
drichar authored Sep 6, 2024
1 parent 9768382 commit 0c9f976
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@
"packageManager": "pnpm@9.9.0",
"type": "module",
"scripts": {
"build": "pnpm -r build",
"build": "pnpm build:packages && pnpm build:examples",
"build:packages": "pnpm -r --filter '@txnlab/*' build",
"build:examples": "pnpm -r --filter 'use-wallet-example-*' build",
"watch": "pnpm -r --filter '@txnlab/*' --parallel start",
"dev": "pnpm run watch",
"test": "pnpm -r --if-present test",
"lint": "pnpm -r lint",
"prettier": "prettier --check .",
"typecheck": "pnpm -r typecheck"
"typecheck": "pnpm -r typecheck",
"example:ts": "pnpm --filter 'use-wallet-example-vanilla-ts' dev",
"example:react": "pnpm --filter 'use-wallet-example-react' dev",
"example:solid": "pnpm --filter 'use-wallet-example-solid' dev",
"example:vue": "pnpm --filter 'use-wallet-example-vue' dev",
"example:nextjs": "pnpm --filter 'use-wallet-example-nextjs' dev",
"example:nuxt": "pnpm --filter 'use-wallet-example-nuxt' dev"
},
"devDependencies": {
"@testing-library/jest-dom": "6.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/use-wallet-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup",
"start": "tsup src/index.ts --watch",
"start": "tsup src/index.tsx --watch",
"test": "vitest",
"test:watch": "vitest --watch",
"lint": "eslint -c '../../.eslintrc.json' '**/*.{js,ts}'",
Expand Down
2 changes: 1 addition & 1 deletion packages/use-wallet-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup",
"start": "tsup src/index.ts --watch",
"start": "tsup src/index.tsx --watch",
"test": "vitest",
"test:watch": "vitest --watch",
"lint": "eslint -c '../../.eslintrc.json' '**/*.{js,ts}'",
Expand Down

0 comments on commit 0c9f976

Please sign in to comment.