Simplify gulp dist filter
parent
3b59f397f4
commit
3e181a3012
95
gulpfile.js
95
gulpfile.js
|
@ -199,96 +199,11 @@ function clean_cache() {
|
||||||
// run-sequence.
|
// run-sequence.
|
||||||
function dist_src() {
|
function dist_src() {
|
||||||
var distSources = [
|
var distSources = [
|
||||||
// CSS files
|
'./src/**/*',
|
||||||
'./src/css/main.css',
|
'!./src/css/dropdown-lists/LICENSE',
|
||||||
'./src/css/tabs/power.css',
|
'!./src/css/font-awesome/css/font-awesome.css',
|
||||||
'./src/css/tabs/firmware_flasher.css',
|
'!./src/css/opensans_webfontkit/*.{txt,html}',
|
||||||
'./src/css/tabs/onboard_logging.css',
|
'!./src/support/**'
|
||||||
'./src/css/tabs/receiver.css',
|
|
||||||
'./src/css/tabs/cli.css',
|
|
||||||
'./src/css/tabs/servos.css',
|
|
||||||
'./src/css/tabs/adjustments.css',
|
|
||||||
'./src/css/tabs/configuration.css',
|
|
||||||
'./src/css/tabs/auxiliary.css',
|
|
||||||
'./src/css/tabs/pid_tuning.css',
|
|
||||||
'./src/css/tabs/transponder.css',
|
|
||||||
'./src/css/tabs/gps.css',
|
|
||||||
'./src/css/tabs/led_strip.css',
|
|
||||||
'./src/css/tabs/sensors.css',
|
|
||||||
'./src/css/tabs/osd.css',
|
|
||||||
'./src/css/tabs/motors.css',
|
|
||||||
'./src/css/tabs/receiver_msp.css',
|
|
||||||
'./src/css/tabs/logging.css',
|
|
||||||
'./src/css/tabs/landing.css',
|
|
||||||
'./src/css/tabs/setup_osd.css',
|
|
||||||
'./src/css/tabs/help.css',
|
|
||||||
'./src/css/tabs/failsafe.css',
|
|
||||||
'./src/css/tabs/ports.css',
|
|
||||||
'./src/css/tabs/setup.css',
|
|
||||||
'./src/css/opensans_webfontkit/fonts.css',
|
|
||||||
'./src/css/dropdown-lists/css/style_lists.css',
|
|
||||||
'./src/css/font-awesome/css/font-awesome.min.css',
|
|
||||||
'./src/css/font-awesome/fonts/*',
|
|
||||||
'./src/css/opensans_webfontkit/*.{eot,svg,ttf,woff,woff2}',
|
|
||||||
|
|
||||||
// JS files
|
|
||||||
'./src/js/injected_methods.js',
|
|
||||||
'./src/js/data_storage.js',
|
|
||||||
'./src/js/workers/hex_parser.js',
|
|
||||||
'./src/js/fc.js',
|
|
||||||
'./src/js/port_handler.js',
|
|
||||||
'./src/js/port_usage.js',
|
|
||||||
'./src/js/serial.js',
|
|
||||||
'./src/js/gui.js',
|
|
||||||
'./src/js/huffman.js',
|
|
||||||
'./src/js/default_huffman_tree.js',
|
|
||||||
'./src/js/model.js',
|
|
||||||
'./src/js/serial_backend.js',
|
|
||||||
'./src/js/msp/MSPCodes.js',
|
|
||||||
'./src/js/msp.js',
|
|
||||||
'./src/js/msp/MSPHelper.js',
|
|
||||||
'./src/js/backup_restore.js',
|
|
||||||
'./src/js/peripherals.js',
|
|
||||||
'./src/js/protocols/stm32.js',
|
|
||||||
'./src/js/protocols/stm32usbdfu.js',
|
|
||||||
'./src/js/localization.js',
|
|
||||||
'./src/js/boards.js',
|
|
||||||
'./src/js/RateCurve.js',
|
|
||||||
'./src/js/Features.js',
|
|
||||||
'./src/js/Beepers.js',
|
|
||||||
'./src/js/release_checker.js',
|
|
||||||
'./src/js/tabs/adjustments.js',
|
|
||||||
'./src/js/tabs/auxiliary.js',
|
|
||||||
'./src/js/tabs/cli.js',
|
|
||||||
'./src/js/tabs/configuration.js',
|
|
||||||
'./src/js/tabs/failsafe.js',
|
|
||||||
'./src/js/tabs/firmware_flasher.js',
|
|
||||||
'./src/js/tabs/gps.js',
|
|
||||||
'./src/js/tabs/help.js',
|
|
||||||
'./src/js/tabs/landing.js',
|
|
||||||
'./src/js/tabs/led_strip.js',
|
|
||||||
'./src/js/tabs/logging.js',
|
|
||||||
'./src/js/tabs/map.js',
|
|
||||||
'./src/js/tabs/motors.js',
|
|
||||||
'./src/js/tabs/onboard_logging.js',
|
|
||||||
'./src/js/tabs/osd.js',
|
|
||||||
'./src/js/tabs/pid_tuning.js',
|
|
||||||
'./src/js/tabs/ports.js',
|
|
||||||
'./src/js/tabs/power.js',
|
|
||||||
'./src/js/tabs/receiver.js',
|
|
||||||
'./src/js/tabs/receiver_msp.js',
|
|
||||||
'./src/js/tabs/sensors.js',
|
|
||||||
'./src/js/tabs/servos.js',
|
|
||||||
'./src/js/tabs/setup.js',
|
|
||||||
'./src/js/tabs/setup_osd.js',
|
|
||||||
'./src/js/tabs/transponder.js',
|
|
||||||
'./src/js/main.js',
|
|
||||||
'./src/js/eventPage.js',
|
|
||||||
|
|
||||||
// Src
|
|
||||||
'./src/*.html',
|
|
||||||
'./src/tabs/*.html',
|
|
||||||
'./src/images/**/*',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return gulp.src(distSources, { base: 'src' })
|
return gulp.src(distSources, { base: 'src' })
|
||||||
|
|
Loading…
Reference in New Issue