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
browserify x.js y.js -p [ factor-bundle -o bundle/x.js -o bundle/y.js ] \ | |
-o bundle/common.js |
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
(function e(t, n, r) { | |
// 省略 | |
})({ | |
1: [function(require, module, exports) { | |
var $ = require("jquery") | |
console.log($(".foo")) | |
}, { | |
"jquery": undefined | |
}] | |
}, {}, [1]); |
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 js-beautify |
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 semver = require("semver") | |
describe("何らかのテスト", function(){ | |
var itFn = it | |
if(semver(process.version, ' < 0.12')){ | |
itFn = it.skip | |
} | |
itFn("0.12以上ならやるテスト", function(){ | |
// test... | |
}) |
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
machine: | |
node: | |
version: 0.12.0 | |
dependencies: | |
pre: | |
- if [ $CIRCLE_NODE_INDEX == "1" ] ; then nvm alias default iojs-v1.3.0 ; fi | |
test: | |
override: |
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
div { | |
-webkit-box-shadow: 0px 0px 10px rgba(255,0,0,.5); | |
-moz-box-shadow: 0px 0px 10px rgba(255,0,0,.5); | |
box-shadow: 0px 0px 10px rgba(255,0,0,.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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin border-title($color: "black"){ | |
border: 1px dotted #{$color}; | |
color: #{$color} | |
} |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.3) | |
// ---- | |
.message-box{ | |
.fuga{ | |
.jast-hoge-hoge & | |
{ | |
color :red; |
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
class Chart extends React.Component{ | |
constructor(){ | |
super() | |
this.chartClassName = "chart" | |
this.renderer = new ChartistRenderer() | |
} | |
componentDidMount(){ | |
this.renderChart() | |
} | |
componentDidUpdate(){ |
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
gulp.task('install', function(cb){ | |
gulp.src(["./bower.json"]) | |
.pipe(install()) | |
.on('finish', function(){ | |
cb(); | |
}); | |
}); | |
}); |
NewerOlder