-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathcocmd.yaml
115 lines (98 loc) · 3.54 KB
/
cocmd.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: maakaf
automations:
- name: onboarding
content:
description: "onboarding for Maakaf contributors"
env: osx
steps:
- title: Hello 👋👋👋
runner: markdown
content: |
## Welcome to Maakaf Contributor onboarding 🎉🎉🎉
This is a guide to getting started with Maakaf-temp development.
This will install all the tools you need to get started.
it's going to:
- install git
- install node
- install vscode
- clone all repo
- build
- open the repos
- title: lets start
runner: shell
approval_message: Ready to start?
content: echo lets start
- title: install vscode
runner: cocmd
approval_message: install vscode?
content: vscode.setup
- title: install git
runner: cocmd
content: git.setup
- title: install github cli
runner: cocmd
content: git.setup.github
- title: install node
runner: cocmd
content: node.setup
- title: install pnpm
runner: cocmd
content: node.setup.pnpm
- title: git clones
runner: shell
approval_message: We will now authenticate to Github and fork the repo. ready?
content: |
# using github-cli (gh) fork Maakaf/maakaf-temp to my personal account
gh auth login
# Fork the repository
gh repo fork Maakaf/maakaf-temp
# clone the forked repo
username=$(gh api user --jq '.login')
set +e
gh repo clone $username/maakaf-temp
# add upstream
cd maakaf-temp
git remote add upstream [email protected]:Maakaf/maakaf-temp.git
open .
- title: run website
runner: shell
content: |
cd maakaf-temp
echo installing dependencies
pnpm i
echo "website ready to run - pnpm dev"
- title: add special vscode extensions
runner: shell
approval_message: This project uses Astro, Tailwind and more. Can we suggest adding some vscode extentions?
content: |
# check if vscode not installed
if code -v &> /dev/null
then
# install astro extention
code --install-extension astro-build.astro-vscode
# install tailwind intellisense
code --install-extension bradlc.vscode-tailwindcss
# install prettier
code --install-extension esbenp.prettier-vscode
# install css intellisense
code --install-extension zignd.html-css-class-completion
else
echo "vscode could not be found. skipping..."
fi
- title: open IDEs
runner: shell
approval_message: To open the code with VSCode?
content: |
# check if vscode not installed
if code -v &> /dev/null
then
code maakaf-temp
else
echo "vscode could not be found. open maakaf-temp in your IDE of choice"
fi
- title: final message
runner: markdown
content: |
## All done!
You're all set up to contribute to Maakaf.
Join us on discord - https://discord.gg/PzaBZade