Whalebird-desktop-client-ma.../.circleci/config.yml

25 lines
696 B
YAML

version: 2
jobs:
build:
docker:
- image: node:9-slim
working_directory: /var/opt/app
steps:
- checkout
- restore_cache:
name: Restoring cache - node_modules
keys:
- node_modules-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
- run:
name: Install packages
command: npm install
- save_cache:
name: Saving cache - node_modules
key: node_modules-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run:
name: Eslint
command: NODE_ENV=production npm run lint