Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(infrastructure): react router screenshots #232

Merged
merged 40 commits into from
Aug 24, 2018

Conversation

moog16
Copy link

@moog16 moog16 commented Aug 20, 2018

fixes #96

@codecov-io
Copy link

codecov-io commented Aug 20, 2018

Codecov Report

Merging #232 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #232   +/-   ##
=======================================
  Coverage   98.86%   98.86%           
=======================================
  Files          23       23           
  Lines         969      969           
  Branches       98       98           
=======================================
  Hits          958      958           
  Misses         11       11
Impacted Files Coverage Δ
packages/select/index.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d43115c...dc40220. Read the comment docs.

"top-app-bar/shortCollapsed": "3565597194402f65bfc48edcea298a49c890c70100befe3ae19dd3cf24f17716",
"top-app-bar/standard": "90534d59d40f8c050aae022e94b0afa022a00d1e00c19e3f92dcc1908efcd831",
"top-app-bar/standardNoActionItems": "9102ece0efc0a040e0dc2b097c66d2ee5ecc9c91759aeb16ea5aa2baabe7307a",
"top-app-bar/standardWithNavigationIconElement": "91b10df9c4faf85ba63c84b1cf82a1c1143a3d8c4ba7ed8af477fabdc65ec25e"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is shorter because chips and material-icon/menu are not in the list. Material-icon/menu is an old test which was removed. Chips not in yet.

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import {MDCSelectFoundation} from '@material/select';
import {MDCSelectFoundation} from '@material/select/dist/mdc.select';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is weird, why is this in this PR

@@ -0,0 +1,32 @@
const {lstatSync, readdirSync} = require('fs');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to just scripts

call it screenshot-directory-reader

and have one public function: read() which returns an array of strings, where each string is a path under test/screenshot

const {getComponents} = require('./component-globber');
const {getMaterialDependencies} = require('./material-dependencies');

function getMaterialExternals() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to just scripts
rename to package-name-converter
with one method: convertToImportPaths(packageNames) which outputs an array of strings. Each string is an import path, e.g. "@material/button/dist/mdc.button". packageNames is also an array of strings, but each string is the name of the package, e.g. "@material/button".

Then do the crazy dictionary objection creation stuff in the webpack config

@@ -0,0 +1,21 @@
const fs = require('fs');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to scripts
rename to package-json-reader
with one method: read which outputs an array of strings, where each string is a package name, e.g. @material/button.

const Home = () => {
return (
<div>
{COMPONENTS.sort().map((componentPath, index) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a comment pointing to webpack config, since this is a global

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants