auto update dependencies available on npm
This commit is contained in:
parent
e8c7dfa6a7
commit
965cb29699
23 changed files with 20036 additions and 114 deletions
26
gulp/update-vendor.js
Normal file
26
gulp/update-vendor.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
const gulp = require('gulp');
|
||||
const del = require('del');
|
||||
const rename = require('gulp-rename');
|
||||
|
||||
const clean = (cb) => {
|
||||
del(['./server/scripts/vendor/auto/**']);
|
||||
cb();
|
||||
};
|
||||
|
||||
const vendor_files = [
|
||||
'./node_modules/luxon/build/global/luxon.js',
|
||||
'./node_modules/nosleep.js/dist/NoSleep.js',
|
||||
'./node_modules/jquery/dist/jquery.js',
|
||||
'./node_modules/suncalc/suncalc.js',
|
||||
];
|
||||
|
||||
const copy = () => gulp.src(vendor_files)
|
||||
.pipe(rename((path) => {
|
||||
path.dirname = path.dirname.toLowerCase();
|
||||
path.basename = path.basename.toLowerCase();
|
||||
path.extname = path.extname.toLowerCase();
|
||||
}))
|
||||
.pipe(gulp.dest('./server/scripts/vendor/auto'));
|
||||
|
||||
|
||||
module.exports = gulp.series(clean, copy);
|
||||
Loading…
Add table
Add a link
Reference in a new issue