xweinre

1.0.1 • Public • Published

@ali/weinre

Introduction

Weinre的二次封装,具有自动注入调试脚本功能

Options

Install

$ tnpm install @ali/weinre

Usage

var gulp = require('gulp'),
    connect = require('gulp-connect');
var weinre = require('@ali/weinre');
 
gulp.task('debug', function(){
    //启动weinre
    weinre.run();
    //本地服务器
    connect.server({
         middleware: function (connect, opt) {
          //添加中间件 自动添加调试脚本
          return [weinre.inject()]
         },
         livereload: true
    });
})

License

MIT

ChangeLog

Dependencies (4)

Dev Dependencies (2)

Package Sidebar

Install

npm i xweinre

Weekly Downloads

16

Version

1.0.1

License

MIT

Last publish

Collaborators

  • guobiao.xgb