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

gvp-plugin-cli

v0.0.18

Published

this is a tool for gvp external component

Downloads

57

Readme

this is a tool for 敏捷BI build external component 详细文档

整体流程

process

使用步骤

0 下载工具(require)

// 全局安装cli工具
npm install -g gvp-plugin-cli

// 安装gvp-plugin-cli后,就可以在任何目录使用gvp命令
gvp

Usage: gvp-plugin-cli [command] [options]

Options:
  -V, --version              output the version number
  -h, --help                 output usage information

Commands:
  init [options] <app-name>  Generate a template for project
  generate                   Generate componets json
  sync [options]             Updata componnet Info to platform
  serve [entry]              server a .js file in production mode with zero config
  build [entry]              build a .js file in production mode with zero config

1 初始化项目(require)

// 生成项目文件夹自动下载依赖
gvp init project-test2

? name:(project-test2) 
? description: (This is a component)
downloading template
installing dependens

2 本地开发(rquire)

// 开启本地服务进行本地调试开发
gvp serve

ty-server

具体的可以参见组件开发及调试

3 打包组件

上传组件之前,需要将组件打包,在组件包根目录执行命令:

gvp build

打包成功后会在根目录下生成dist文件夹。

5 上传插件

上传插件前,需要对dist目录下的package.json文件添加如下字段

{
  "name": "demo-03-tsy",     // 名字 
  "author": "jjc",           // 作者
  "groupId": "com.gridsum",  // 所在组空间
  "artifactId": "demo.03",   // 插件id
  "version": "3.0.0",        // 版本
  "comment": "描述"           // 插件描述
}

把dist目录里的文件打包为一个zip包,通过GVP的插件功能进行上传

(1) 自定义插件
通过仪表盘页面的项目功能菜单里的插件应用功能,上传自定义插件。自定义插件只供单个项目使用

(2) 预置插件
通过管理中心里的插件管理页面,上传预置插件。预置插件可以供指定的多个项目使用

6 组件使用

详细参见组件使用