-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-watch.html
54 lines (50 loc) · 1.79 KB
/
gulp-watch.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script type="text/javascript">
RED.nodes.registerType('gulp watch',{
category: 'gulp',
//color: '#cf4646',
color: '#FFF',
defaults: {
name: {value:""},
globs: {value:"", required:true },
options: {value: "{}" , validate: RED.validators.json() }
},
inputs:0,
outputs:1,
icon: "gulp-watch.png",
label: function() {
return this.name||"gulp watch";
}
});
</script>
<script type="text/x-red" data-template-name="gulp watch">
<style>
.form-row select, .form-row textarea{ width: 70%; }
</style>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-globs"><i class="icon-tag"></i> Glob </label>
<input type="text" id="node-input-globs" placeholder="Path">
</div>
<div class="form-row">
<label for="node-input-options"><i class="icon-cog"></i> Options (json) </label>
<textarea id="node-input-options" placeholder="Options"></textarea>
</div>
</script>
<script type="text/x-red" data-help-name="gulp watch">
<h4> <strong> Description </strong> </h4>
<p>
Watch files and run flow when a file changes.
</p>
<p>
You need to install <a href="http://gulpjs.com/">gulp</a> to make it work.
Read more <a href="https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md">here</a>
</p>
<p>
Please, refer to gulp documentation.
<br>
<a href="https://github.com/gulpjs/gulp/blob/master/docs/API.md#gulpwatchglob--opts-tasks-or-gulpwatchglob--opts-cb">gulp.watch()</a>
</p>
</script>