Skip to content

Commit efd2707

Browse files
committed
chore(gulp): add header
1 parent cb481ac commit efd2707

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ja/gulp/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ gulp.task("sass", function() {
7474
2. 取得したファイルの先頭に"prefix text"という文字列を追加する
7575
3. 変更したファイルを`build/`ディレクトリに出力する
7676

77+
### Stream
78+
7779
[gulp-prefixer.js](#gulp-prefixer.js)を見てみると、`gulpPrefixer`という[Transform Stream](https://nodejs.org/api/stream.html#stream_class_stream_transform "stream.Transform")のインスタンスを返していることが分かります。
7880

7981
Transform Streamというものが出てきましたが、Node.jsのStreamは次の4種類があります。
@@ -103,6 +105,8 @@ Transform Streamというものが出てきましたが、Node.jsのStreamは次
103105
そのため、Node.js Streamには[Object Mode](https://nodejs.org/api/stream.html#stream_object_mode "Object Mode")があり、
104106
JavaScriptのオブジェクトそのものをStreamで流せるようになっています。
105107

108+
### vinyl
109+
106110
gulpでは[vinyl](https://github.com/gulpjs/vinyl "vinyl")オブジェクトがStreamとして流れてきます。
107111
このvinylは _Virtual file format_ というように、データをラップした抽象フォーマットのオブジェクトです。
108112

0 commit comments

Comments
 (0)