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

hvigor-easy-router-plugin

v1.1.6

Published

a hvigor plugin for compile router info to string resource

Downloads

11

Readme

hvigor-easy-router-plugin

a hvigor plugin for compile router info to string resource

一个用于将路由信息编译为字符串资源的hvigor插件

This plugin is developed to assist with @easy/router

该插件是为辅助@easy/router而开发

版本日志

安装

在工程根目录找到hvigor子目录,双击打开文件hvigor-config.json5. 在dependencies节中,添加如下包配置:

  ... 其他内容
  "dependencies": {
    "hvigor-easy-router-plugin": "^1.1.5" // 相应版本
  }
  ... 其他内容

相应版本:

  1. 请注意,当前仅支持hvigor@ohos/hvigor-ohos-plugin4.1.2版本,hvigor-easy-router-plugin的版本请使用\d+.\d+.412
  2. 后续会推出支持hvigor@ohos/hvigor-ohos-plugin4.3.0版本,届时hvigor-easy-router-plugin的版本请使用\d+.\d+.430
  3. 总之,版本号的最后一节,当与hvigor、@ohos/hvigor-ohos-plugin`的版本相对应。

PS : 当前已发布1.1.5版本,该版本起,会支持所有版本的hvigor构建,请优先使用该版本或更高版本。

添加成功后,IDE会在编辑器右上角提示Sync Now,此时点击Sync Now,或者自行点击:File-->Sync and Refresh Project菜单.

并等待同步完成。

注册插件

等待同步完成后,在步骤1中模块下找到hvigorfile.ts文件(如:{project_dir}/entry/hvigorfile.ts),并打开编辑,注册插件。

编辑后,如下所示:

import { hapTasks } from '@ohos/hvigor-ohos-plugin';

// 导入插件包
import RouterCompilePlugin from 'hvigor-easy-router-plugin'

export default {
  system: hapTasks,
  // 注册插件
  plugins: [RouterCompilePlugin()]
}

版本日志

| 版本号 | 发布日期 | 说明 | |---------|------------|------------------------------| | 1.1.6 | 2024-07-23 | 支持打包App命令 | | 1.1.5 | 2024-06-13 | 支持所有版本Hvigor;支持编译Har包内页面 | | 0.9.412 | 2024-06-04 | 修复Windows系统下编译问题 | | 0.8.412 | 2024-06-03 | 优化递归查找依赖的逻辑 | | 0.7.412 | 2024-05-30 | 支持编译模块的runtimeOnly配置 | | 0.6.412 | 2024-05-27 | 修复递归查找依赖包不正确的问题 | | 0.5.412 | 2024-05-27 | 支持路由正则表达式 | | 0.4.412 | 2024-05-24 | 首个版本 |