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

vue-ts-template-cli

v0.0.1

Published

项目初始化后,需要自行配置:

Readme

Vue + TypeScript Project

项目初始化后,需要自行配置:

  • index.html 中对应的文档标题
  • .yarnrc 中 Yarn 的仓库地址
  • bin 目录中对应的部署脚本
  • vue.config.js 中对应的端口号
  • 此 README.md 文档

项目介绍

Vue + TypeScript 项目模板,源自使用Vue-Cli@4创建的使用了TypeScript语言的Vue项目。

预置了下列功能:

  1. 基本的TypeScript编译和解析支持(Vue-Cli@4 + vue-property-decorator)
  2. Vue-Router、路由懒加载(Vue-Cli@4)
  3. Vuex(Vue-Cli@4 + vuex-class )
  4. 严格的代码检查工具(ESLint + Prettier + Stylelint
  5. commit之前的代码检查(Vue-Cli@4 + lint-staged)
  6. Less,并且自动导入全局样式变量(Vue-Cli@4 + style-resources-loader)
  7. 针对Axios的封装(导出get等方法,全局Loading、网络错误自动提示并在Vue.config.errorHandler中捕获)
  8. 预置三个环境变量和对应的编译脚本(development/production/staging)
  9. 按需引入ElementUI(ElementUI插件)
  10. 封装好的导航组件(el-menu)
  11. 百度地图的引入以及辅助方法(如果不需引入的话需要手动删除来压缩代码)
  12. Websocket的辅助方法
  13. 单元测试(Vue-Cli@4 + Jest)
  14. /src/utils中其他一些预置的辅助方法(date-fns + js-cookie)
  15. 针对百度内部的持续集成脚本

代码提交

使用根目录下的 git_push_nolint.sh 脚本进行提交

git_push_nolint.sh feature-v1

技术栈

主要技术栈:

  • Vue
  • TypeScript
  • Vue-Router
  • Vuex
  • ElementUI

脚本

# 安装依赖
yarn install

# 开发 8000 端口
yarn serve

# 编译(生产环境)
yarn build

# 编译(开发环境)
yarn build-dev

# 编译(测试环境)
yarn build-staging

# 本地 7000 端口预览编译后文件
preview

# 格式化 src 目录下文件
yarn prettier