build cleanup
This commit is contained in:
parent
58e11474a9
commit
304fa6a6bb
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
2
dist/resources/ws.min.css
vendored
2
dist/resources/ws.min.css
vendored
File diff suppressed because one or more lines are too long
8
dist/resources/ws.min.js
vendored
8
dist/resources/ws.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,6 @@
|
||||||
const gulp = require('gulp');
|
const gulp = require('gulp');
|
||||||
const concat = require('gulp-concat');
|
const concat = require('gulp-concat');
|
||||||
const terser = require('gulp-terser');
|
const terser = require('gulp-terser');
|
||||||
const cleanCSS = require('gulp-clean-css');
|
|
||||||
const ejs = require('gulp-ejs');
|
const ejs = require('gulp-ejs');
|
||||||
const rename = require('gulp-rename');
|
const rename = require('gulp-rename');
|
||||||
const htmlmin = require('gulp-htmlmin');
|
const htmlmin = require('gulp-htmlmin');
|
||||||
|
@ -59,11 +58,10 @@ gulp.task('compress_js', () => gulp.src(jsSources)
|
||||||
.pipe(gulp.dest('./dist/resources')));
|
.pipe(gulp.dest('./dist/resources')));
|
||||||
|
|
||||||
const cssSources = [
|
const cssSources = [
|
||||||
'server/styles/index.css',
|
'server/styles/main.css',
|
||||||
];
|
];
|
||||||
gulp.task('compress_css', () => gulp.src(cssSources)
|
gulp.task('copy_css', () => gulp.src(cssSources)
|
||||||
.pipe(concat('ws.min.css'))
|
.pipe(concat('ws.min.css'))
|
||||||
.pipe(cleanCSS())
|
|
||||||
.pipe(gulp.dest('./dist/resources')));
|
.pipe(gulp.dest('./dist/resources')));
|
||||||
|
|
||||||
const htmlSources = [
|
const htmlSources = [
|
||||||
|
@ -120,4 +118,4 @@ gulp.task('invalidate', async () => cloudfront.createInvalidation({
|
||||||
},
|
},
|
||||||
}).promise());
|
}).promise());
|
||||||
|
|
||||||
module.exports = gulp.series(clean, gulp.parallel('compress_js', 'compress_js_data', 'compress_css', 'compress_html', 'copy_other_files'), 'upload', 'invalidate');
|
module.exports = gulp.series(clean, gulp.parallel('compress_js', 'compress_js_data', 'copy_css', 'compress_html', 'copy_other_files'), 'upload', 'invalidate');
|
||||||
|
|
25
package-lock.json
generated
25
package-lock.json
generated
|
@ -18,7 +18,6 @@
|
||||||
"eslint-config-airbnb-base": "^15.0.0",
|
"eslint-config-airbnb-base": "^15.0.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-clean-css": "^4.3.0",
|
|
||||||
"gulp-concat": "^2.6.1",
|
"gulp-concat": "^2.6.1",
|
||||||
"gulp-ejs": "^5.1.0",
|
"gulp-ejs": "^5.1.0",
|
||||||
"gulp-htmlmin": "^5.0.1",
|
"gulp-htmlmin": "^5.0.1",
|
||||||
|
@ -3103,18 +3102,6 @@
|
||||||
"node": ">= 0.10"
|
"node": ">= 0.10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/gulp-clean-css": {
|
|
||||||
"version": "4.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-4.3.0.tgz",
|
|
||||||
"integrity": "sha512-mGyeT3qqFXTy61j0zOIciS4MkYziF2U594t2Vs9rUnpkEHqfu6aDITMp8xOvZcvdX61Uz3y1mVERRYmjzQF5fg==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"clean-css": "4.2.3",
|
|
||||||
"plugin-error": "1.0.1",
|
|
||||||
"through2": "3.0.1",
|
|
||||||
"vinyl-sourcemaps-apply": "0.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/gulp-cli": {
|
"node_modules/gulp-cli": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz",
|
||||||
|
@ -10410,18 +10397,6 @@
|
||||||
"vinyl-fs": "^3.0.0"
|
"vinyl-fs": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gulp-clean-css": {
|
|
||||||
"version": "4.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/gulp-clean-css/-/gulp-clean-css-4.3.0.tgz",
|
|
||||||
"integrity": "sha512-mGyeT3qqFXTy61j0zOIciS4MkYziF2U594t2Vs9rUnpkEHqfu6aDITMp8xOvZcvdX61Uz3y1mVERRYmjzQF5fg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"clean-css": "4.2.3",
|
|
||||||
"plugin-error": "1.0.1",
|
|
||||||
"through2": "3.0.1",
|
|
||||||
"vinyl-sourcemaps-apply": "0.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gulp-cli": {
|
"gulp-cli": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.3.0.tgz",
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
"eslint-config-airbnb-base": "^15.0.0",
|
"eslint-config-airbnb-base": "^15.0.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-clean-css": "^4.3.0",
|
|
||||||
"gulp-concat": "^2.6.1",
|
"gulp-concat": "^2.6.1",
|
||||||
"gulp-ejs": "^5.1.0",
|
"gulp-ejs": "^5.1.0",
|
||||||
"gulp-htmlmin": "^5.0.1",
|
"gulp-htmlmin": "^5.0.1",
|
||||||
|
@ -45,4 +44,4 @@
|
||||||
"eslint": "^8.21.0",
|
"eslint": "^8.21.0",
|
||||||
"eslint-plugin-import": "^2.26.0"
|
"eslint-plugin-import": "^2.26.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue