Skip to content

Instantly share code, notes, and snippets.

@harentius
Created May 2, 2018 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harentius/5c49cbb620f8a081a342ebeec0295ebc to your computer and use it in GitHub Desktop.
Save harentius/5c49cbb620f8a081a342ebeec0295ebc to your computer and use it in GitHub Desktop.
version: 2
jobs:
build:
working_directory: ~/attraction-wars-server
docker:
- image: circleci/node:10.0.0
steps:
- checkout
- run:
name: install-npm
command: 'sudo npm install -g npm@latest'
- restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: install-dependencies
command: npm install
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: lint
command: npm run lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment