Skip to content

Instantly share code, notes, and snippets.

View apsavin's full-sized avatar

Alexander Savin apsavin

View GitHub Profile
@apsavin
apsavin / withStyles.js
Created February 14, 2019 12:21
Themes for isomorphic-style-loader
// @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 December 27, 2014 14:43
gulp file for bnsf project
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 () {