Skip to content

Commit

Permalink
feat(imagen-min)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarroyoduque committed Aug 12, 2024
1 parent 12076f1 commit 64314c9
Show file tree
Hide file tree
Showing 84 changed files with 17,864 additions and 10,753 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ $ npm run deploy
> [https://fonts.google.com/](https://fonts.google.com/)
> [https://www.npmjs.com/package/gulp-imagemin](https://www.npmjs.com/package/gulp-imagemin) & Gulp 4
> [https://fontello.com/](https://fontello.com/)
> [https://konamijs.mand.is](https://konamijs.mand.is)
Expand Down
5 changes: 4 additions & 1 deletion default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "po-main.js",
"scripts": {
"build": "polymer build",
"prepare-deploy": "npm run build && npm run copy-default && npm run copy-index && npm run update-references",
"optimize-images": "npx gulp",
"prepare-deploy": "npm run build && npm run optimize-images && npm run copy-default && npm run copy-index && npm run update-references",
"copy-default": "cp -r build/default ./",
"copy-index": "cp default/src/index.html ./",
"update-references": "node scripts/update-references.js",
Expand All @@ -19,6 +20,8 @@
"lit": "^2.0.0"
},
"devDependencies": {
"gulp": "^4.0.0",
"gulp-imagemin": "^9.0.0",
"polymer-cli": "1.9.11"
}
}
Binary file modified default/src/images/alex.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed default/src/images/banners/about-old.jpg
Binary file not shown.
Binary file removed default/src/images/banners/about.jpeg
Binary file not shown.
Binary file removed default/src/images/banners/contact.jpg
Binary file not shown.
Binary file removed default/src/images/banners/home-old.jpg
Binary file not shown.
Binary file removed default/src/images/banners/home.jpg
Binary file not shown.
Binary file removed default/src/images/banners/personal-old.jpg
Binary file not shown.
Binary file removed default/src/images/banners/personal.jpg
Binary file not shown.
Binary file removed default/src/images/banners/professional-old.jpg
Binary file not shown.
Binary file removed default/src/images/banners/professional.jpg
Binary file not shown.
Binary file modified default/src/images/companies/adesis.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/companies/gft.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/companies/sngular.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/education/gamificacion-intro-docentes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/education/psm1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/favicon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/amiibum.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/arcade-pi/final.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/arcade-pi/herramientas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/battleship.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/click-master.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/dart-master.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/egypt-adventure-cards.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/egypt-adventure-cards/ank_cromo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default/src/images/personal/egypt-adventure-cards/ra_cromo.jpg
Binary file modified default/src/images/personal/egypt-adventure.jpg
Binary file modified default/src/images/personal/galaxia-oculta.jpg
Binary file modified default/src/images/personal/game-on.png
Binary file modified default/src/images/personal/gau.jpg
Binary file modified default/src/images/personal/master-gun.jpg
Binary file modified default/src/images/personal/master-wars.jpg
Binary file modified default/src/images/personal/micromachines.jpg
Binary file modified default/src/images/personal/orlog.jpg
Binary file modified default/src/images/personal/peteypedia.jpg
Binary file modified default/src/images/personal/pixel-oculto.jpg
Binary file modified default/src/images/personal/portfolio.jpg
Binary file modified default/src/images/personal/project-black.jpg
Binary file modified default/src/images/personal/project-black.png
Binary file modified default/src/images/personal/raspberry-pi.jpg
Binary file modified default/src/images/personal/shootem-totem.jpg
Binary file modified default/src/images/personal/trainvial.jpg
Binary file modified default/src/images/personal/vga.jpg
Binary file modified default/src/images/personal/where-is-it.jpg
Binary file modified default/src/images/professional/bancomer.jpg
Binary file modified default/src/images/professional/bankia.jpg
Binary file modified default/src/images/professional/bbva-cells.jpg
Binary file modified default/src/images/professional/mapfre.jpg
Binary file modified default/src/images/skills/angular.jpg
Binary file modified default/src/images/skills/bootstrap.jpg
Binary file modified default/src/images/skills/bower.png
Binary file modified default/src/images/skills/css3.jpg
Binary file modified default/src/images/skills/d3.png
Binary file modified default/src/images/skills/git.jpg
Binary file modified default/src/images/skills/grunt.jpg
Binary file modified default/src/images/skills/gulp.jpg
Binary file modified default/src/images/skills/html5.jpg
Binary file modified default/src/images/skills/jade.jpg
Binary file modified default/src/images/skills/lit.jpg
Binary file modified default/src/images/skills/lodash.png
Binary file modified default/src/images/skills/node.jpg
Binary file modified default/src/images/skills/phaser.jpg
Binary file modified default/src/images/skills/polymer.jpg
Binary file modified default/src/images/skills/raphael.png
Binary file modified default/src/images/skills/sass.jpg
12 changes: 12 additions & 0 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import gulp from 'gulp';
import imagemin from 'gulp-imagemin';

// problems with Gulp 5 & image-min 9, I use Gulp 4
// https://github.com/sindresorhus/gulp-imagemin/issues/384
function optimizeImages() {
return gulp.src('build/default/src/images/**/*.{jpg,png}')
.pipe(imagemin())
.pipe(gulp.dest('build/default/src/images'));
}

export default optimizeImages;
28,593 changes: 17,842 additions & 10,751 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "po-main.js",
"scripts": {
"build": "polymer build",
"prepare-deploy": "npm run build && npm run copy-default && npm run copy-index && npm run update-references",
"optimize-images": "npx gulp",
"prepare-deploy": "npm run build && npm run optimize-images && npm run copy-default && npm run copy-index && npm run update-references",
"copy-default": "cp -r build/default ./",
"copy-index": "cp default/src/index.html ./",
"update-references": "node scripts/update-references.js",
Expand All @@ -19,6 +20,8 @@
"lit": "^2.0.0"
},
"devDependencies": {
"gulp": "^4.0.0",
"gulp-imagemin": "^9.0.0",
"polymer-cli": "1.9.11"
}
}
Binary file removed src/images/banners/about-old.jpg
Diff not rendered.
Binary file removed src/images/banners/about.jpeg
Diff not rendered.
Binary file removed src/images/banners/contact.jpg
Diff not rendered.
Binary file removed src/images/banners/home-old.jpg
Diff not rendered.
Binary file removed src/images/banners/home.jpg
Diff not rendered.
Binary file removed src/images/banners/personal-old.jpg
Diff not rendered.
Binary file removed src/images/banners/personal.jpg
Diff not rendered.
Binary file removed src/images/banners/professional-old.jpg
Diff not rendered.
Binary file removed src/images/banners/professional.jpg
Diff not rendered.

0 comments on commit 64314c9

Please sign in to comment.