6 مستودعات
Tools that programmatically transform JavaScript source code through AST manipulation or compilation pipelines.
Distinct from JavaScript Source Parsers: Focuses on the transformation of JavaScript code, whereas the parent is for general parsing of JS into structured data.
Explore 6 awesome GitHub repositories matching programming languages & runtimes · JavaScript Source Transformers. Refine with filters or upvote what's useful.
Metro هو مجمع JavaScript مصمم لبيئات React Native. يعمل كنظام لحل التبعيات، وتحويل الكود المصدري، وتعبئة JavaScript والأصول في حزم للتنفيذ. يتضمن المشروع خادم تجميع للتطوير يستضيف الأصول عبر HTTP ويوفر استبدال الوحدات الساخن (hot module replacement). يتميز بمحلل وحدات يتعامل مع امتدادات الملفات الخاصة بالمنصة ومحول كود مصدري يحول الكود إلى هياكل شجرية للتحسين والتصغير. تغطي مجموعة الأدوات توليد الحزم برمجياً، وإنشاء خرائط المصدر، والتخزين المؤقت لنظام الملفات لتجنب التحويلات المتكررة. كما توفر قدرات لإدارة الأصول، وحقن polyfill، وتكوين خادم آمن باستخدام شهادات TLS لنقاط النهاية المشفرة. يتم تضمين أدوات المراقبة لتتبع حالة التجميع وتسجيل بيانات الأداء الوصفية لأحداث البدء والتحديث.
Provides a transformation pipeline that converts source code into tree structures for optimization and minification.
browserify-handbook هو دليل توثيقي شامل لـ Browserify، وهو أداة تجميع وحدات CommonJS وأداة بناء JavaScript. يشرح كيفية تجميع وحدات نمط Node.js في ملفات JavaScript واحدة للتنفيذ داخل متصفحات الويب. يغطي الدليل إنشاء حزم تعريف الوحدات العالمية التي تعمل عبر بيئات Node و AMD والمتصفحات. كما يفصل استخدام polyfills المتوافقة مع المتصفحات لوحدات Node.js المدمجة لضمان التوافق عبر المنصات. يصف الدليل قدرات تحويل الكود المصدري، وأتمتة بناء الواجهة الأمامية، وتصحيح أخطاء تطبيقات الويب. كما يغطي تحسين حجم الحزمة، وتقسيم حزم نقاط الدخول، وإنشاء خرائط المصدر (source maps).
Transforms JavaScript source code through compilation pipelines to support custom syntax or languages.
Sweet-core هو مترجم (compiler) من مصدر إلى مصدر لـ JavaScript ونظام ماكرو على طراز Lisp. يعمل كمحول بناء جملة يوسع JavaScript من خلال السماح بتعريف بناء جملة وعوامل تشغيل مخصصة أثناء عملية التجميع. يوفر النظام إطار عمل لبناء لغات خاصة بالمجال (DSL) من خلال توسيع الماكرو المتكرر والصحي، وإنشاء بنيات لغوية جديدة. يتميز بدعم تعريفات عوامل التشغيل المخصصة مع إمكانية تكوين التجميع والأسبقية للتحكم في تقييم التعبير. يتضمن المترجم نظام وحدات متخصصاً لإدارة تبعيات وقت التجميع وتكامل مساعدات وقت التشغيل. تغطي بنيته الداخلية تحويل شجرة بناء الجملة المجردة (AST)، ومطابقة إنتاج القواعد، وتوليد كائنات بناء الجملة لضمان النظافة المعجمية. يتم توفير واجهة سطر أوامر لتحويل ملفات المصدر إلى ملفات أو أدلة مخرجات JavaScript قياسية.
Acts as a JavaScript source transformer that creates new language constructs and operators via macros.
هذا المشروع عبارة عن مجموعة من أدوات تحويل شجرة بناء الجملة المجردة (AST) المصممة لأتمتة ترحيل الكود المصدري إلى إصدارات أحدث من React. يوفر مجموعة من النصوص البرمجية التي تعدل هياكل الكود برمجياً لاستبدال واجهات برمجة التطبيقات (APIs) المهملة وأنماط المكونات ببدائل حديثة. تتخصص مجموعة الأدوات في تحويل مكونات الفئات (class components) إلى مكونات وظيفية (functional components) باستخدام الدوال السهمية (arrow functions) وتفكيك الخصائص (prop destructuring). كما تتضمن أدوات لتحديث صيغة JSX، وتحديث طرق دورة حياة المكونات المهملة إلى إصدارات مستقرة، وترحيل المراجع القائمة على النصوص (string-based refs) إلى مراجع الدوال (callback refs). تغطي الإمكانيات الإضافية تحسين أنماط الاستيراد، وإزالة الاستيرادات الزائدة، وتحديث مراجع الحزم ومسارات الوحدات. يستخدم المشروع ترحيل الكود المصدري القائم على القواعد وتحليل الصيغة القائم على المطابقة لضمان تطبيق التحويلات بشكل متسق عبر قواعد الكود الكبيرة.
Provides tools for programmatically transforming JavaScript source code through AST manipulation pipelines.
Koala is a graphical user interface for managing the compilation, transpilation, and background monitoring of web asset preprocessors. It serves as a build tool that converts Less, Sass, and CoffeeScript files into browser-compatible CSS and JavaScript. The application features a visual interface for controlling the transformation process, removing the need for command line interaction. It integrates a background file monitor that automatically recompiles source files in real time as changes are detected on the local filesystem. The tool provides utilities for managing global and project-spe
Transforming CoffeeScript into executable JavaScript while detecting syntax errors and managing output configurations.
Optimize-js is a JavaScript parsing optimizer designed to reduce the time browsers spend pre-parsing scripts to improve initial execution speed. It transforms source code to minimize the overhead associated with browser parsing. The project implements a technique that wraps function calls in parentheses to bypass initial pre-parsing and reduce double-parsing overhead. To maintain the utility of the transformed code, it includes a source map generator that links the optimized output back to the original source. The toolset also includes performance benchmarking capabilities to measure the exa
Transforms JavaScript source code through AST manipulation to reduce browser pre-parsing overhead.