Skip to content

Commit

Permalink
Merge pull request #12 from lmorchard/4-circleci
Browse files Browse the repository at this point in the history
Initial CircleCI setup
  • Loading branch information
lmorchard committed Oct 11, 2018
2 parents d9bb357 + 61b4bba commit 9e900bc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,22 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:8.11.4
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
- run: npm run build:storybook
- run: zip -r storybook.zip storybook
- store_artifacts:
path: ~/repo/storybook.zip
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -13,6 +13,7 @@ module.exports = {
rules: {
"import/no-named-as-default": "off",
"import/prefer-default-export": "off",
"no-trailing-spaces": "off",
},
overrides: [
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -10,6 +10,7 @@
"storybook": "start-storybook --ci -p 9001 -c .storybook",
"format": "npm-run-all format:*",
"format:js": "prettier --write \"**/*.js\"",
"test": "npm-run-all lint",
"lint": "npm-run-all lint:*",
"lint:css": "stylelint './**/*.css'",
"lint:js": "eslint --color .",
Expand Down

0 comments on commit 9e900bc

Please sign in to comment.