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

@jtljia/cli

v1.1.1

Published

```bash npm i @jtljia/cli -g --registry=https://registry.npmjs.org ```

Downloads

6

Readme

**@jtljia/cli **

一、脚手架使用

1.安装/更新

npm i @jtljia/cli -g --registry=https://registry.npmjs.org

2.命令

| 命令 | 介绍 | | ------------- | -------------- | | jtljia -V | 查看脚手架版本 | | jtljia create | 创建项目 |

3.初始化项目

命令窗口输入jtljia create后根据提示可创建项目 carbon.png

二、项目介绍

1.项目启动&访问

在新建项目根目录下依次运行

| 命令 | 介绍 | | ----------- | -------- | | npm i | 安装依赖 | | npm run dev | 启动项目 |

carbon (1).png 项目启动成功,可查看命令窗口出现的地址访问。默认端口号为80,被占用的情况下,则依次端口号+1判断。 直接访问local地址和network地址会跳往登录页, 需要添加token访问 http://localhost:80/preTokenLogin?token= (模拟测试环境,添加测试环境token) http://172.21.51.16:80/preTokenLogin?token= (模拟生产环境,添加生产环境token)

其他命令

| 命令 | 介绍 | | ---------------------------------- | ---------------------- | | npm run dev:https | 以https协议启动项目 | | npm run build / npm run build:prod | 以生产环境配置打包项目 |

2.项目配置

打开项目 **/src/setting.js **更改其中的配置value carbon (2).png

| key | value | | --------------- | ------------------------------------------------------------ | | name | 系统名称---浏览器标题名称 | | code | 系统code---用于缓存系统数据,如果重复会造成tabs组件标签页混乱的问题 | | applicationId | 应用id---用于系统挂载时请求接口获取权限、路由 | | defaultHomePath | 启动后默认首页、404等页面返回的主页 | | activeRule | 如果该应用需要嵌入到qiankun中,需要配置该值,格式为 sub-+code |

3.规范和注意事项

  • 为了适配qiankun内嵌,静态资源文件请都放置在src/assets文件目录下。放置在public下的话,单独运行可正常使用,但是内嵌的情况下资源文件会加载失败
  • 需要适配主题色的样式需要使用css变量,可参考/demo/theme页面写法
  • 为了在qiankun内嵌时的性能优化,/src/views/Layout/index.vue中,HeaderAside组件不会渲染,如果有写全局逻辑不能写在这两个组件里

carbon (3).png Package Sidebar Install npm i @jtljia/[email protected]

Version 1.0.1

License ISC

Unpacked Size 8.35 kB

Total Files 3

Last publish 2 minutes ago

Collaborators cel7767 Try on RunKit Report malware