All Projects ā†’ fabiandev ā†’ typescript-playground

fabiandev / typescript-playground

Licence: MIT License
TypeScript Playground

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to typescript-playground

try-manubot
A repository to practice contributing to a Manubot manuscript
Stars: āœ­ 35 (-32.69%)
Mutual labels:  playground
Paperville
šŸ™ Design a city in Swift code (ļ£æWWDC 2018 submission, ACCEPTED)
Stars: āœ­ 48 (-7.69%)
Mutual labels:  playground
playground
šŸ“š Examples, projects, webprojects, skeletons for Nette Framework (@nette) from community members. Included @contributte @apitte @nettrine projects.
Stars: āœ­ 23 (-55.77%)
Mutual labels:  playground
web-dojo
A dojo for JavaScript and more.
Stars: āœ­ 20 (-61.54%)
Mutual labels:  playground
tokonoma
Graphics related projects/prototypes/playground (Vulkan, C++17)
Stars: āœ­ 23 (-55.77%)
Mutual labels:  playground
mnist-coreml
Simple convolutional neural network to predict handwritten digits using Keras + CoreML for WWDC '18 scholarship [Accepted]
Stars: āœ­ 45 (-13.46%)
Mutual labels:  playground
vue-code-view
A Vue 2 component like Vue SFC REPL `@vue/repl` : u can edit, run and preview the code effect display in real time on the web page.
Stars: āœ­ 67 (+28.85%)
Mutual labels:  playground
Cattle
šŸŗ Platform to Run and Share Code. It Supports PHP, Python, Ruby, Java, Go, Rust, C and C++.
Stars: āœ­ 40 (-23.08%)
Mutual labels:  playground
To-The-Apples-Core
āš™ļø A collection of non-jailbroken code snippets on reverse-engineered iOS private apis
Stars: āœ­ 69 (+32.69%)
Mutual labels:  playground
deno-playground
play.golang.org, but built in deno, and for deno.
Stars: āœ­ 57 (+9.62%)
Mutual labels:  playground
aik
Frontend Playground
Stars: āœ­ 43 (-17.31%)
Mutual labels:  playground
react-playground
Xcode Playground but React.
Stars: āœ­ 26 (-50%)
Mutual labels:  playground
playground
Locally hosted Go playground for more advanced functionality.
Stars: āœ­ 15 (-71.15%)
Mutual labels:  playground
ML-Playground
A Playground for machine learning techniques
Stars: āœ­ 97 (+86.54%)
Mutual labels:  playground
vue-playground
Web Playground for Vue.js
Stars: āœ­ 12 (-76.92%)
Mutual labels:  playground
schema.tl
šŸ“œ Easy-to-use TL-Schema viewer
Stars: āœ­ 55 (+5.77%)
Mutual labels:  playground
substrate-playground
Start hacking your substrate runtime in a web based VSCode like IDE
Stars: āœ­ 68 (+30.77%)
Mutual labels:  playground
swift-algorithms-data-structs
šŸ“’ Algorithms and Data Structures in Swift. The used approach attempts to fully utilize the Swift Standard Library and Protocol-Oriented paradigm.
Stars: āœ­ 42 (-19.23%)
Mutual labels:  playground
tsquery-playground
Playground for TSQuery
Stars: āœ­ 30 (-42.31%)
Mutual labels:  playground
widgets playground
Showcase example for https://github.com/therecipe/qt
Stars: āœ­ 50 (-3.85%)
Mutual labels:  playground

Click here to play

TypeScript Playground

A playground for TypeScript with the Monaco Editor.

Play

See the playground in action: https://fabiandev.github.io/typescript-playground

A shareable URL can be obtained from the settings of the editor.

Compiler Options

The playground supports some compiler options out of the box. Anyway, a property tsp is exposed to the global window object, where it is possible to set any option not supported by the UI:

tsp.setCompilerOption('emitDecoratorMetadata', true);

Console API

The editor exposes some more functionality:

Property Description
options Holds all options of the editor, including compiler options
sync() Syncs (changed) options with the editor
emit() Triggers a compilation
run() Runs the compiled code in a window
share() Retrieves a shareable URL as string
reset(reload = false, force = false) Resets the editor and optionally reloads the page
setCompilerOption(option, value) Set any compiler option programatically
changeTsVersion(version) Reloads page with ?ts=version query string

Development Setup

If you want to contribute to this project, it is easy to set it up on your system.

Installation

Simply clone the repository and install its dependencies.

$ git clone https://github.com/fabiandev/typescript-playground.git
$ cd typescript-playground
$ yarn

You may also use npm install instead of yarn

Configuration

You can set the configuration for the build in config.js:

Option Description
paths The relative source and destination paths
monaco Location of the editor
typescript Options for building TypeScript files
webpack The settings for bundling the app
replace Data for preprocess, applied to all files other than assets

Build

To start a build, run yarn build.

npm run build is also a possible command.

Watch

To run tasks while developing, use yarn watch.

Serve

With yarn serve a dev server with live reload can be started, to preview the project locally.

Credits

License

MIT

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].