-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
66 lines (62 loc) · 1.65 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
'use strict';
var gulp = require('gulp'),
pkg = require('./package.json'),
toolkit = require('gulp-wp-plugin-toolkit');
toolkit.extendConfig({
project: {
name: 'RA Widgets Animate',
version: pkg.version,
textdomain: pkg.name,
watch: {
php: [
'**/*.php'
],
scss: [
'develop/admin/css/**/*.css',
'develop/public/css/*.css',
'!node_modules/**'
],
js: [
'develop/admin/js/**/*.js',
'develop/public/js/*.js',
'!node_modules/**'
]
}
},
scss: {
'aos': {
src: 'node_modules/aos/dist/aos.css',
dest: 'public/css/',
outputStyle: 'compressed'
},
'rawa-admin': {
src: 'develop/admin/css/rawa-admin.css',
dest: 'admin/css/',
outputStyle: 'compressed'
}
},
js: {
'aos': {
src: 'node_modules/aos/dist/aos.js',
dest: 'public/js/'
},
'rawa': {
src: 'develop/public/js/*.js',
dest: 'public/js/'
},
'rawa-admin': {
src: 'develop/admin/js/rawa-admin.js',
dest: 'admin/js/'
},
'rawa-settings': {
src: 'develop/admin/js/rawa-settings.js',
dest: 'admin/js/'
},
'siteorigin-admin': {
src: 'develop/admin/js/siteorigin-admin.js',
dest: 'admin/js/'
}
}
});
toolkit.extendTasks(gulp, {
});