Skip to content

Instantly share code, notes, and snippets.

@vysinsky
Created May 10, 2018 10:00
Show Gist options
  • Save vysinsky/8aa42b0c1007e0b9915748c962827f34 to your computer and use it in GitHub Desktop.
Save vysinsky/8aa42b0c1007e0b9915748c962827f34 to your computer and use it in GitHub Desktop.
/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js run start --scripts-prepend-node-path=auto
> @dc/ui-library@3.23.3 prestart /Users/vysinm01/work/ui-library
> npm run build:lib:icons && npm run stylus:generate-vars
> @dc/ui-library@3.23.3 build:lib:icons /Users/vysinm01/work/ui-library
> svg-icon-generate --keepFillColor --svgDir src/atoms/icons/svg --destination src/atoms/icons/index.js --template src/atoms/icons/index.template && node ./npm_scripts/fixIconClasses.js
Running SVG Icon generator with the following options:
{
"_": [],
"keepFillColor": true,
"svgDir": "src/atoms/icons/svg",
"destination": "src/atoms/icons/index.js",
"template": "src/atoms/icons/index.template",
"reactPureRender": true,
"radium": true,
"native": false,
"$0": "/Users/vysinm01/work/ui-library/node_modules/.bin/svg-icon-generate"
}
Looking for SVGs in: /Users/vysinm01/work/ui-library/src/atoms/icons/svg
Using Icon template from: /Users/vysinm01/work/ui-library/src/atoms/icons/index.template
Generated Icon component to: src/atoms/icons/index.js
<Icon kind="AddToBasket" />
<Icon kind="Alert" />
<Icon kind="ArrowDown" />
<Icon kind="ArrowRight" />
<Icon kind="Basket" />
<Icon kind="Bell" />
<Icon kind="ChevronRight" />
<Icon kind="Cog" />
<Icon kind="Credit" />
<Icon kind="Cross" />
<Icon kind="CrossCircle" />
<Icon kind="Delivery" />
<Icon kind="DeliverySlot" />
<Icon kind="DeliveryToday" />
<Icon kind="Directions" />
<Icon kind="Download" />
<Icon kind="ExternalLink" />
<Icon kind="Facebook" />
<Icon kind="Flip" />
<Icon kind="GooglePlus" />
<Icon kind="GridView" />
<Icon kind="Heart" />
<Icon kind="Help" />
<Icon kind="HotDealsUK" />
<Icon kind="House" />
<Icon kind="Info" />
<Icon kind="InfoAlternative" />
<Icon kind="List" />
<Icon kind="ListView" />
<Icon kind="LocationPin" />
<Icon kind="Mail" />
<Icon kind="MapMarkerActive" />
<Icon kind="MapMarkerDefault" />
<Icon kind="Menu" />
<Icon kind="MyDetails" />
<Icon kind="MyOrders" />
<Icon kind="Pinterest" />
<Icon kind="Play" />
<Icon kind="Plus" />
<Icon kind="PlusCircle" />
<Icon kind="PriceTag" />
<Icon kind="Print" />
<Icon kind="Search" />
<Icon kind="SelectArrows" />
<Icon kind="Share" />
<Icon kind="SignOut" />
<Icon kind="Spinner" />
<Icon kind="Star" />
<Icon kind="Stores" />
<Icon kind="Target" />
<Icon kind="Tick" />
<Icon kind="Twitter" />
<Icon kind="User" />
<Icon kind="UserOutline" />
> @dc/ui-library@3.23.3 stylus:generate-vars /Users/vysinm01/work/ui-library
> stylus -u foovar src/themes
foovar: generated /Users/vysinm01/work/ui-library/src/themes/currys.js
foovar: generated /Users/vysinm01/work/ui-library/src/themes/pcworld.js
compiled src/themes/currys.css
compiled src/themes/pcworld.css
> @dc/ui-library@3.23.3 start /Users/vysinm01/work/ui-library
> styleguidist server
Loading webpack config from:
/Users/vysinm01/work/ui-library/webpack.config.js
You can now view your style guide in the browser:
Local: http://localhost:3001/
On your network: http://10.14.0.5:3001/
(node:62093) UnhandledPromiseRejectionWarning: Error: [css-blocks] JSXParseError: Error parsing '/Users/vysinm01/work/ui-library/core-js/es6/promise'
Cannot read property '0' of undefined
undefined: Cannot read property '0' of undefined (/Users/vysinm01/work/ui-library/core-js/es6/promise)
at CSSBlocksJSXAnalyzer.<anonymous> (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:91:13)
at Generator.next (<anonymous>)
at /Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:3:12)
at CSSBlocksJSXAnalyzer.crawl (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:65:16)
at CSSBlocksJSXAnalyzer.<anonymous> (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:126:32)
at Generator.next (<anonymous>)
at /Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:3:12)
at CSSBlocksJSXAnalyzer.parse (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:106:16)
at ReadFileContext.fs.readFile [as callback] (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:152:22)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:434:13)
(node:62093) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:62093) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:62093) UnhandledPromiseRejectionWarning: Error: [css-blocks] JSXParseError: Error parsing '/Users/vysinm01/work/ui-library/babel-polyfill'
Cannot read property '0' of undefined
undefined: Cannot read property '0' of undefined (/Users/vysinm01/work/ui-library/babel-polyfill)
at CSSBlocksJSXAnalyzer.<anonymous> (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:91:13)
at Generator.next (<anonymous>)
at /Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:3:12)
at CSSBlocksJSXAnalyzer.crawl (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:65:16)
at CSSBlocksJSXAnalyzer.<anonymous> (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:126:32)
at Generator.next (<anonymous>)
at /Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:3:12)
at CSSBlocksJSXAnalyzer.parse (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:106:16)
at ReadFileContext.fs.readFile [as callback] (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:152:22)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:434:13)
(node:62093) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
(node:62093) UnhandledPromiseRejectionWarning: Error: [css-blocks] JSXParseError: Error parsing '/Users/vysinm01/work/ui-library/node_modules/react-styleguidist/lib/index'
Cannot read property '0' of undefined
undefined: Cannot read property '0' of undefined (/Users/vysinm01/work/ui-library/node_modules/react-styleguidist/lib/index)
at CSSBlocksJSXAnalyzer.<anonymous> (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:91:13)
at Generator.next (<anonymous>)
at /Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:3:12)
at CSSBlocksJSXAnalyzer.crawl (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:65:16)
at CSSBlocksJSXAnalyzer.<anonymous> (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:126:32)
at Generator.next (<anonymous>)
at /Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:7:71
at new Promise (<anonymous>)
at __awaiter (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:3:12)
at CSSBlocksJSXAnalyzer.parse (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/dist/src/Analyzer/index.js:106:16)
at ReadFileContext.fs.readFile [as callback] (/Users/vysinm01/work/ui-library/node_modules/@css-blocks/jsx/src/Analyzer/index.ts:152:22)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:434:13)
(node:62093) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 10)
FAIL Failed to compile
./src/organisms/AddressFinder/AddressFinder.js
Syntax error: Unexpected token (108:28)
106 | if (results !== undefined && results.length > 0) {
107 | const addresses = results.map(
> 108 | address => ({ ...address.addressInfo, postcode: address.postcode })
| ^
109 | );
110 |
111 | for (let i = 0; i < addresses.length; i++) {
./src/organisms/Sticky/Sticky.js
Syntax error: Unexpected token (110:73)
108 |
109 | return (
> 110 | <div className={classNames} style={props.disabled ? {} : { ...style }}>
| ^
111 | {props.children}
112 | </div>
113 | );
./src/organisms/StayInTouchBlock/StayInTouchBlock.js
Syntax error: Unexpected token (139:66)
137 | : !this.state.groups[groupName].isToggleActive;
138 |
> 139 | let items = this.state.groups[groupName].items.map(item => ({ ...item }));
| ^
140 |
141 | const previousState = this.state;
142 | let changedCheckboxes = [];
./src/apps/QuickAccount/SaveForLaterConfirmation/SaveForLaterConfirmation.js
Syntax error: Unexpected token (14:12)
12 | <ProductBlock
13 | product={{
> 14 | ...props.product,
| ^
15 | productName: props.product.name,
16 | imageUrl: props.product.image
17 | }}
./src/organisms/SimilarProducts/SimilarProducts.js
Syntax error: Unexpected token (18:6)
16 |
17 | productsData = productsData.map(product => ({
> 18 | ...product,
| ^
19 | details: product.product_details.split('§')
20 | }));
21 |
./src/organisms/Notification/Notification.js
Syntax error: Unexpected token (22:6)
20 |
21 | this.state = {
> 22 | ...props,
| ^
23 | display: false,
24 | fadeInOut: true,
25 | floating: true,
./src/helpers/index.js
Syntax error: Unexpected token (8:9)
6 | } from './stringHelpers';
7 | export { getCookie, setCookie } from './cookies';
> 8 | export * as dateHelpers from './dateHelpers';
| ^
9 | export { get, post, postJSON, urlWithParams } from './network';
10 | export {
11 | isMSEdge,
./src/config/index.js
Syntax error: Unexpected token, expected { (3:7)
1 | export { loadBitmasks, saveBitmasks } from './bitmasks';
2 | export { minInputLengths, maxInputLengths } from './formItems';
> 3 | export constants from './constants';
| ^
4 | export menuLinks from './menuLinks';
5 | export translations, { replacePlaceholders } from './translations';
6 | export settings from './settings';
./src/index.js
Syntax error: Unexpected token, expected { (8:7)
6 |
7 | /* Molecules */
> 8 | export Alert from './molecules/Alert/Alert';
| ^
9 | export Button from './molecules/Button/Button';
10 | export Box from './molecules/Box/Box';
11 | export Checkbox from './molecules/Checkbox/Checkbox';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment