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 🙏

© 2026 – Pkg Stats / Ryan Hefner

datau-scene-sdk-tpl

v1.0.2

Published

场景组件工程模板

Downloads

19

Readme

datau-scene-sdk-tpl

本地开发

npm start

访问:http://localhost:8000/portal

构建

npm run build

分别产出:

  • docs-dist:组件文档 Demo
  • es:组件 esmodule
  • lib:组件 commonjs
  • dist:组件 umd

开发组件 Demo 及配置,详见dumi 官网文档 组件构建及配置,详见father文档

常用命令

  • 本地开发调试(同文档 Demo 调试):npm start
  • 文档 Demo 调试:npm run docs:dev
  • 文档 Demo 构建:npm run docs:build
  • 组件资源构建:npm run comp:build
  • 组件资源检查:npm run comp:doctor
  • 组件 umd 配置导出到 pkg.json:npm run comp:externals
  • 组件代码打包(code.zip/sourcecode.zip):npm run comp:zip
  • 组件发布 npm 包:npm publish

目录说明

├── docs:Demo站点实现目录,引用src/demos中的 tsx 文件
├── plugins:构建插件目录
│   ├── father.ts:用于 comp:build 自定义 father 构建插件
│   └── index.ts:用于 docs 自定义 dumi 插件
├── src
│   ├── demos:组件使用 Demo 代码实现
│   ├── typings.d.ts:公共类型定义
│   ├── interface.ts:自定义类型声明
│   ├── services:请求服务目录
│   ├── utils:公共方法目录
│   ├── components:内部公共组件集目录
│   │   └── compX
│   │       ├── index.tsx
│   │       └── index.less
│   ├── index.less:入口样式【用于组件或SDK工程】
│   └── index.ts[x]:入口【用于组件或SDK工程】
├── .dumirc.ts:dumi 组件文档构建配置
├── .editorconfig:编辑器配置,用于统一代码风格
├── .eslintignore
├── .eslintrc.js
├── .fatherrc.ts:father 构建配置,用于 build lib/es/dist 目录产物
├── .gitignore
├── .prettierignore:代码格式化忽略配置
├── .prettierrc.js:代码格式化配置
├── .stylelintrc
├── package.json
├── README.md:使用文档说明
└── tsconfig.json