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

billdesigner

v3.0.0-snapshot.24

Published

mdf bill setting

Downloads

5

Readme

@mdf/bill-setting


[TOC]

1. 环境安装

  1. 需要安装ynpm工具使用内网镜像源进行安装
$ npm install ynpm-tool -g
  1. 在用友内网环境下,通过ynpm install安装即可

2. 该工程包的安装和使用

  1. 安装 @mdf/bill-setting
$ ynpm install @mdf/bill-setting --save
  1. 该工程包的使用

(1) 通常在脚手架公里引用,并绑定redux中的initData

  import BillModal from '@mdf/bill-setting/lib/index';
  import { initData } from '@mdf/bill-setting/lib/redux/billmodal';
  
  initData({data, readOnly, type}); 
  // data--必选数据,需要包括cBillNo,cBillType,cName等属性以及iTplId属性,
  // readOnly--可选参数,设置readOnly为true时table只允许查看不允许编辑,
  // type--可选参数,当类型为report时需传入

(2) reducers.jsx中新增,用来绑定redux数据

  import billModal from '@mdf/bill-setting/lib/redux/billmodal'

(3) 调用

  <BillModal /> 

(4) 调用initData 弹出弹窗

  let data = { cBillType: "Voucher", cBillNo: "aa_merchantfinref", cName: "客商档案",iTplId:77756 }
  this.props.initData({ data });

3. 调试插件

使用babel监听文件改变输出lib到项目脚手架node_modules/@mdf/bill-setting/lib下,具体脚本命令参考debug.js

  1. 修改debug.js调试脚本,修改常量targetPackage的值的相对路径为你的项目真实路径 debug.js本地修改不要提交
  2. 保存后执行npm run debug在控制台会看到输出日志,babel转换过程以及最终的真实绝对路径

启动监听后,修改源码可以实时构建,并且输出到项目内,打开浏览器调试脚本即可是源文件

4. 发布

除了本地开发debug外,需要发布正式内网ynpm包. 目前发包没有做线上发包的工作。 只能本地发包。 重要的事情说三遍!注意!注意!注意!

  • 发包时为了确保不产生意外,请先删除node_modules 和 package-lock.json后重新运行ynpm i命令
  • 安装完毕后,运行npm run snapshot 或 npm run release命令来发包

重要说明:

  • mdf-metaui-web develop分支依赖的是bill-setting的snapshot
  • mdf-metaui-web release/2.9分支依赖的是bill-setting的release

snapshot包

需要执行下面命令:

  $ npm run snapshot

注意:

  • 尽量不要手动更改tag版本号,该命令会自动更新后发包
  • 发包后,务必记得push package.json的版本号,方便团队成员下次能正确发包

release包

需要执行下面命令:

  $ npm run snapshot

[说明] 这样就会产出lib资源 ES5 代码 css
[说明]发布后浏览镜像仓库看是否完成:
https://package.yonyoucloud.com/package/detail/@mdf/bill-setting https://ynpm.yonyoucloud.com/#browse/browse:ynpm-private