0.7.4 • Published 6 years ago
patternplate-transform-typescript v0.7.4
TypeScript transform for patternplate patterns
patternplate-transform-typescript
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.
0.7.4
6 years ago
0.7.3
6 years ago
0.7.2
7 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.6
7 years ago
0.6.5
7 years ago
0.6.4
7 years ago
0.6.3
7 years ago
0.6.2
7 years ago
0.6.1
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.2
7 years ago
0.4.1
7 years ago
0.4.0
7 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.0
7 years ago
0.1.0
7 years ago