-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
30 lines (28 loc) · 802 Bytes
/
gulpfile.js
File metadata and controls
30 lines (28 loc) · 802 Bytes
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
const gulp = require('gulp');
const concat = require('gulp-concat');
const path = require('path');
const fs = require('fs');
const uglify = require('gulp-uglify')
let files = fs.readdirSync('./static/scripts')
.map(item => {
return './static/scripts/'+item;
});
gulp.task('default', function() {
gulp.src(
[
'./static/scripts/converter.js',
'./static/scripts/button_mapping.js',
'./static/scripts/editor_gutter_setup.js',
'./static/scripts/editor_setup.js',
'./static/scripts/gdb_events.js',
'./static/scripts/manage_code.js',
'./static/scripts/watch_table_handler.js',
'./static/scripts/memory_table_handler.js',
'./static/scripts/memory_var_x.js',
'./static/scripts/main_logic.js'
]
)
.pipe(concat('all.js'))
.pipe(uglify())
.pipe(gulp.dest('./static/dist/'))
});