Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flolu/bazel-mongodb-memory-server
How to Make Bazel Cache the node_modules/.cache Directory?
https://github.com/flolu/bazel-mongodb-memory-server
bazel jasmine mongodb typescript
Last synced: 2 days ago
JSON representation
How to Make Bazel Cache the node_modules/.cache Directory?
- Host: GitHub
- URL: https://github.com/flolu/bazel-mongodb-memory-server
- Owner: flolu
- Created: 2020-09-17T08:17:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T15:25:47.000Z (over 4 years ago)
- Last Synced: 2024-11-11T08:21:44.241Z (2 months ago)
- Topics: bazel, jasmine, mongodb, typescript
- Language: TypeScript
- Homepage: https://stackoverflow.com/questions/63941451
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Setup
```
yarn install
```## Run Tests with Plain Jasmine
```
yarn test:jasmine
```Takes ~2 seconds
## Run Tests with Bazel
```
yarn test
```Takes **minutes**, because [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server) always re-downloads `mongod` binaries.
And after changing + re-running the test, it downloads the binary all over again.
# Problem
## How to configure Bazel, such that it won't re-download the binaries every time?
In the [documentation](https://github.com/nodkz/mongodb-memory-server#mongodb-memory-server) they state, that the binary is stored in `node_modules/.cache/mongodb-binaries`. Thus my guess is that Bazel won't cache the `node_modules/.cache` directory.