Skip to content

Instantly share code, notes, and snippets.

View bjankord's full-sized avatar
🎵
Chillin'

Brett Jankord bjankord

🎵
Chillin'
View GitHub Profile
@bjankord
bjankord / tabs.js
Created November 5, 2017 02:42
Disabling css modules for global CSS via https://twitter.com/kylewelch/status/923586056016093184
import 'rc-tabs/assets/index.css?global';
c:\installs\workspaces\dustin-terra\terra-core>npm test
> terra-core@0.1.0 pretest c:\installs\workspaces\dustin-terra\terra-core
> npm run lint
> terra-core@0.1.0 lint c:\installs\workspaces\dustin-terra\terra-core
> npm run lint:js && npm run lint:scss
yarn install v1.0.1
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] 🔗 Linking dependencies...
warning "ajv-keywords@1.5.1" has incorrect peer dependency "ajv@>=4.10.0".
warning "postcss-reporter@4.0.0" has incorrect peer dependency "postcss@^6.0.0".
warning "babel-loader@7.1.2" has incorrect peer dependency "webpack@2 || 3".
warning "extract-text-webpack-plugin@2.1.2" has incorrect peer dependency "webpack@^2.2.0".
warning "html-webpack-plugin@2.30.1" has incorrect peer dependency "webpack@1 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3".
@bjankord
bjankord / test-failures.sh
Created September 11, 2017 14:27
Test failures with yarn
TEST FAILURE: 4 assertions failed, 4907 passed. (10m 37s)
✖ nightwatch/alert-spec
- [@tiny] Displays a default alert with the provided text (9.842s)
Testing if element <#defaultAlert > div[class*="body"] > div[class*="section"] > strong[class*="title"]> contains text: "Alert.". after 1000 milliseconds. - expected "Alert." but got: "Terra.alert.alert"
at Object.Displays a default alert with the provided text (/Users/bj031910/repos/terra-core/packages/terra-alert/tests/nightwatch/alert-spec.js:13:20)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
SKIPPED:
terra-ui.com|master ⇒ npm install
> terra-ui_com@0.0.0 postinstall /Users/bj031910/repos/terra-ui.com
> cd client && npm install
- terra-i18n-plugin@1.2.0 node_modules/terra-site/node_modules/terra-i18n-plugin
terra_ui_com@ /Users/bj031910/repos/terra-ui.com/client
├─┬ terra-clinical-site@1.3.2
│ ├── terra-app-delegate@1.4.0
│ ├─┬ terra-button@1.6.0
import React from 'react';
import Badge from 'terra-badge';
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live';
const BadgeIntentExample = (`
<div>
<Badge text="Default" />
{' '}
<Badge intent="primary" text="Primary" />
{' '}
@bjankord
bjankord / webpack-config.js
Created August 12, 2017 00:24
webpack-config.js
const webpack = require('webpack');
const path = require('path');
const Autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const I18nAggregatorPlugin = require('terra-i18n-plugin');
const i18nSupportedLocales = require('terra-i18n/lib/i18nSupportedLocales');
const CustomProperties = require('postcss-custom-properties');
@bjankord
bjankord / toggler.jsx
Last active June 21, 2017 18:00
Toggler with inert aria-hidden content
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import AnimateHeight from 'react-animate-height';
import 'terra-base/lib/baseStyles';
import './Toggler.scss';
const propTypes = {
/**
* Content in the body of the toggler component that will be expanded or collapsed
 // get filepath for every svg
 /* eslint-disable import/no-extraneous-dependencies */
-var svgs = _fs2.default.readdirSync(_config.TerraIcon.svgDir
+var svgs = _fs2.default.readdirSync(_config.TerraIcon.svgDir)
 // Only load svg files
-).filter(function (f) {
+.filter(function (f) {
     return _path2.default.extname(f) === '.svg';
-}