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

@v-act/cra-template-project

v1.0.12

Published

VAct项目模板 # 使用说明

Readme

VAct项目模板

使用说明

初始化VAct项目

快速开始

使用以下命令快速开始初始化:

//npx
npx create-react-app my-vact-project --template=@v-act/project

//npm
npm init react-app my-vact-project --template=@v-act/project

//yarn
yarn create react-app my-vact-project --template=@v-act/project

全局安装脚手架

当然,还可以全局安装create-react-app,命令如下:

npm i -g create-react-app

使用create-react-app命令创建VAct组件,命令如下:

create-react-app my-vact-project --template=@v-act/project

启动开发环境

VAct项目初始化完成后,使用命令:

//npm
npm run vact:start

//yarn
yarn vact:start

启动开发环境。

开发VAct项目

在pages目录下,添加自己组件定义,组件定义遵循Next.js规范,具体请参考 Next.js官网

命令说明

vact:start

启动VAct项目开发环境,支持热更新。 使用样例:

//npm
npm run vact:start

//yarn
yarn vact:start

vact:publish

将项目部署到VTeam项目中,根据向导完成部署。 参数列表: | 参数名称 | 参数描述 | 是否必填 | | :---: | :---: | :---: | | -u | vteam账号 | 否 | | -p | vteam密码 | 否 | | -n | vteam单号 | 否 |

如未传递账号、密码及单号信息,将以向导的方式输入。使用样例:

//npm
npm run vact:publish
npm run vact:publish -u=test -p=*** -n=Task20211015048

//yarn
yarn vact:publish
yarn vact:publish -u=test -p=*** -n=Task20211015048

注意,如果当前构件存在vact:build命令,会自动执行该命令。

vact:test

运行测试脚本,使用样例:

//npm
npm run vact:test

//yarn
yarn vact:test

详细信息请参考:Next.js ESLint

vact:install

从VTeam中安装VAct组件,根据向导完成VAct组件安装。如未传递插件编号,则重新安装所有VAct组件。使用样例:

//npm
npm run vact:install
npm run vact:install D:\\test\\test.jar
npm run vact:install vactcomponentCode

//yarn
yarn vact:install
yarn vact:install D:\\test\\test.jar
yarn vact:install vactcomponentCode

vact:clear

清除缓存信息,当执行vact:publish等命令时,会将用户账号、密码等信息缓存在本地,该命令将清除此缓存信息。使用样例:

//npm
npm run vact:clear

//yarn
yarn vact:clear

vact:pack

将VAct项目打包成应用服务器构件,生成路径为当前VAct项目根目录,文件名为***.jar,使用样例:

//npm
npm run vact:pack

//yarn
yarn vact:pack

注意,如果当前构件存在vact:build命令,会自动执行该命令。