You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 line
982 B

  1. const { src, dest, parallel } = require("gulp");
  2. const favicons = require("gulp-favicons");
  3. function js() {
  4. return src(["node_modules/lesspass-pure/dist/**/*"]).pipe(dest("dist/"));
  5. }
  6. function images() {
  7. return src(["images/**/*"]).pipe(dest("dist/"));
  8. }
  9. function favicon() {
  10. return src("images/favicon.png")
  11. .pipe(
  12. favicons({
  13. appName: "LessPass",
  14. appDescription: "Next-Gen Open Source Password Manager",
  15. developerName: "Guillaume Vincent",
  16. background: "#555555",
  17. path: "dist/",
  18. url: "https://lesspass.com/",
  19. display: "standalone",
  20. orientation: "portrait",
  21. start_url: "/?homescreen=1",
  22. version: 1.0,
  23. logging: false,
  24. online: false,
  25. html: "index.html",
  26. pipeHTML: true,
  27. replace: true
  28. })
  29. )
  30. .pipe(dest("dist/"));
  31. }
  32. exports.js = js;
  33. exports.images = images;
  34. exports.favicon = favicon;
  35. exports.default = parallel(js, images, favicon);