Skip to content

Commit 3728615

Browse files
Add cache for building
1 parent cb70876 commit 3728615

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ jobs:
2121
key: ng-project-{{ .Branch }}-{{ checksum "package-lock.json" }}
2222
paths:
2323
- "node_modules"
24+
- restore_cache:
25+
key: ng-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
2426
- run: npm run build
27+
- save_cache:
28+
key: ng-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
29+
paths:
30+
- ".angular/cache"

angular.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,11 @@
9494
}
9595
}
9696
}
97+
},
98+
"cli": {
99+
"cache": {
100+
"enabled": true,
101+
"environment": "all"
102+
}
97103
}
98104
}

0 commit comments

Comments
 (0)