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

my-dd-program-cli

v2.0.2

Published

钉钉小程序脚手架

Downloads

2

Readme

####脚手架使用步骤:

1.npm install my-dd-program-cli -g
2.my-dd-program-cli init <项目名>
3.依次输入项目描述和项目开发者名称,待出现项目初始化完成,小程序项目模版初始化结束。

#小程序初始化项目模版使用说明如下:

1、目录结构
├── assets # 静态资源文件
├── components # 全局自定义组件
├── pages # 页面文件
├── utils
│ ├── config.js # 配置文件
│ ├── request.js # 全局请求封装
│ ├── token.js # token请求,用户选择
│ ├── unit.js # 工具库
│ ├── uploadFile.js # 文件上传方法
├── app.js
├── app.json
├── app.acss



2、全局对象 dd 扩展 自定义 $ 对象
通过/utils/unit.js 导出自定义工具库对象 $, 在app.js 中 onLaunch方法内扩展 dd.$对象

3、目前支持的全局方法,无需单文件引用,全局使用即可
方法名	参数	说明
dd.$.showLoading(content)	content	全局加载状态,content加载文字
dd.$.showToast(content, type = null)	content,type	轻提示,content必传,type默认null,其他参考dd文档
dd.$.getDataSet(e, key)	e, key	获取绑定在元素上的data属性值,event对象,key:字符串,data-后的字符串,data-key=“123”
dd.$.request(object)	object	object包含,url、method-默认get、data、contentType-默认application/json,返回值为promise,请求体内有全局错误处理
dd.$.uploadFile(paths)	paths	paths图片数组,返回值为Promise.all
dd.$.***
可根据需求自定义扩展方法