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

yee-vue-test-project

v1.0.13

Published

测试发布一个npm包

Downloads

4

Readme

Vue3 前端项目种子

相关项目资源,请看这里

  • 点击这里查看YAPI
  • 原型图
  • 产品文档

如何开始?

clone 下载项目到本地 /path/to/<project-name>

$ cd <project-name>
$ npm install
$ npm run dev

访问 http://localhost:3000/ 即可开始开发

构建生成环境代码

$ npm run build

即可产出生成环境代码在 /dist 目录中

本地 Mock 代理开发

打开 vite.config.js 编辑 proxy 即可指向接口代理服务

module.exports = {
    proxy: {
        // yApi 接口代理
        // 将所有 /[template]-api 开始的接口,指向 mock 服务器
        '/[basename]-api': 'http://yapi.cbs.bacic5i5j.com/mock/20',
    }
}

测试环境 联调 模式

通过设置,可以将本地接口请求映射到测试环境,方便调试代码

此开发模式中,需使用80端口,如果有程序占用80端口,请先将它停止

  • 1 设置电脑 hosts local.cbs.bacic5i5j.com 127.0.0.1
  • 2 在项目根目录中命令行运行 npm run proxy

    通过参数可控制指向的测试环境如:npm run proxy -- --env=dev --env 是测试/生产环境的名称,可选有 dev、sit-cbs、uat、sut、beijing 等 此参数可忽略,默认指向 dev 环境

  • 3 登录到对应环境

    --env=dev 则需要登录到 http://dev.cbs.bacic5i5j.com/base --env=sit-cbs 则需要登录到 http://sit-cbs.cbs.bacic5i5j.com/base

  • 4 打开浏览器访问 http://local.cbs.bacic5i5j.com/ 即可访问本地代码

    而所有接口请求都将根据vite-proxy.config.js 的配置映射到对应测试环境中