New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bone-act-babel

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bone-act-babel

> babel for bone plugins

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bone-act-babel

babel for bone plugins

NPM version NPM version travis

安装及使用

通过npm安装

$ npm install bone-act-babel 

安装后在bonefile.js文件内通过act()加载

var bone = require('bone');
var babel = bone.require('bone-act-babel');

bone.dest('dist')
    .src('~/src/react.jsx')
    .act(babel({
        "presets": ["es2015", "react"],
        "plugins": [
            "transform-react-jsx"
        ]
    }))
    .rename({
        ext: '.js'
    });

ps: 示例中使用了babel-preset-es2015babel-preset-reactbabel-plugin-transform-react-jsx,需要另外安装

filter

默认设置只针对源文件后缀为.js.jsx文件进行处理

其他

处理器开发以及使用请参考处理器

FAQs

Package last updated on 14 Jan 2016

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