Socket
Socket
Sign inDemoInstall

babel-plugin-s2s-action-root-ts

Package Overview
Dependencies
94
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-s2s-action-root-ts

generate action root


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Install size
8.95 MB
Created
Weekly downloads
 

Readme

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

Last updated on 15 Dec 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc