Skip to content

Commit 8e9b9f7

Browse files
chore: add pre-commit hook to run build (#457)
Co-authored-by: Bruno Bergher <[email protected]>
1 parent 63ebce2 commit 8e9b9f7

File tree

4 files changed

+43
-6
lines changed

4 files changed

+43
-6
lines changed

.husky/pre-commit

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
# Run build and capture output
4+
output=$(npm run build 2>&1)
5+
exit_code=$?
6+
7+
# Display the output
8+
echo "$output"
9+
10+
# Fail if build command failed
11+
if [ $exit_code -ne 0 ]; then
12+
exit $exit_code
13+
fi
14+
15+
# Fail if warnings were produced
16+
if echo "$output" | grep -qi "warning"; then
17+
echo ""
18+
echo "❌ Build produced warnings - commit blocked"
19+
echo "Please fix the warnings above before committing."
20+
exit 1
21+
fi
22+
23+
echo "✅ Build passed with no warnings"

docs/roo-code-cloud/slack-integration.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ The Roo Code Slack integration brings your Cloud Agent team directly into your c
1818

1919
Summoning agents from Slack in public channels is an effective way to bring the entire team into the process, to learn by example how to best leverage Cloud Agents (and the information/outcomes they produce).
2020

21-
:::note Team Plan Only
22-
Requires an active Team or Enterprise plan. Personal accounts can't start Cloud tasks from Slack yet.
23-
:::
24-
2521
---
2622

2723
## Setting Up
@@ -90,7 +86,6 @@ The possibilities are enormous.
9086

9187
## Limitations
9288

93-
- **Team plans only** — Personal accounts can't start Cloud tasks from Slack
9489
- **Mention required in channels** — Generic channel messages without @Roomote are ignored
9590
- **Images only** — Non-image files aren't processed; images must be under 10MB
9691
- **Active subscription** — Requires funded Cloud credits

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"typecheck": "tsc",
1616
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
1717
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
18-
"lint:unused": "eslint src --ext .js,.jsx,.ts,.tsx --rule 'unused-imports/no-unused-imports: error'"
18+
"lint:unused": "eslint src --ext .js,.jsx,.ts,.tsx --rule 'unused-imports/no-unused-imports: error'",
19+
"prepare": "husky"
1920
},
2021
"dependencies": {
2122
"@docusaurus/core": "^3.9.2",
@@ -47,6 +48,7 @@
4748
"eslint-plugin-react": "^7.37.5",
4849
"eslint-plugin-react-hooks": "^5.2.0",
4950
"eslint-plugin-unused-imports": "^4.1.4",
51+
"husky": "^9.1.7",
5052
"typescript": "~5.6.2"
5153
},
5254
"browserslist": {

0 commit comments

Comments
 (0)