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

kingdee-cli

v1.0.5

Published

金蝶云苍穹自定义控件脚手架(华创云联内部使用)

Downloads

14

Readme

金蝶云苍穹自定义控件脚手架

前提

金蝶云苍穹自定义控件脚手架(kdcli)是华创云联(https://hcylsoft.cn)内部使用的脚手架,主要用于创建基于 Vue 和 React 的自定义控件。

说明

  • 通过命令行运行脚手架,选择生成vue或者react的自定义控件项目。
  • vue默认整合了element-ui,采用webpack5进行构建项目。
  • react默认整合了KDesign,采用webpack5进行构建项目。

安装

全局安装脚手架

npm install -g kingdee-cli

创建项目

kdcli create app-name

配置

在src目录里,分为web端和mobile端,isv目录下默认有hcyl目录,根据自己的开发商标识,建立目录,比如:kingdee 在kingdee下,放置各个领域的目录(moudleId),比如:cq。 在cq目录下,放置各个控件的文件夹,文件夹命名使用schemaId。

在build目录里的custom.configInfo.js中,需要根据对应的需要修改client、isv、moduleId的值

在server.js里,配置允许跨域访问的域名、监听端口、静态资源文件夹(需要对nodejs有了解)

打包

命令终端进入项目根目录后,运行npm run dev(开发模式)或者npm run build(生产模式),这个步骤需要有node 如需要打成zip包,需手动将控件目录下的css目录、lang目录、index.js文件、index.js.map文件打在一个zip包里

启动服务

命令终端进入项目根目录,运行nodemon server.js 此功能优化开发过程中出现频繁打zip包的过程

debug调试

在请求头的query部分末尾加上kdcus_cdn=http://localhost:3001,如果有hash,则在hash末尾也加上,就可以加载你本地写的自定义控件的代码,开发过程中无需打包上传,也无需修改代码后重启整个服务,方便快捷。

示例图片

自定义控件 自定义控件