npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gulp-rax-qap

v0.0.23

Published

[qap](http://open.taobao.com/docs/doc.htm?treeId=260&articleId=105545&docType=1)项目的gulp插件,替换[qap-cli](https://www.npmjs.com/package/qap-cli)。

Downloads

34

Readme

qap项目的gulp插件,替换qap-cli

特性

  • [x] 自动升级
  • [x] 检测jssdk
  • [x] 调试
  • [x] 打包

打包

gulp.task('package', function(cb){
    var zip = require('gulp-rax-qap').package({
        qapJson:'./qap.json',//必须
        // update:true,
        // jssdk:{
        //     version:'stable',//defaul beta|stable
        //     update:true}//是否每次debug/package都检测sdk升级
        }).zip;
    gulp.src('build/**/*.js')
        .pipe(zip('package.zip'))
        .pipe(gulp.dest('_output'));
});

调试

用法

gulp.task('debug', function(cb) {
    var debugServer = require('gulp-rax-qap').devtool;
    debugServer({
        webpack: require('webpack.config.js') //必须字段
    }, cb);
});

详细参数

{
    ip: '30.*', //调试所用的IP,支持正则表达式,默认使用检测到的第一个ip
    port: 8088, //调试端口,default 8088
    fileServerPort: 8080,//文件映射端口,方便客户端获取qap.json
    verbose: true, //是否输出普通日志,default false
    webpack: require('webpack.config.js'), //必须字段,
    jssdk: {
        version: 'stable', //defaul beta|stable
        update: true //是否每次debug/package都检测sdk升级,否则只会每天数次运行检测更新
    },
    webpackDevServerConfig: {//webpack启动参数,参考:https://webpack.github.io/docs/webpack-dev-server.html
        hot: false,//default false
        inline: true,//default true
        quiet: true,//default quiet
        publicPath: webpack.output.publicPath,
        headers: { 'Access-Control-Allow-Origin': '*' },
        contentBase: path.resolve(process.cwd(), './')
    }, //overwrite defualt
    openUrl: ['h5', 'debug', 'page'] //打开的页面,h5(h5版本) | debug(调试页面) | page(单个js页面),默认打开三个
}

打包

to be continued...