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

@inbiz/cli

v4.2.0-beta.0

Published

inbiz cli工具

Downloads

90

Readme

支持命令

  1. start 开发模式
  2. start:https 开发模式, 采用https协议
  3. build 打包
  4. build:development 打包不压缩
  5. plop 生成模板
  6. init 初始化一个模板

更新日志

2.0.2

  1. 添加InbizComponent组件用于在自定义组件中渲染平台内部组件,添加getInbizComponent方法用于直接获取平台组件方法比InbizComponent更灵活; 注意InbizComponent组件为受控组件
  2. webpack 打包file-loader 添加webp|gif|woff2|woff|ttf类型

2.0.3

  1. 添加 getPathMessage 方法,获取多语言完整路径, 在设计器中需要配置多语言时使用
  2. 打包添加显示打包进度
  3. 解决InbizComponent会提示组件不存在的问题

2.0.5

  1. 添加 src/common 目录, 公共组件目录并支持多语言
  2. 插件打包 chunk文件添加 contenthash
  3. 解决 getMessage, useGetMessage多语言方法,当多语言不存在时,会显示额外字符串

3.0.0

支持加载更多的平台开发组件, 需要平台支持6.4.0.0以上版本

3.0.1

添加 CacheData 方法, 用于公共请求数据缓存, 避免重复请求, 提高性能

    // 初始化实例
    import {CacheData} from '@inbiz/cli';
    const cache = new CacheData({
        // 需要缓存的方法结果
        test: (a:number) => {
            console.log('test')
            return new Promise((resolve, reject) => {
                setTimeout(() => {
                    resolve(a)
                }, 1000)
            }) as Promise<number>
        }
    });
    cache.get(
        key:string, // 传入对象对应的key
        options?: {
            // 只有一个参数时, 可以不用数组包裹,多个参数需要
            params?: [], //对应方法需要的参数,不需要时可不传。只有在还未缓存结果时或需要强制刷新数据时使用
            refresh?: boolean // 是否需要强制刷新缓存属性,重新执行方法
        }
    ).then(res => {
        // 成功时执行
    }).catch(error => {
        // 失败时执行
    })

    cache.updateValue(key, value) // 强制更新缓存值


    //调用
    cache.get('test', {params: 1}).then(res => {

    });
    //多次调用,test对应方法不会执行, res返回上传缓存的值
    cache.get('test').then(res => {})

3.0.2

  1. file-loader 更换会原生的type: asset
  2. 设计器端入口文件和组件脱离,用于处理入口文件不缓存,其它资源缓存

3.0.3

  1. 修复没有schema.ts文件设计器不显示问题

3.0.15

  1. npm run plop 支持插槽模板

4.0.0

  1. 适配6.6版本多语言无法向下兼容

4.0.1

  1. 支持6.6多语言打包路径调整

4.0.3

  1. 支持自动生成组件之间多语言关系

4.0.10

添加黑名单功能,在 src\config\index.ts 导出 export const appBlackList = []; export const flowBlackList = [];

4.0.14

新增 publish 命令发布站点包, outputh输出路径;isplugin 是否打包自定义组件, 默认为true inbiz-cli publish outputh=./xxxxx isplugin=true

4.0.15

修复自定义组件公共多语言无法加载问题

4.1.0

新增组件配置同步打包,在config/index.js中配置需要同步打包组件组件名, 区分web端和wap端;只在预览端生效

// 示例如下
// 未配置此属性,或没有配置此列表中,还是采用默认异步加载的形式
config.syncComponents = {
    web: ['Test', 'Demo','Demo__17237fe2-4a17-4148-ad30-1ccdb8b361fe'],
    wap: ['Test', 'Demo']
}

4.1.1

新增轻门户显示配置 在src/config/index 中导出

export const gateway = [
    {
        name: 'test',
        components:['Test']
    }
]

4.1.2

添加多语言打包命令,用于vscode打包

4.1.3

优化webpack打包配置optimization。build模式默认关闭devtool

4.2.0-beta.0

  1. 添加异步加载组件公共方法 createAsyncComponent
  2. 默认修改设计器组件加载方式为为异步加载

异步加载 示例如下

    import { createAsyncComponent } from '@inbiz/cli';

    //原写法
    import test from '../../preview/web'
    // 新写法
    const test = createAsyncComponent(() => import('../../preview/web'));