All Projects → VKCOM → elephize

VKCOM / elephize

Licence: MIT license
Typescript to PHP translation tool

Programming Languages

typescript
32286 projects
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to elephize

Godzilla
Godzilla is a ES2015 to Go source code transpiler and runtime
Stars: ✭ 1,464 (+5322.22%)
Mutual labels:  transpiler
Swiftrewriter
A Swift Package Manager console app and library to convert Objective-C code into Swift.
Stars: ✭ 140 (+418.52%)
Mutual labels:  transpiler
Plus
This project is being developed privately.
Stars: ✭ 215 (+696.3%)
Mutual labels:  transpiler
Crossshader
⚔️ A tool for cross compiling shaders. Convert between GLSL, HLSL, Metal Shader Language, or older versions of GLSL.
Stars: ✭ 113 (+318.52%)
Mutual labels:  transpiler
Webpack Babel Env Deps
Find dependencies to transpile with Babel.
Stars: ✭ 130 (+381.48%)
Mutual labels:  transpiler
Aesara
Aesara is a fork of the Theano library that is maintained by the PyMC developers. It was previously named Theano-PyMC.
Stars: ✭ 145 (+437.04%)
Mutual labels:  transpiler
Babel Preset Github
GitHub.com's Babel configuration
Stars: ✭ 103 (+281.48%)
Mutual labels:  transpiler
C4go
Transpiling C code to Go code
Stars: ✭ 253 (+837.04%)
Mutual labels:  transpiler
Rosid
Just-in-time development server and static site generator.
Stars: ✭ 139 (+414.81%)
Mutual labels:  transpiler
Transcrypt
Python 3.7 to JavaScript compiler - Lean, fast, open! -
Stars: ✭ 2,502 (+9166.67%)
Mutual labels:  transpiler
Ply
Painless polymorphism
Stars: ✭ 117 (+333.33%)
Mutual labels:  transpiler
C2go
⚖️ A tool for transpiling C to Go.
Stars: ✭ 1,736 (+6329.63%)
Mutual labels:  transpiler
C2rust
Migrate C code to Rust
Stars: ✭ 2,111 (+7718.52%)
Mutual labels:  transpiler
Elixirscript
Converts Elixir to JavaScript
Stars: ✭ 1,504 (+5470.37%)
Mutual labels:  transpiler
Retyped
Access 3600+ libraries from C# and let Bridge.NET compile your project into JavaScript.
Stars: ✭ 216 (+700%)
Mutual labels:  transpiler
Pseudo Python
a restricted python to javascript / c# / go / ruby compiler
Stars: ✭ 106 (+292.59%)
Mutual labels:  transpiler
Rapydscript Ng
A transpiler for a Python like language to JavaScript
Stars: ✭ 140 (+418.52%)
Mutual labels:  transpiler
sherlock.py
Sherlock is transpiler that translate python to shell script language.
Stars: ✭ 65 (+140.74%)
Mutual labels:  transpiler
Moonscript
🌙 A language that compiles to Lua
Stars: ✭ 2,694 (+9877.78%)
Mutual labels:  transpiler
Rockstar Js
JavaScript transpiler for the esoteric language 'Rockstar'
Stars: ✭ 189 (+600%)
Mutual labels:  transpiler

Elephize

Library and tool for transpiling limited set of React & Typescript constructions into PHP for use in server-side rendering.

Usage

NPM:

npm install -D @vkontakte/elephize or yarn add -D @vkontakte/elephize

Check error messages for peerDependencies errors, as elephize requires typescript to work.

Play with lib and demo (github):

git clone https://github.com/VKCOM/elephize.git

cd elephize && yarn

yarn demo_start

This will set up demo files in demo/public folder and run two servers:

  • React node server with native ReactDOM on port 3000
  • Php simple server with transpiled sources on port 8000

To see help, use bin/elephize --help or ./node_modules/.bin/elephize --help if you've installed elephize as a module.

You can use debugger; statement in your ts code to debug transpilation process and check context variables. When run with node debugger, this statement will pause the execution process when source file transpilation reaches the statement. It's useful to combine it with manual breakpoints to check particular cases.

Documentation (ru)

Описание проекта

Documentation (en)

Help wanted! If you have time to translate docs to english, please feel free to send us your PRs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].