Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Savin apsavin

View GitHub Profile
@apsavin
apsavin / withStyles.js
Created Feb 14, 2019
Themes for isomorphic-style-loader
View withStyles.js
// @flow
import * as React from 'react';
import PropTypes from 'prop-types';
const contextTypes = {
insertCss: PropTypes.func,
};
type StylesContextType = KeyValueOfType<Object>;
const { Provider, Consumer } = React.createContext<StylesContextType>({});
@apsavin
apsavin / gulpfile.js
Created Dec 27, 2014
gulp file for bnsf project
View gulpfile.js
var gulp = require('gulp'),
nodemon = require('gulp-nodemon'),
shell = require('gulp-shell');
gulp.task('build', shell.task([
'bem make'
]));
var nodemonInstance;
gulp.task('run', ['build'], function () {
You can’t perform that action at this time.