This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
// Near the bottom of the file, before the `module.exports`, | |
// paste in the following code: | |
const requestProcessor = Object.assign( | |
{}, | |
{ | |
entry: './app/request-processor.js', | |
target: 'node', | |
output: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In your project's /web/webpack directory | |
/* eslint-env node */ | |
/* eslint-disable import/no-commonjs */ | |
const path = require('path') | |
module.exports = { | |
entry: './app/request-processor.js', | |
target: 'node', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Resources... | |
# CloudFrontDistribution... | |
# Properties... | |
# DistributionConfig... | |
# ... | |
DefaultCacheBehavior: | |
# ... | |
ForwardedValues: | |
Cookies: | |
Foreward: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jest.mock('react-dom', () => ({ | |
findDOMNode() { | |
return { | |
querySelectorAll: () => [], | |
contains: () => true | |
} | |
} | |
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bunch of imports... | |
/** | |
* Add these into the top of any container, and then add `<MyForm />` | |
* anywhere into the component to rendner the form. | |
*/ | |
import Button from 'progressive-web-sdk/dist/components/button' | |
import Field from 'progressive-web-sdk/dist/components/field' | |
import FieldRow from 'progressive-web-sdk/dist/components/field-row' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {PropTypes} from 'react'; | |
import classnames from 'classnames'; | |
import utilityClasses from './utilityClasses'; | |
const Card = ({children, utilityClasses}) => { // how do we grab utility props, i.e. `boxShadow`, `paddingTop`, etc? | |
utilityClasses = { | |
...utilityClasses, // probably returns mostly false, except for some defaults? | |
'padding-all': 2, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extending Selectors that use trailing ampersands | |
// ================================================ | |
// Purpose | |
// ------- | |
// | |
// To see what the final rendered output of extending | |
// modules that include trailing ampersands in a deeply | |
// nested selector. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rem (Mixin) | |
// ----------- | |
// | |
// Return font-size with a rem value based on the desired pixel value, as well | |
// as a fallback font-size value in em units (for IE8). | |
// | |
// Usage | |
// | |
// h1 { | |
// @include rem(font-size, 25, $fallback: false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(brief description / PR title) | |
Status: **Ready for Code Review** | |
Owners: **(Github @<name>s of all relevant sub-contractor employees)** | |
Reviewers: **(GitHub @<name>s of all reviewers)** | |
JIRA: [JIRA-ticket](https://mobify.atlassian.net/browse/JIRA-ticket) | |
## Changes | |
- (change1) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stats": [ | |
{ | |
"name": "speedindex", | |
"budget": 1000, | |
"points": [ | |
{ | |
"id": 1, | |
"datetime": "20111001", | |
"value": 1000, |
NewerOlder