Skip to content

Commit

Permalink
Merge pull request #42 from tamagui/feature/husky-pre-push
Browse files Browse the repository at this point in the history
Feature/husky pre push
  • Loading branch information
jonsherrard authored Oct 1, 2024
2 parents 1a41bbd + f445cb2 commit 723752b
Show file tree
Hide file tree
Showing 5 changed files with 2,220 additions and 1,927 deletions.
Empty file added .husky/pre-commit
Empty file.
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn test
3 changes: 0 additions & 3 deletions apps/next/__tests__/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ test('Next.js build completes', () => {
expect(buildOutput).toContain('Next.js 14')
expect(buildOutput).toContain('Creating an optimized production build')

// Check for Tamagui build output
expect(buildOutput).toContain('[tamagui] built config and components')

// Check for route information
expect(buildOutput).toContain('Route (app)')
expect(buildOutput).toContain('Route (pages)')
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"upgrade:tamagui": "yarn up '*tamagui*'@latest '@tamagui/*'@latest react-native-web-lite@latest",
"upgrade:tamagui:canary": "yarn up '*tamagui*'@canary '@tamagui/*'@canary react-native-web-lite@canary",
"check-deps": "check-dependency-version-consistency .",
"test": "vitest"
"test": "vitest run",
"test:watch": "vitest",
"prepare": "husky"
},
"resolutions": {
"react": "^18.3.1",
Expand All @@ -33,17 +35,16 @@
"@manypkg/cli": "^0.21.4",
"check-dependency-version-consistency": "^4.1.0",
"eslint": "^9.3.0",
"husky": "^9.1.6",
"node-gyp": "^10.1.0",
"prettier": "^3.3.3",
"turbo": "^1.13.4",
"typescript": "^5.6.2"
"typescript": "^5.6.2",
"vitest": "^2.1.1"
},
"packageManager": "[email protected]",
"engines": {
"node": "22",
"npm": "10.8"
},
"devDependencies": {
"vitest": "^2.1.1"
}
}
Loading

0 comments on commit 723752b

Please sign in to comment.