New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cs-magic/acg

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cs-magic/acg

A powerful and flexible code generator for VS Code that helps you generate code snippets, boilerplates, and entire project structures

latest
npmnpm
Version
0.1.0
Version published
Maintainers
0
Created
Source

AnyCodeGenerator (ACG)

A powerful and flexible code generator for VS Code that helps you generate code snippets, boilerplates, and entire project structures with ease.

Features

  • 🎯 Smart code generation based on context and requirements
  • 🚀 Multiple generation templates and patterns
  • 📦 Support for various project types and frameworks
  • 🛠️ Built with TypeScript for type safety
  • 🎨 Modern UI with React and Tailwind CSS
  • 📱 Extensible architecture for custom templates
  • 🔄 Live preview of generated code

Quick Start

Using Yeoman Generator

# Install Yeoman and ACG generator globally
npm install -g yo @cs-magic/acg

# Generate your code
yo @cs-magic/acg

# Follow the interactive prompts to customize your generation

Using VS Code Extension

# Install the VS Code extension
# Search for "AnyCodeGenerator" in VS Code marketplace
# Or visit: [VS Code Marketplace Link]

# Use the command palette (Ctrl+Shift+P / Cmd+Shift+P)
# Type: "ACG: Generate Code"

Generation Types

Using Yeoman Commands

The generator supports various commands for different generation needs:

# Generate a new project
yo @cs-magic/acg:project

# Generate a component
yo @cs-magic/acg:component

# Generate an API endpoint
yo @cs-magic/acg:api

# Generate custom template
yo @cs-magic/acg:custom

Each command will prompt you for necessary configuration options.

Code Snippets

Generate commonly used code patterns and snippets based on your current context.

Project Templates

Create new projects with best-practice structure and configuration:

project-name/
├── src/
│   ├── core/          # Core functionality
│   ├── components/    # UI components (if applicable)
│   └── types/         # Type definitions
├── tests/             # Test files
└── package.json       # Project configuration

Custom Templates

Create and use your own templates for specific needs:

  • Component templates
  • API endpoints
  • Database models
  • Custom patterns

Development

Prerequisites

  • Node.js 16 or later
  • pnpm (recommended), yarn, or npm
  • VS Code

Building the Extension

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Development with hot reload
pnpm dev

Configuration Options

  • Project Type: Choose between standalone, monorepo package, or monorepo root
  • Package Manager: Select pnpm, yarn, or npm
  • Webview Support: Option to include React-based webview
  • Package Scope: Custom scope for monorepo packages

Contributing

  • Fork the repository
  • Create your feature branch
  • Commit your changes
  • Push to the branch
  • Create a new Pull Request

Keywords

vscode-extension

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts