This repository was archived by the owner on Nov 29, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
49 lines (46 loc) · 1.41 KB
/
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
43
44
45
46
47
48
49
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
wp_readme_to_markdown: {
target: {
files: {
'README.md': 'readme.txt'
},
},
},
wp_deploy: {
deploy: {
options: {
plugin_slug: 'simple-foaf',
svn_user: 'pfefferle',
build_dir: './'
},
}
},
replace: {
dist: {
options: {
patterns: [
{
match: /^/,
replacement: '[](https://wordpress.org/plugins/simple-foaf/) [](https://wordpress.org/plugins/simple-foaf/changelog/) [](https://wordpress.org/plugins/simple-foaf/) \n\n'
}
]
},
files: [
{
src: ['README.md'],
dest: './'
}
]
}
}
});
grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
grunt.loadNpmTasks('grunt-wp-deploy');
grunt.loadNpmTasks('grunt-replace');
// Default task(s).
grunt.registerTask('default', ['wp_readme_to_markdown', 'replace']);
// Deploy task(s).
grunt.registerTask('deploy', ['wp_readme_to_markdown', 'replace', 'wp_deploy']);
};