-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathgulpfile.js
More file actions
37 lines (32 loc) · 812 Bytes
/
gulpfile.js
File metadata and controls
37 lines (32 loc) · 812 Bytes
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
const { src, dest } = require('gulp');
const package = require('./package.json');
const files = [
'**/*',
// Ignored folders.
'!**/.*/**', // Hidden files/dirs on Mac/Linux
'!**/__*/**', // Hidden dirs on Mac
'!.yarn/**',
'!**/node_modules/**',
'!src/**',
'!test-config/**',
'!storybook-assets/**',
// Ignored files.
'!**/*.zip',
'!**/*.map',
'!.gitignore',
'!.yarnrc.yml',
'!gulpfile.js',
'!package.json',
'!tsconfig.json',
'!webpack.config.js',
'!yarn.lock',
'!composer.json',
'!composer.lock',
];
const zip = async () => {
const gulpZip = (await import('gulp-zip')).default;
return src(files)
.pipe(gulpZip(package.name + '-v' + package.version + '.zip'))
.pipe(dest('./'));
};
exports.zip = zip;