Skip to content

Commit

Permalink
ci tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Mar 12, 2019
1 parent 78fdd86 commit 617e810
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
- *restore_cache
- *npm_install
- run: npm run build
- store_artifacts:
path: ./dist
- *save_cache

build_storybook:
Expand All @@ -67,6 +69,8 @@ jobs:
- *restore_cache
- *npm_install
- run: npm run build-storybook
- store_artifacts:
path: ./storybook-static

test:
<<: *job_defaults
Expand All @@ -75,6 +79,10 @@ jobs:
- *restore_cache
- *npm_install
- run: npm test -- --runInBand --no-cache --coverage
- store_test_results:
path: ./coverage
- store_artifacts:
path: ./coverage

workflows:
version: 2
Expand Down
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"autoprefixer": "^9.4.10",
"gh-pages": "^2.0.1",
"jest": "^24.1.0",
"jest-junit": "^6.3.0",
"moment": "^2.24.0",
"node-sass": "^4.11.0",
"postcss-focus-visible": "^4.0.0",
Expand All @@ -123,6 +124,12 @@
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
"coveragePathIgnorePatterns": [
"<rootDir>/.storybook/",
"<rootDir>/storybook-static/",
"<rootDir>/dist/",
"<rootDir>/node_modules/"
],
"setupFilesAfterEnv": [
"react-testing-library/cleanup-after-each.js"
],
Expand All @@ -135,6 +142,14 @@
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
],
"reporters": [
"default",
[
"jest-junit", {
"outputDirectory": "./coverage"
}
]
],
"moduleFileExtensions": [
"ts",
"tsx",
Expand Down
9 changes: 8 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ export default [
autoprefixer()
]
}),
typescript(),
typescript({
clean: true,
exclude: [
'*.d.ts',
'**/*.d.ts',
'**/*.story.tsx'
]
}),
resolve(),
sourceMaps()
]
Expand Down

0 comments on commit 617e810

Please sign in to comment.