Completed
Push — master ( f308d6...1d5a87 )
by Sudar
03:08
created

Gruntfile.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 51
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 1
c 1
b 0
f 0
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 51
rs 10
bpm 1
cpm 1
noi 0
1
/* global module, require */
2
module.exports = function( grunt ) {
3
	'use strict';
4
5
	// Load all grunt tasks
6
	require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
7
8
	// Project configuration
9
	grunt.initConfig( {
10
		pkg:    grunt.file.readJSON( 'package.json' ),
11
12
		clean   : {
13
			dist: ['dist/']
14
		},
15
16
		copy: {
17
			dist: {
18
				files : [
19
					{
20
						expand: true,
21
						src: [
22
							'**',
23
							'!dist/**',
24
							'!assets-wp-repo/**',
25
							'!node_modules/**',
26
							'!assets/vendor/**',
27
							'!assets/js/src/**',
28
							'!assets/css/src/**',
29
							'!Gruntfile.js',
30
							'!bower.json',
31
							'!package.json',
32
							'!phpcs.xml',
33
							'!phpdoc.dist.xml',
34
							'!phpunit.xml.dist',
35
							'!bin/**',
36
							'!tests/**',
37
							'!.idea/**',
38
							'!tags'
39
						],
40
						dest: 'dist/'
41
					}
42
				]
43
			}
44
		}
45
	} );
46
47
	require('time-grunt')(grunt);
48
49
	grunt.registerTask('build', ['clean', 'copy:dist']);
50
51
	grunt.util.linefeed = '\n';
52
};
53