babel-compiler

Transpile ES6+ JavaScript to ES5 via Docker-based Babel compiler.

569|85|Updated Jun 7, 2019
One-click install
npx skills add https://github.com/mikopbx/Core --skill babel-compiler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: babel-compiler
Source: https://github.com/mikopbx/Core/tree/main/.claude/skills/babel-compiler
Command: npx skills add https://github.com/mikopbx/Core --skill babel-compiler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docker.

What problem does it solve?

Automates Babel-based transpilation of ES6+ JavaScript into ES5 for browser compatibility, using a Docker-based compiler to ensure consistent results.

Core Features & Use Cases

  • Transpiles Core (admin cabinet) JS to pbx JS output
  • Transpiles Module (Extensions) JS into single module file
  • Docker-based execution for consistency across environments

Quick Start

Single-file or batch transpilation via docker run with the babel-compiler image and path mappings.

Frequently Asked Questions about babel-compiler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I transpile ES6+ JavaScript to ES5 for browser compatibility?

Transpile ES6+ to ES5 using a Docker-based Babel compiler, which converts modern JavaScript syntax into older compatible versions. The Skill handles single-file and batch directory transpilation with automated path normalization and error reporting.

Can I use Babel transpilation for MikoPBX admin cabinet and module extension scripts?

Yes, this Skill transpiles both Core admin cabinet scripts to pbx output and Module extension JavaScript into single module files using Docker-based Babel compilation, ensuring consistent results across environments.

What's the best way to batch transpile JavaScript files in Docker?

Use Docker-based batch transpilation with host-to-container path mapping to process entire directories at once. The Skill enforces Docker execution, normalizes source-to-output mappings, and reports success, errors, and file size changes.

Do I need Docker to run JavaScript transpilation with Babel?

Yes, this Skill requires Docker execution to ensure consistent transpilation results across different environments. Docker handles the Babel compiler environment and enforces proper path normalization.

Why use Docker for ES6+ to ES5 transpilation instead of local tools?

Docker-based transpilation guarantees consistency across environments by isolating the Babel compiler. It eliminates dependency version conflicts and ensures identical output regardless of the host system's Node.js or Babel versions.

What happens when transpilation encounters errors or file size changes?

The Skill automatically reports transpilation success, errors, and file size changes for each processed file, giving you visibility into the conversion process and any issues encountered during ES6+ to ES5 compilation.