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
/* | |
* ------------------- | |
* React Chat Scaffold | |
* ------------------- | |
*/ | |
import React from 'react' | |
import xhttp from 'xhttp' | |
/* | |
* Individual message component |
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
.ui-link-list li { | |
display inline-block | |
list-style-type none | |
} | |
.ui-link-list li:before { | |
content ' ' | |
height $type-spacing--regular | |
display inline-block | |
position relative | |
top .2em |
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
var gulp = require('gulp') | |
, config = require('configs/gulp-config') | |
, jshint = require('gulp-jshint') | |
, react = require('gulp-react') | |
, stylish = require('jshint-stylish') | |
gulp.task('lint', function () { | |
var linter = function (script) { |
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
// | |
// Button sizes | |
// | |
button-size($size) { | |
sizes = { | |
largest : 1.9rem 4.5rem | |
larger : 1.6rem 4rem | |
large : 1.3rem 3.6rem | |
regular : 1rem 3rem | |
small : .7rem 2rem |
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
// | |
// New Browserify hotness | |
//--------------------------------------------------------- | |
var gulp = require('gulp') | |
, config = require('../../configs/gulp-config.js') | |
, browserify = require('browserify') | |
, reactify = require('reactify') | |
, watchify = require('watchify') | |
, source = require('vinyl-source-stream') | |
; |
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
// | |
// One gulp config file to rule them all! | |
// No more per-project configs <(^-^<) | |
//--------------------------------------------------------- | |
var path = require('path') | |
, config = {} | |
; | |
// | |
// Globals and per-project base paths |
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
// | |
// Main Stylus task | |
//--------------------------------------------------------- | |
var gulp = require('gulp') | |
, config = require('../../configs/gulp-config') | |
, path = require('path') | |
, nib = require('nib') | |
, stylus = require('gulp-stylus') | |
, plumber = require('gulp-plumber') | |
, notify = require('gulp-notify') |
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
// | |
// Current way to write Gulp and Webpack, totally wtf: | |
// | |
gulp.task('package:stylus', function() { | |
return gulp.src(config.bundle.stylus.src) | |
.pipe(webpack({ | |
watch: true, | |
module: { | |
loaders: [ | |
{ test: /\.css$/, loader: 'css-loader!stylus-loader?paths=node_modules/stylus-loader/' }, |
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
// | |
// Base object helper method to set count and blocks amount | |
// @method constructor | |
// @params int, int | |
//--------------------------------------------------------- | |
function CountNBlocks (c, b) { | |
this.count = (c === undefined) ? LvEnum.num.UNKNOWN: c; | |
this.blks = (b === undefined) ? LvEnum.num.UNKNOWN: b; | |
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
// | |
// Deps | |
//--------------------------------------------------------- | |
var | |
inquirer = require('inquirer'), | |
path = require('path'), | |
exec = require('child_process').exec, | |
spawn = require('child_process').spawn | |
; |