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

ucf-webapp

v1.2.0

Published

开发思路:[大型企业应用在前端微应用视角下的思考](https://github.com/iuap-design/blog/issues/306)

Downloads

4

Readme

项目启动调试

sssda sas

1、环境准备

  • node.js (10.15+)【必需】

  • npm (6+)【必需,安装node时候自带,无需单独下载】

2、安装依赖包

依次执行以下命令:

安装 ucf-cli 全局工具


npm install ucf-cli -g

安装 ynpm指定镜像版本(注意ynpm版本需要>[email protected]) 全局工具

[email protected]及以上版本支持当前我们5.0.1新示例节点的最新package.json(里面指定的是@yonyou/[email protected]版本)


npm install [email protected] -g 

如果win下npm安装不成功时,尝试cnpm安装ynpm


npm install -g cnpm -registry=https://registry.npm.taobao.org

cnpm install [email protected] -g 

安装项目依赖包(当-outside出现超时或报错时,尝试-outsidePre指令)

ynpm install -outside

ynpm install -outsidePre

3、更改代理配置

设置 ucf.config.js 配置文件中的proxy,

proxy: [
  {
    // true 开启当前配置,false 关闭当前配置
    enable: true,
    headers: {
      // 与下方url一致即可
      "Referer": "https://mock.yonyoucloud.com"
    },
    // 代理的路由到对方路由
    router: [
      '/mock'
    ],
    //代理到的地址
    url: 'https://mock.yonyoucloud.com'
  }
]

4、启动服务本地调试

项目启动3003端口,请确保不被占用,或者通过更改 package.json 第七行的 3003 更改端口号

npm start

浏览器自动打开 一主多子界面

打包产出命令

npm run build

注意:环境部署时,必须要替换指定字符串。如下

如使用开发者中心部署,dockerfile 参考 docs/dockerfile.md 文件。替换时注意要带 /,参考示例

  • 一主多子上下文 pom.fe.new.ctx 示例:/demo-contract-server
  • 树卡上下文 pom.fe.treecard.ctx 示例:/treecard/demo-treecard-server
  • 单表上下文 pom.fe.currency.ctx 示例:/currency/demo-server
  • 参照上下文 pom.fe.mdf.ctx 示例:/upc-fe
  • 打印 pom.fe.print.domain 示例:https://u8cprint-daily.yyuap.com
  • 附件 pom.fe.attchment.domain 示例:https://yb-daily.yyuap.com
  • 流程 pom.fe.ys.domain 示例:https://ezone-u8c-daily.yyuap.com

注:如果要开发节点等请参考详细ucf文档