Skip to content

Commit

Permalink
Add cache for building
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-wosinek committed Mar 28, 2023
1 parent cb70876 commit 3728615
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Expand Up @@ -21,4 +21,10 @@ jobs:
key: ng-project-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- "node_modules"
- restore_cache:
key: ng-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
- run: npm run build
- save_cache:
key: ng-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- ".angular/cache"
6 changes: 6 additions & 0 deletions angular.json
Expand Up @@ -94,5 +94,11 @@
}
}
}
},
"cli": {
"cache": {
"enabled": true,
"environment": "all"
}
}
}

0 comments on commit 3728615

Please sign in to comment.