patternplate-transform-typescript

0.7.4 • Public • Published

TypeScript transform for patternplate patterns

patternplate-transform-typescript

GitHub license npm Travis Coverage Status Commitizen friendly Standard Version

Installation

npm install --save-dev typescript patternplate-transform-typescript

Usage

// configuration/patternplate-server/transforms.js
module.exports = {
  'typescript': {
    inFormat: 'tsx',
    outFormat: 'js',
    opts: {
      target: 'es5',
      module: 'commonjs',
      jsx: 'react'
    }
  },
  'react-to-markup': {
    inFormat: 'js',
    outFormat: 'html',
    opts: {
      automount: true
    }
  }
};
 
// configuration/patternplate-server/pattern.js
module.exports = {
  formats: {
    js: {
      transforms: ['typescript', 'react-to-markup']
    }
  }
};
 

Note: Currently there are a few transpiler/compiler defaults which are not overridable


Built by (c) Markus Wolf. Released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i patternplate-transform-typescript

Weekly Downloads

3

Version

0.7.4

License

MIT

Last publish

Collaborators

  • knisterpeter