1.0.11 • Published 8 years ago

trucks-plugin-generate v1.0.11

Weekly downloads
15
License
MIT
Repository
github
Last release
8 years ago

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

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago