-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
41 lines (36 loc) · 890 Bytes
/
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
'use strict';
var projectName = 'sixtenpress-simple-menus',
version = '1.2.4',
destination = '../../build',
gulp = require( 'gulp' ),
zip = require( 'gulp-zip' ),
config = {
sassPath: 'sass',
bowerDir: 'bower_components',
sixten : '../sixtenpress'
},
buildInclude = [
'**',
// exclude:
'!node_modules/**/*',
'!bower_components/**/*',
'!sass/**/*',
'!dist/**/*',
'!node_modules',
'!bower_components',
'!sass',
'!dist',
'!gulpfile.js',
'!package.json',
'!bower.json'
];
gulp.task( 'assets', function () {
gulp.src( config.sixten + '/includes/common/**' )
.pipe( gulp.dest( 'includes/common' ) );
} );
gulp.task( 'zip', function () {
return gulp.src( buildInclude, { base: '../' } )
.pipe( zip( projectName + '.' + version + '.zip' ) )
.pipe( gulp.dest( destination ) );
} );
gulp.task( 'build', [ 'zip' ] );