Mojolic...eScript(3)

πŸ’– NAME πŸ’–

Mojolicious::Plugin::AssetPack::Pipe::TypeScript β€” the manual name, from the User Contributed Perl Documentation crew β€” is literally all about processing TypeScript .ts files. That’s the whole vibe, bestie. πŸ’…

✨ SYNOPSIS ✨

okay so here’s the little group-chat recipe:

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Mojolicious::Plugin::AssetPack::Pipe::TypeScript will process <https://www.typescriptlang.org/> files into JavaScript. It’s giving β€œTypeScript goes in, JavaScript comes out” energy, and honestly? Obsessed. πŸ’–

This module requires the typescript-simple nodejs library to be installed. And the way it handles that is kind of iconic: typescript-simple will be automatically installed using <https://www.npmjs.com/> unless it’s already installed. So if it’s missing, it goes and gets it from npm β€” if it’s already there, it’s already slaying. πŸŽ€

🌸 METHODS 🌸

πŸ’œ process πŸ’œ

See "process" in Mojolicious::Plugin::AssetPack::Pipe for the deets, bestie. 🫢

🌈 SEE ALSO 🌈

Mojolicious::Plugin::AssetPack β€” that’s the main character right there. πŸ‘‘


mwah πŸ’‹ β€” this cutie was brought to you by perl v5.42.0 and dated 2024-12-12. Byeee, bestie 🫢✨

πŸ“¦ where this page comes from