typescript-asset-pipeline

TypeScript extension for the Asset Pipeline Library

License

License

The Apache Software License, Version 2.0
GroupId

GroupId

com.craigburke
ArtifactId

ArtifactId

typescript-asset-pipeline
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

typescript-asset-pipeline
TypeScript extension for the Asset Pipeline Library
Project URL

Project URL

https://github.com/craigburke/typescript-asset-pipeline
Source Code Management

Source Code Management

https://github.com/craigburke/typescript-asset-pipeline

Download typescript-asset-pipeline

How to add to project

<!-- https://jarcasting.com/artifacts/com.craigburke/typescript-asset-pipeline/ -->
<dependency>
    <groupId>com.craigburke</groupId>
    <artifactId>typescript-asset-pipeline</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.craigburke/typescript-asset-pipeline/
implementation 'com.craigburke:typescript-asset-pipeline:0.3.0'
// https://jarcasting.com/artifacts/com.craigburke/typescript-asset-pipeline/
implementation ("com.craigburke:typescript-asset-pipeline:0.3.0")
'com.craigburke:typescript-asset-pipeline:jar:0.3.0'
<dependency org="com.craigburke" name="typescript-asset-pipeline" rev="0.3.0">
  <artifact name="typescript-asset-pipeline" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.craigburke', module='typescript-asset-pipeline', version='0.3.0')
)
libraryDependencies += "com.craigburke" % "typescript-asset-pipeline" % "0.3.0"
[com.craigburke/typescript-asset-pipeline "0.3.0"]

Dependencies

provided (2)

Group / Artifact Type Version
com.bertramlabs.plugins : asset-pipeline-core jar 2.0.12
org.codehaus.groovy : groovy-all jar 2.0.8

runtime (1)

Group / Artifact Type Version
com.craigburke.asset : javascript-core jar 0.2.4

Project Modules

There are no modules declared in this project.

TypeScript Asset-Pipeline

The typescript-asset-pipeline is an Asset Pipeline module that compiles TypeScript files using v1.7.5 of the compiler.

Note
This is a work in progress and will need more extensive testing, performance improvements, etc. Until version 1.0 it should not be considered production ready.

Getting Started

Gradle / Grails 3

build.gradle
plugins {
    id 'com.bertramlabs.asset-pipeline' version '2.5.0'
}

dependencies {
    assets 'com.craigburke:typescript-asset-pipeline:0.3.0'
}

Grails 2

BuildConfig.groovy
dependencies {
    compile 'com.craigburke:typescript-asset-pipeline:0.3.0'
}

How it Works

This plugin will compile any file with a .ts extension into corresponding JavaScript. It also supports the use of declaration files (d.ts).

Configuration

You can set additional compiler options by setting the typeScript map.

build.gradle
assets {
    configOptions: [
        typeScript: [
           module:'commonjs' // (1)
           target:'es5'
           experimentalDecorators:true // (2)
        ]
    ]
}
  1. This translates to --module commonjs

  2. Since a boolean is provided as the value, this is treated as a flag and translates to --experimentalDecorators

Versions

Version
0.3.0
0.2.0
0.1.1
0.1.0