forked from in-toto/layout-web-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
49 lines (40 loc) · 1.21 KB
/
gulpfile.js
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
/*****************************************************************
<File Name>
gulpfile.js
<Author>
Lukas Puehringer <[email protected]>
<Started>
May 05, 2017
<Copyright>
See LICENSE for licensing information.
<Purpose>
Front-end build tool used to copy third-party JS scripts to
static/vendor from where the app serves them.
TODO:
Add gulp task for scss (styles) compilation (on change)
Currently this is done with a separate command, i.e.
```
sass --watch static/scss/main.scss:static/css/main.scss.css
```
but it would be nice to have all in one place.
<Usage>
```
# Install front-end dependencies (in same directory)
npm install
# Run default gulp task
gulp
```
*****************************************************************/
var gulp = require("gulp");
var js = [
"node_modules/jquery/dist/jquery.js",
"node_modules/bootstrap/dist/js/bootstrap.js",
"node_modules/html5sortable/dist/html5sortable.js",
"node_modules/d3/dist/d3.js",
"node_modules/dagre-d3/dist/dagre-d3.js",
"node_modules/dropzone/dist/dropzone.js",
"node_modules/select2/dist/js/select2.js"
];
gulp.task("default", function() {
return gulp.src(js).pipe(gulp.dest("./static/vendor/"));
});