Skip to content

Commit b3b13ad

Browse files
Merge pull request #54 from cwruRobotics/easy-build
Easy build
2 parents 240cc23 + 1f4a1de commit b3b13ad

File tree

4 files changed

+50
-1
lines changed

4 files changed

+50
-1
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,8 @@ dmypy.json
129129
# Pyre type checker
130130
.pyre/
131131

132-
.vscode/
132+
.vscode/*
133+
# Allows custom tasks
134+
!.vscode/tasks.json
135+
!.vscode/easy_build.sh
136+
!.vscode/easy_all.sh

.vscode/easy_all.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Next year could move root of clone
2+
# Or Make custom vscode extension
3+
4+
rosdep update --rosdistro=$ROS_DISTRO
5+
rosdep install --from-paths src --ignore-src -r -y
6+
# Stolen from colcon build command in VsCode
7+
colcon build --symlink-install
8+
source install/setup.bash

.vscode/easy_build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Next year could move root of clone
2+
# Or Make custom vscode extension
3+
4+
# Stolen from colcon build command in VsCode
5+
colcon build --symlink-install
6+
source install/setup.bash

.vscode/tasks.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "🏃‍♂️ ROS All",
6+
"type": "shell",
7+
"command": "bash",
8+
"args": [
9+
"${workspaceFolder}/src/.vscode/easy_all.sh"
10+
],
11+
"presentation": {
12+
"panel": "dedicated",
13+
"revealProblems": "onProblem",
14+
},
15+
"problemMatcher": []
16+
},
17+
{
18+
"label": "🏃‍♂️ ROS Quick Build",
19+
"type": "shell",
20+
"command": "bash",
21+
"args": [
22+
"${workspaceFolder}/src/.vscode/easy_build.sh"
23+
],
24+
"presentation": {
25+
"panel": "dedicated",
26+
"revealProblems": "onProblem",
27+
},
28+
"problemMatcher": []
29+
}
30+
]
31+
}

0 commit comments

Comments
 (0)