forked from PayString/rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
44 lines (39 loc) · 1.02 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
module.exports = function(grunt) {
// Add new RFC proposals to this list:
const rfcs = [
"src/spec/payid-uri.md",
"src/spec/payid-discovery.md",
"src/spec/payid-protocol.md",
"src/spec/verifiable-payid-protocol.md",
"src/spec/payid-easy-checkout.md",
"src/spec/self-sov-verifiable-payid-protocol.md"
]
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
// The command that generates specs
kramdown_rfc2629: {
options: {
outputs: ["text", "html"],
outputDir: "dist/spec",
removeXML: false
},
your_target: {
src: rfcs,
}
},
// The "watch" command which will watch specs for file changes,
// and automatically regenerate the RFC outputs.
watch: {
scripts: {
files: rfcs,
tasks: ["kramdown_rfc2629"],
options: {
spawn: false
}
}
},
});
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-kramdown-rfc2629");
};