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

@xtp-smart/cli

v1.0.7

Published

xtp-smart的命令行工具

Downloads

16

Readme

安装smartx

npm install -g @xtp-smart/cli

使用smartx create创建插件项目

smartx create

通过命名启动了一系列引导式的配置,最终创建出一个脚手架工程,为开发者快速开发提供帮助。

插件package.json字段说明

| 字段名称 | 字段Key | 字段Value说明(均为字符类型"") | | -------------------------- | --------------------- | ------------------------------------------------------------ | | 插件ID | name | 插件唯一ID,推荐字母和数字组合 | | 插件菜单名称 | menuText | 插件用于在应用程序中显示的菜单名,推荐中文 | | 插件简介 | description | 简单介绍 | | 插件作者 | author | 默认为暂无 | | 插件兼容的最低SmartSDK版本 | minSmartSdkVersion | 目前SmartSDK版本有:1.0.0 | | 插件类型 | plugin_type | "普通插件":"PLUGIN_TYPE_SMART", "功夫策略插件":"PLUGIN_TYPE_ALPHAX" | | 插件业务类型 | plugin_domain | "手工交易":"PLUGIN_DOMAIN_TRADE_MANUAL", "客户端策略":"PLUGIN_DOMAIN_TRADE_AUTO_CLIENT", "服务端策略":"PLUGIN_DOMAIN_TRADE_AUTO_SERVER", "客户端服务端结合策略":"PLUGIN_DOMAIN_TRADE_AUTO_CLIENT_SERVER", "行情展现":"PLUGIN_DOMAIN_QUOTE", "算法交易":"PLUGIN_DOMAIN_ALGO", "程序化交易":"PLUGIN_DOMAIN_PROGRAM_TRADEL", "扩展":"PLUGIN_DOMAIN_EXTENTSION", "分析展现":"PLUGIN_DOMAIN_ANALY" | | 插件关键字 | keywords | 用于插件市场搜索的关键字:keywords1,keywords2,keywords3 | | 关联的插件 | rely_items | 插件关联调用的插件ID | | 插件是否公开 | isPublic | "true"|"false" | | 插件是否开源 | isOpensource | "true"|"false" | | 插件开源仓库类型 | repository.type | "git"|"svn" | | 插件开源仓库URL | repository.url | git://xxxxx|http://xxxx | | 插件主页URL | homepage | http://xxxxx | | | | |

脚手架模板

我们预置了几种常用的脚手架模板,让你上手开发更简单。

空项目

没有任何预置依赖,在插件就绪后,打印了 "hello world"

TS项目

没有界面的工程,让你专注于开发核心业务逻辑。 使用 TypeScript 语言开发整个逻辑,类型校验让开发时无需担心拼写错误与错误调用。

手工下单

一个类实战的插件项目,通过手动下单向服务器提交委托,接收回报。

使用Vue构建,引用了 @xtp-smart/style@xtp-smart/ui 项目

问题反馈

如果使用插件时遇到了任何BUG,可以在smart客户端的主项目中反馈问题。

QQ 交流群: 659577632