Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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

Install

npm i xweinre

DownloadsWeekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar