fluent-types-loader
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

.github/workflows/publish.yml

fluent-types-loader

fluent-types-loader is a wepback loader for generating fluent message identifier typings.

Installation

yarn add -D fluent-types-loader

Usage

The loader should execute before raw-loader.

module.exports = {
  entry: "./entry.js",
  module: {
    rules: [
      {
        test: /\.ftl$/,
        use: ["raw-loader", "fluent-types-loader"],
      },
    ],
  },
};

The built-in CLI can be used to manually trigger the type generation.

yarn generate-fluent-types --outDir .

yarn generate-fluent-types --outDir node_modules/@types/fluent-types-loader # 1 to 1, with what the loader does

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i fluent-types-loader

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

16.2 kB

Total Files

23

Last publish

Collaborators

  • psimk