-
Notifications
You must be signed in to change notification settings - Fork 11
/
Gruntfile.js
42 lines (41 loc) · 959 Bytes
/
Gruntfile.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
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig(
{
files: {
src: [
'**/*.php', // Include all files
'includes/*.php', // Include includes
'!node_modules/**', // Exclude node_modules/
'!tests/**', // Exclude tests/
'!vendor/**', // Exclude vendor/
'!static/**', // Exclude static resources
],
expand: true
},
wp_readme_to_markdown: {
target: {
files: {
'readme.md': 'readme.txt'
}
}
},
makepot: {
target: {
options: {
mainFile: 'indieauth.php',
domainPath: '/languages',
exclude: ['build/.*'],
potFilename: 'indieauth.pot',
type: 'wp-plugin',
updateTimestamp: true
}
}
}
}
);
grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
grunt.loadNpmTasks( 'grunt-wp-i18n' );
// Default task(s).
grunt.registerTask( 'default', ['wp_readme_to_markdown','makepot'] );
};