From 3f2a983c6e5439322afe0338821a9dfcaefb4350 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Tue, 28 Mar 2017 19:59:33 -0400 Subject: [PATCH] more caching --- circle.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/circle.yml b/circle.yml index 96fee4272..0aee714bc 100644 --- a/circle.yml +++ b/circle.yml @@ -12,16 +12,24 @@ jobs: - restore_cache: key: ionic-site - run: - name: Prepare ionic-site repo - command: ./scripts/docs/prepare.sh + name: Prepare ionic-site repo + command: ./scripts/docs/prepare.sh - save_cache: - key: ionic-site - paths: - - ~/ionic-site/ + key: ionic-site + paths: + - ~/ionic-site/ + - restore_cache: + key: node_modules - run: name: Install node modules command: npm i - - run: npm run lint + - save_cache: + key: node-modules-{{ checksum "package.json" }} # used cached node_modules if package.json didn't change + paths: + - ~/node_modules/ + - run: + name: Run tslint + command: npm run lint - run: name: Update docs command: ./scripts/docs/update_docs.sh