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
import gulp from 'gulp'; | |
import browserify from 'browserify'; | |
import babelify from 'babelify'; | |
import source from 'vinyl-source-stream'; | |
gulp.task('default', () => { | |
console.log("default log"); | |
}); | |
gulp.task('build', () => { |
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
"name": "gulp-babel-react", | |
"version": "1.0.0", | |
"description": "gulp+babel+react", | |
"main": "main.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", |
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
import gulp from 'gulp'; | |
import browserify from 'browserify'; | |
import babelify from 'babelify'; | |
import source from 'vinyl-source-stream'; | |
import watchify from 'watchify'; | |
import browserSync from 'browser-sync'; | |
let compile = (isWatch) => { | |
let bundler = browserify('./src/js/app.js', { debug: true }).transform(babelify); |
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
{ | |
"extends": "eslint:recommended", | |
"env": { | |
"es6": true, | |
"node": true, | |
"browser": true, | |
}, | |
"ecmaFeatures": { | |
"jsx": true | |
}, |
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 formatter = function(csv) { | |
var lines = csv.split("\n"); | |
var result = []; | |
for (var i=0; i<lines.length;i++) { | |
var array = str.split(","); | |
var lineResult = []; | |
for (var i=0; i<array.length; i++) { | |
var strVal = array[i]; |
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
// 基本 | |
// どのくらいの数をどの段階に分けるのか指定し、振り分ける | |
// 応用 | |
// 最低限ここまでは値が合ったほうが良い | |
// 最高でもここまでの値で良い | |
/* | |
下記を目指す。 | |
createParagraph(70, 5); |
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
'use strict'; | |
let getUniqueArrayCreator = () => { | |
let store = new Set(); | |
return ({ | |
add: function(...array) { | |
if (!array) { | |
return; | |
} | |
array.forEach(function(item) { | |
if(!item && item === '') { |
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
'use strict'; | |
let getUniqueArray = (str, delimiter) => { | |
let uniqueStore = new Set(); | |
str.split(delimiter).forEach(function(id) { | |
if (id === '' || id === null) { | |
return; | |
} | |
uniqueStore.add(id); | |
}); |
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
#!/bin/sh | |
PYVER=3.4.3 | |
DL_MECAB=/var/tmp | |
PROJECT=project | |
PROJECT_PATH=/var/work | |
PIP_PACKAGE=require_modules | |
set -e |
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
npm i -D eslint eslint-config-airbnb eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-import |
OlderNewer