babel-plugin-s2s-action-types-ts
plugin for https://github.com/akameco/s2s
Install
$ npm install --save-dev babel-plugin-s2s-action-types-ts
Example
Basic
IN:
;
OUT:
; /***** Do not edit below this line *****/
Request/Success/Failure pattern
IN:
;
OUT:
; /***** Do not edit below this line *****/
Usage
module.exports = {
watch: './**/*.ts',
plugins: [
{
test: /actionTypes.ts$/,
plugin: ['s2s-action-types-ts', {
usePrefix: true,
removePrefix: 'src/',
}],
},
],
}
usePrefix
type: boolean
required: false
removePrefix
type: string
required: false
outputh path.