Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
{ | |
// Config for IDE to reload | |
"compileOnSave": true, | |
"exclude": [ | |
// Specifies an array of filenames or patterns that should be skipped when resolving include. | |
// Default: | |
// ["node_modules", "bower_components", "jspm_packages"], plus the value of outDir if one is specified. | |
"**/*.spec.ts", | |
"node_modules" | |
], |
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
import React from 'react'; | |
import { RichUtils, Modifier, EditorState, SelectionState } from 'draft-js'; | |
function isURL(text) { | |
return text.startsWith('http://'); // insert your favorite library here | |
} | |
/* | |
Function you can call from your toolbar or "link button" to manually linkify | |
the selected text with an "explicit" flag that prevents autolinking from | |
changing the URL if the user changes the link text. |
import {Action, ActionCreator, Dispatch} from 'redux'; | |
import {ThunkAction} from 'redux-thunk'; | |
// Redux action | |
const reduxAction: ActionCreator<Action> = (text: string) => { | |
return { | |
type: SET_TEXT, | |
text | |
}; | |
}; |
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |