Socket
Book a DemoInstallSign in
Socket

bone-act-browserify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bone-act-browserify

browserify for bone

1.0.1
latest
npmnpm
Version published
Maintainers
1
Created
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

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.