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

topay-cli

v2.0.0

Published

前端项目脚手架

Downloads

74

Readme

topay-cli

项目基础架构脚手架:

1.基于vue-cli的空项目脚手架
2.基于vue-cli和elementui的管理后台空项目脚手架
3.基于uniapp的空项目脚手架
4.基于egg的空项目脚手架

一、全局安装脚手架,命令行执行:

npm install topay-cli -g

二、初始化脚手架项目,如下:

1.进入测试目录test
cd ~/test // 进入测试目录test
2.初始化项目,命令行执行:
tp init ***(你的项目名称)
3.进入刚才自定义的项目名,并下载npm依赖包,命令行执行:
cd ***(刚才输入的项目名) && npm i
4.各环境打包项目,命令行执行:
npm run serve // 开发
npm run test // 测试
npm run pre // 预发布
npm run build // 线上

三、所有脚手架项目,如下:

tp init ***(你的项目名称) // 基于vue-cli的空项目脚手架
tp_v3 init ***(你的项目名称) // 基于vue-cli的vue3+ts+vuex+vue-router空项目脚手架
tp_manage init ***(你的项目名称) // 基于vue-cli和elementui的管理后台空项目脚手架
tp_manage_v1 init ***(你的项目名称) // 管理后台空项目(全新ui)脚手架
tp_cao_admin init ***(你的项目名称) // 初始化管理端(基于elementUi和vue-cli的后台管理端项目)
tp_uniapp init ***(你的项目名称) // 基于uniapp的空项目脚手架
tp_egg init ***(你的项目名称) // 基于egg的空项目脚手架
tp_egg_socket init ***(你的项目名称) // 初始化基于egg的websocket的项目脚手架
tp_react init ***(你的项目名称) // 基于react的空项目脚手架
tp_egret init ***(你的项目名称) // 基于egret(白鹭游戏引擎)的空项目脚手架

四、所有脚手架自定义指令,如下:

tp_c (-n *** -f *** -p ***) // 在当前目录下生成一个vue组件空模版

配合TOPAY-CLI管理后台项目使用;项目地址

tp_create

-n:***(生成的模版文件名称)

-p:***(生成路径:如:/Users/username/caofanghui/person/tp-cli/template,选传)

-f:***(要下载的组件名,默认vueTemplate,选传) : 在当前路径下生成一个vue模版

五、查看所有指令,如下:

tp_list // 查看所有脚手架指令
tp -v // 查看当前脚手架工具版本