No commit activity in last 3 years
No release in over 3 years
A nanoc filter to compile TypeScript to JavaScript
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 3.4.0
>= 0.1.1
 Project Readme

nanoc-typescript

A Nanoc filter for compiling TypeScript scripts down to JavaScript.

Usage

First install nanoc-typescript with

gem install nanoc-typescript

Next, in your Nanoc lib/default.rb require the library

require 'nanoc-typescript'

You can now use the typescript filter in Rules. For example

compile '/scripts/*/' do
    filter :typescript
end

Or, if not all of your scripts are written in typescript, you may prefer something like

compile '/scripts/*/' do
    filter :coffeescript  if item[:extension] == "cs"
    filter :typescript    if item[:extension] == "ts"
    # etc...
end