-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bluprintrc
69 lines (69 loc) · 1.62 KB
/
.bluprintrc
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"bluprint": "^0.6.0",
"name": "Reusable chart module",
"category": "Chart modules",
"actions": [
{
"action": "prompt",
"questions": [{
"type": "text",
"name": "chartClass",
"message": "What should we call you chart class, e.g., StateMap?"
}, {
"type": "text",
"name": "chartSlug",
"message": "Gimme a slug for your chart, e.g., dual-axis-line-chart."
}]
},
{
"action": "remove",
"paths": ["README.md"]
},
{
"action": "move",
"paths": [
["README_TEMPLATE.md", "README.md"]
]
},
{
"action": "regexreplace",
"files": [
"index.html",
"src/demo/Docs.svelte",
"src/js/Demo.svelte",
"src/js/index.js",
"src/scss/_chart.scss",
"src/scss/demo.scss",
"package.json",
"README.md",
"vite.config.js"
],
"replace": [
["MyChartModule", "{{ chartClass }}"],
["my-chart-module", "{{ chartSlug }}"]
]
},
{
"action": "log",
"msg": "⚙️ Installing dependencies..."
},
{
"action": "execute",
"cmds": [
["yarn"],
["git", ["init"]],
["chmod", ["ug+x", ".husky/pre-commit"]],
["yarn", ["husky", "install"]]
],
"silent": true
},
{
"action": "log",
"msg": "\n🏁 {green Done!}\n\nYou can run {yellow yarn start} to start building your chart module."
},
{
"action": "log",
"msg": "\n\nDon't forget to create a GitHub repo for this chart named:\n{cyan chart-module-{{ chartSlug }}}\n"
}
]
}