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.

gulpfile.js 1.0 KiB

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