Socket
Socket
Sign inDemoInstall

bone-act-browserify

Package Overview
Dependencies
150
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bone-act-browserify

browserify for bone


Version published
Maintainers
1
Created

Readme

Source

bone-act-browserify

browserify for bone plugins

安装及使用

通过npm安装

$ npm install bone-act-browserify 

安装后在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

Last updated on 04 Jul 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