-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
45 lines (35 loc) · 1.13 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
/**
* =================================================================================
*
* PLON Gulp
* Example gulpfile.js
*
* @author Bartosz Perończyk <peronczyk.com>
* @created 2017-09-10
* @modified 2017-09-14
* @repository https://github.com/peronczyk/plon
*
* =================================================================================
*/
var options = {
// Configure your script address/domain to be able of using 'serve' action
domain: 'http://localhost/Tests/gulp-modules/',
// Provide list of JS files that should be concatenated
jsFiles: [],
// Task that will be run as default "$ gulp"
defaultTasks: ['sass', 'js', 'js-separate', 'images', 'fonts', 'add-jquery'],
};
/**
* If you are using this file with PLON installed as NPM package
* provide correct path below.
*/
var plon = require('./gulp/index.js')(options);
/**
* Custom task that shows how to add your own tasks.
* It moves jQuery from NPM package to your dist directory.
*/
gulp.task('add-jquery', function() {
return gulp
.src('node_modules/jquery/dist/jquery.min.js')
.pipe(gulp.dest(config.distDir + config.subDirs.dist.js));
});