Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@patternplate/babel-preset

Package Overview
Dependencies
Maintainers
5
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternplate/babel-preset

@babel preset for compilation of @patternplate projects

  • 3.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by5.56%
Maintainers
5
Weekly downloads
 
Created
Source

Documentation and development interface for component libraries

@patternplate/babel-preset

  • Framework independent
  • Bring design docs to live with real components
  • Powerful search and meta data system

This is the contributor documentation for @patternplate/babel-preset For user docs see patternplate.github.io

About @patternplate/babel-preset

@patternplate/babel-preset is the shared babel configuration in use across the patternplate mono repoository. It abstracts away the complexities of babel compilation for universal, web and server targets.

Quick start

git clone https://github.com/patternplate/patternplate.git
cd patternplate/packages/babel-preset
yarn
yarn start

Usage

{
  "file": "package.json",
  "babel": {
    "presets": [
      "module:@patternplate/babel-preset"
    ]
  }
}

with options

{
  "file": "package.json",
  "babel": {
    "presets": [
      ["module:@patternplate/babel-preset", {
        "targets": ["node"]
      }]
    ]
  }
}

Options

  • targets ("node" | "web")[]? list of transpilation targets. Defaults to ["node"]. Default is disabled when specified.

    • node: Enable transpilation for Node.js 6
    • web: Enable transpilation for browser matrix
  • sources ("react" | "styled-components")[]? list of source types. Defaults to ["node"]. Default is disabled when specified.

    • react: Transform JSX
    • styled-components: Enable styled-components specific transpiler steps

License

Copyright by SinnerSchrader. All @patternplate packages are released under the MIT license.

FAQs

Package last updated on 06 Jan 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc