Notoriously Punctual Manatee

    patternplate-transform-flow-remove-types

    1.1.2 • Public • Published

    Remove flow types from js files and produce them as patternplate side effect

    patternplate-transform-flow-remove-types

    Installation

    npm install --save-dev patternplate-transform-flow-remove-types

    Usage

    // configuration/patternplate-server/tasks.js
    module.exports = {
      'build-commonjs': {
        out: './lib',
        filters: {
          inFormats: ['js'],
          baseNames: ['index']
        },
        patterns: {
          formats: {
            js: {
              name: 'patterns',
              importStatement: localName => `import '${localName}';`, // eslint-disable-line flow-check/check
              transforms: ['babel', 'resolve-imports', 'flow-remove-types']
            }
          }
        },
        transforms: {
          'flow-remove-types': {
            inFormat: 'js',
            outFormat: 'js'
          },
          'resolve-imports': {
            inFormat: 'js',
            outFormat: 'js',
            resolve: '%(outputName)s/%(patternId)s/index.%(extension)s'
          }
        }
      }
    };
     

    Built by (c) Mario Nebl. Released under the MIT license.

    Install

    npm i patternplate-transform-flow-remove-types

    DownloadsWeekly Downloads

    1

    Version

    1.1.2

    License

    MIT

    Last publish

    Collaborators

    • kotzendekrabbe
    • lkuechler
    • rongae
    • marionebl