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

@mylab/fa-uni-cluereport

v1.0.0

Published

uniapp 线索行为上报

Downloads

5

Readme

目录相关

lib:存放编译结果(鉴于浏览器兼容性,ES6标准的JavaScript编译为ES5)
src:开发目录.babelrc:babel的配置文件(使用webpack的话也可以写在 webpack.config 中)
.gitignore:git 配置文件,配置忽略版本管理的对象
.npmignore:npm配置文件,配置发布到 npm 时的忽略对象
index.js:统一导出的出口文件
LICENSE:版权信息文件,在新建仓库时根据选择自动生成
package.json:项目管理文件,项目初始化时自动生成
README.md:项目说明文件,可在新建仓库时生成该文件,根据项目内容自行编辑另外,如果使用 webpack 的话,还要有一个 webpack.config 的配置文件

版本号相关

npm version后面参数说明:

patch:小变动,比如修复bug等,版本号变动 v1.0.0->v1.0.1
minor:增加新功能,不影响现有功能,版本号变动 v1.0.0->v1.1.0
major:破坏模块对向后的兼容性,版本号变动 v1.0.0->v2.0.0

安装

在 uniapp 的项目安装

npm install @fk/fa-uni-cluereport --save --registry=http://registry.npm.faidev.cc/

配置

uniapp 框架默认是不会去转换 node_modules 下模块的代码的,如条件编译,uni.getSystemInfoSync 等等代码的转换。

注意:由于 uniapp 使用 vue-cli 去搭建的项目架构,如果我们需要 uniapp 框架帮转换我们组件开发的 npm 包,如现在将要使用的 @fk/fa-uni-cluereport ,需要做如下的配置操作。

在 vue.config.js 文件配置 transpiledependencies 字段,可以参考 transpiledependencies

module.exports = {
  // 省略其他字段...
  transpileDependencies: ['@fk/fa-uni-cluereport'] // 配置需要转换的包名称
  // 省略其他字段...
}

使用

1、引入 fkReport

let fkClueReport = require('@fk/fa-uni-cluereport');

2、修改 config 参数为自己平台的参数, 主要是设置上报的URL

fkReport.setOptions(URL);