Skip to content

Commit

Permalink
add dependacies
Browse files Browse the repository at this point in the history
  • Loading branch information
qy-zh authored and qy-zh committed Sep 12, 2023
1 parent 0e0bbd0 commit 90206e2
Show file tree
Hide file tree
Showing 25 changed files with 13,871 additions and 10,560 deletions.
31 changes: 8 additions & 23 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,18 @@ var gulp = require('gulp'),

js_directory = 'static/js/src/',
css_directory = 'static/css/',
vendor_directory = js_directory + 'vendor/',
app_directory = js_directory + 'app/',
dest_js_directory = 'static/js/dist/',
dest_css_directory = 'static/css/dist/';

vendorjs = function () {
return gulp.src([
vendor_directory + 'jquery.js',
vendor_directory + 'bootstrap.min.js',
vendor_directory + 'moment.min.js',
vendor_directory + 'papaparse.min.js',
vendor_directory + 'd3.min.js',
vendor_directory + 'topojson.min.js',
vendor_directory + 'datamaps.min.js',
vendor_directory + 'jquery.dataTables.min.js',
vendor_directory + 'dataTables.bootstrap.js',
vendor_directory + 'datetime-moment.js',
vendor_directory + 'jquery.ui.widget.js',
vendor_directory + 'jquery.fileupload.js',
vendor_directory + 'jquery.iframe-transport.js',
vendor_directory + 'sweetalert2.min.js',
vendor_directory + 'bootstrap-datetime.js',
vendor_directory + 'select2.min.js',
vendor_directory + 'core.min.js',
vendor_directory + 'highcharts.js',
vendor_directory + 'ua-parser.min.js'
])
const pkg = require('./package.json');
const libs = Object.keys(pkg.dependencies);
return gulp.src(
libs.map(function(lib) {
return './node_modules/' + lib + '/**/*.js';
})
)
.pipe(concat('vendor.js'))
.pipe(rename({
suffix: '.min'
Expand Down Expand Up @@ -100,4 +85,4 @@ exports.vendorjs = vendorjs
exports.scripts = scripts
exports.styles = styles
exports.build = gulp.parallel(vendorjs, scripts, styles)
exports.default = exports.build
exports.default = exports.build
Loading

0 comments on commit 90206e2

Please sign in to comment.