forked from bluet/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
44 lines (37 loc) · 1.02 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'use strict';
var gulp = require('gulp');
var favicons = require("gulp-favicons");
gulp.task('lesspass', [], function() {
return gulp.src(['node_modules/lesspass-pure/dist/**/*'])
.pipe(gulp.dest('dist/'));
});
gulp.task('images', [], function() {
return gulp.src(['images/**/*'])
.pipe(gulp.dest('dist/'));
});
gulp.task('favicon', function() {
return gulp.src('images/favicon.png')
.pipe(favicons({
appName: 'LessPass',
appDescription: 'Next-Gen Open Source Password Manager',
developerName: 'Guillaume Vincent',
background: '#555555',
path: 'dist/',
url: 'https://lesspass.com/',
display: 'standalone',
orientation: 'portrait',
start_url: '/?homescreen=1',
version: 1.0,
logging: false,
online: false,
html: 'index.html',
pipeHTML: true,
replace: true
}))
.pipe(gulp.dest('dist/'));
});
gulp.task('build', [], function() {
gulp.start('lesspass', 'images', 'favicon');
});
gulp.task('default', ['build'], function() {
});