GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - typescript-ruby/typescript-node-ruby: TypeScript compiler interface in Ruby with Node.js

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGES.md
CHANGES.md
 
 
Gemfile
Gemfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
typescript-node.gemspec
typescript-node.gemspec
 
 

Repository files navigation

Typescript::Node Build Status

TypeScript compiler in a gem.

Installation

Add this line to your application's Gemfile:

gem 'typescript-node'

And then execute:

$ bundle

Or install it yourself as:

$ gem install typescript-node

Usage

require 'typescript-node'

# raises an error if node(1) isn't available
TypeScript::Node.check_node

# compiles a TypeScript source file and returns TypeScript::Node::CompileResult
result = TypeScript::Node.compile_file(file, '--target', 'ES5')
result.success? # => true if succeeded
result.js # => output JavaScript source code
result.stdout # => what tsc(1) shows to stdout
result.stderr # => what tsc(1) shows to stderr

# compiles a TypeScript source code string and returns String
js_source = TypeScript::Node.compile_file(ts_source, '--target', 'ES5')

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

TypeScript compiler interface in Ruby with Node.js

Resources

Readme
MIT license
Activity
Custom properties

Stars

14 stars

Watchers

4 watching

Forks

17 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.