Skip to content

Commit

Permalink
feat: create http front cache package (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassioFront authored Nov 4, 2024
1 parent 42e85a3 commit 0e835e3
Show file tree
Hide file tree
Showing 29 changed files with 6,967 additions and 5,860 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ This project aims to create a market of shared JavaScript libraries to help you
## Packages

- [Linters](packages/linters/README.md) - A set of linters configs to be used in our JavaScript projects
- [http-front-cache](packages/http-front-cache/README.md) - Utility was created to provide a simple and efficient way to cache the results of service functions in the browser


## Development

Expand Down
5 changes: 5 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { getJestProjectsAsync } from '@nx/jest'

export default async () => ({
projects: await getJestProjectsAsync(),
})
3 changes: 3 additions & 0 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const nxPreset = require('@nx/jest/preset').default

module.exports = { ...nxPreset }
30 changes: 29 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
},
"test": {
"inputs": ["default", "^default"]
},
"@nx/vite:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^default"]
}
},
"workspaceLayout": {
Expand Down Expand Up @@ -35,5 +40,28 @@
"cacheableOperations": ["build", "lint", "test"]
}
}
}
},
"release": {
"version": {
"preVersionCommand": "npx nx run-many -t build"
}
},
"plugins": [
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "build",
"testTargetName": "test",
"serveTargetName": "serve",
"previewTargetName": "preview",
"serveStaticTargetName": "serve-static"
}
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "jest:test"
}
}
]
}
Loading

0 comments on commit 0e835e3

Please sign in to comment.