Skip to content

Commit

Permalink
Add Storybook VRT
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed May 15, 2020
1 parent bd51395 commit 4dd3337
Show file tree
Hide file tree
Showing 18 changed files with 630 additions and 812 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,10 @@ jobs:
vrt:
needs: [build, lint, test, typecheck]
env:
PREVIOUS_SHA: ${{ github.event.pull_request.base.sha }}
CURRENT_SHA: ${{ github.sha }}
CHANGE_URL: ${{ github.event.pull_request.html_url }}
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install
- run: npm run build
- run: node_modules/.bin/happo-ci
- run: npm run vrt
19 changes: 0 additions & 19 deletions .happo.js

This file was deleted.

1 change: 0 additions & 1 deletion .node-version

This file was deleted.

7 changes: 4 additions & 3 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { addDecorator, configure } from '@storybook/html';
import { configure } from '@storybook/html';
import { defineCustomElements as defineInit } from '@manifoldco/manifold-init/loader/index.mjs';
import '../dist/manifold-plan-table/manifold-plan-table.css';
import { defineCustomElements as definePlanTable } from '../loader';
import './styles.css';
import { defineCustomElements as definePlanTable } from '../dist/esm-es5/loader.mjs';

// Init web components
defineInit();
Expand All @@ -11,7 +12,7 @@ definePlanTable();
const req = require.context('../stories', true, /\.stories\.js$/);

function loadStories() {
req.keys().forEach(filename => req(filename));
req.keys().forEach((filename) => req(filename));
}

configure(loadStories, module);
3 changes: 3 additions & 0 deletions .storybook/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
font-family: sans-serif;
}
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- `preview` mode for loading mocked data

### Fixed
- `deepmerge` dependency missing which caused errors
- Default Button styling improved
- Input width made consistent
- Loading state styling improved

## [0.4.0] - 2020-05-15
### Added
- Adds `init` and `update` event hooks for users

### Changed
Expand Down Expand Up @@ -38,7 +48,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Added
- Initial release

[Unreleased]: https://github.com/manifoldco/manifold-plan-table/compare/v0.3.0...HEAD
[Unreleased]: https://github.com/manifoldco/manifold-plan-table/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/manifoldco/manifold-plan-table/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/manifoldco/manifold-plan-table/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/manifoldco/manifold-plan-table/compare/v0.0.16...v0.2.0
[0.0.16]: https://github.com/manifoldco/manifold-plan-table/compare/v0.0.1...v0.0.16
6 changes: 0 additions & 6 deletions happo.setup.js

This file was deleted.

Loading

0 comments on commit 4dd3337

Please sign in to comment.