DOKK / manpages / debian 12 / libmojolicious-plugin-assetpack-perl / Mojolicious::Plugin::AssetPack::Pipe::TypeScript.3pm.en
Mojolicious::Plugin::AssetPack::Pipe::TypeScript(3pm) User Contributed Perl Documentation Mojolicious::Plugin::AssetPack::Pipe::TypeScript(3pm)

Mojolicious::Plugin::AssetPack::Pipe::TypeScript - Process TypeScript .ts files

  $app->plugin(pipes => [qw(TypeScript JavaScript Combine)]);
  $app->asset->process("app.js" => qw(foo.ts));

Mojolicious::Plugin::AssetPack::Pipe::TypeScript will process <https://www.typescriptlang.org/> files into JavaScript.

This module require the "typescript-simple" nodejs library to be installed. "typescript-simple" will be automatically installed using <https://www.npmjs.com/> unless already installed.

See "process" in Mojolicious::Plugin::AssetPack::Pipe.

Mojolicious::Plugin::AssetPack.

2023-02-04 perl v5.36.0