tpg
trucks-plugin-generate
npm i trucks-plugin-generate
tpg

trucks-plugin-generate

Web component compiler and package manager

by muji

1.0.11 (see all)License:MITTypeScript:Not Found
npm i trucks-plugin-generate
Readme

Generate

Generate output file contents

For each default output type create an output file. When no transforms are enabled this makes the compiler pass through HTML, CSS and Javascript declared in the input component files.

Install

npm i trucks-plugin-generate --save-dev


Usage

This plugin is bundled with the core trucks-compiler library.

You can configure this plugin using the generate field:

const options {
  conf: {
    plugins: {
      generate: {
        /* plugin configuration */
      }
    }
  }
}

Or as a convenient shortcut use the top-level generate field:

const options {
  generate: {
    /* plugin configuration */
  }
}

API

generate

public generate(state, conf)

Create default output file contents and run generator plugins.

Returns plugin closure.

  • state Object compiler state.
  • conf Object plugin configuration.

Options

  • generators Array list generator plugins to run.

License

MIT


Created by mkdoc on August 5, 2016

No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate