🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-s2s-action-root-ts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-s2s-action-root-ts

generate action root

1.2.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

babel-plugin-s2s-action-root-ts

plugin for https://github.com/akameco/s2s

Install

$ npm install --save-dev babel-plugin-s2s-action-root-ts

Example

IN:

OUT:

/***** Do not edit this file *****/
import { Action as FooAction } from "../examples/foo/actionTypes";
import { Action as BarAction } from "../containers/bar/actionTypes";

export type Action = FooAction | BarAction;

Usage

module.exports = {
  watch: './**/*.ts',
  plugins: [
    {
      test: /actionTypes.ts$/,
      plugin: ['s2s-action-root-ts', {
        input: 'containers/**/actionTypes.ts',
        output: 'types/action.ts',
        globOptions: {},
      }],
    },
  ],
}

input,

type: string
required: true

glob pattern.

output

type: string
required: true

outputh path.

globOptions

type: object
required: false

See https://github.com/isaacs/node-glob#options

FAQs

Package last updated on 15 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts