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

dido

v0.0.0

Published

yet another fed tool

Downloads

1

Readme

dido

NPM version

      ___
  ____/ /___  ____  ____
 / __  / __ \/ __ \/ __ \
/ /_/ / /_/ / / / / /_/ /
\____/\____/_/ /_/\__, /
                 /____/

又一个前端工具

安装

$ npm install -g dido
# MUST
$ dido patch

国内环境,对以上两个命令添加参数 --registry https://registry.npm.taobao.org,可提高安装速度

使用

1、查看帮助

$ dido [command] -h

2、初始化项目

$ dido init [type]

# Single Page Application
$ dido init spa

# General Web Project
$ dido init web

3、项目构建

$ dido build [type]

# Single Page Application
$ dido build spa

# General Web Project
$ dido build web

参数

-r, --root <root>    Web 服务根目录,默认 `.`
-v, --views <views>  视图文件,默认 Web 服务根目录下的 `*.html`
-i, --i18n <i18n>    需要构建的语言版本,默认不区分语言
-f, --force          先清空输出目录
-d, --debug          DEBUG, 仅生成 `seajs 及其 config.js`

特性

  • [x] 增加代码检查(JSHINT)
  • [x] JS 文件打包压缩
  • [x] 资源 MD5 值生成
  • [x] 资源链接添加 MD5 串
  • [x] CSS 文件生成与压缩

4、生成语言包(待翻译)

$ dido i18n

5、启动 Web 服务

$ dido serve

参数

-r, --root <root>  Web 服务根目录,默认 `.`
-H, --host <host>  服务域名,默认 `127.0.0.1`
-p, --port <port>  监听端口,默认 `9527`
-m, --mock <mock>  接口请求模拟数据存放目录,默认 `api`
-o, --open         服务启动后,自动在浏览器打开,默认 `false`
-d, --debug        显示 Debug 信息,默认 `false`

特性

  • [x] 静态文件服务
  • [x] 模拟接口请求
  • [ ] 自动编译 SCSS
  • [ ] 自动重启服务

TODOs

  • [ ] 自动同步代码到 SVN