Skip to content
Draft
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/agents/my-agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name:
description:
---

# My Agent

Describe what your agent does here...
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
yarn.lock
dist.zip
dist
dist
acodex_server
plugin.zip
14 changes: 14 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pull_request_rules:
- name: Notify when a PR is removed from the queue
description: Notify the PR author when its pull request is removed from the merge queue.
conditions:
- queue-dequeue-reason != none
- queue-dequeue-reason != pr-merged
actions:
comment:
message: >
Hey @{{author}}, your pull request has been dequeued due to the
following reason: {{queue_dequeue_reason}}.

Sorry about that, but you can requeue the PR by using `@mergifyio
requeue` if you think this was a mistake.
Binary file removed plugin.zip
Binary file not shown.
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

Read acode plugin [documentation](https://docs.acode.app/docs/) to develop plugin for acode editor.

## Setup

For a quick setup of the development environment, run:

```bash
./setup.sh
```

This script will:
- Install npm (if not already installed)
- Install Zed editor (if not already installed)
- Clone the acodex_server repository
- Install project dependencies
- Build the project

## Usage

Use this for debug build:
Expand Down
78 changes: 78 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#!/bin/bash

# Setup script for Acode Plugin Development Environment
# This script installs required tools and dependencies

set -e # Exit on error

echo "=========================================="
echo "Acode Plugin Development Setup"
echo "=========================================="
echo ""

# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}

# Install npm if not already installed
echo "Step 1: Checking npm installation..."
if command_exists npm; then
echo "✓ npm is already installed (version: $(npm --version))"
else
echo "Installing npm..."
curl -qL https://www.npmjs.com/install.sh | sh
echo "✓ npm installed successfully"
fi
echo ""

# Install Zed editor if not already installed
echo "Step 2: Checking Zed editor installation..."
if command_exists zed; then
echo "✓ Zed editor is already installed"
else
echo "Installing Zed editor..."
curl -f https://zed.dev/install.sh | sh
echo "✓ Zed editor installed successfully"
fi
echo ""

# Clone acodex_server repository if it doesn't exist
echo "Step 3: Checking acodex_server repository..."
if [ -d "acodex_server" ]; then
echo "✓ acodex_server repository already exists"
echo " Updating repository..."
cd acodex_server
git pull
cd ..
else
echo "Cloning acodex_server repository..."
if command_exists gh; then
gh repo clone bajrangCoder/acodex_server
else
git clone https://github.com/bajrangCoder/acodex_server.git
fi
echo "✓ acodex_server repository cloned successfully"
fi
echo ""

# Install project dependencies
echo "Step 4: Installing project dependencies..."
npm install
echo "✓ Dependencies installed successfully"
echo ""

# Build the project
echo "Step 5: Building the project..."
npm run build
echo "✓ Project built successfully"
echo ""

echo "=========================================="
echo "Setup completed successfully!"
echo "=========================================="
echo ""
echo "You can now start development with:"
echo " npm run dev - Start development server"
echo " npm run build - Build for production"
echo ""