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

zujiandemo

v1.0.0

Published

组件整理

Downloads

5

Readme

介绍

本项目仅仅作为模板使用,如无特殊需求切勿改变该项目

说明

使用脚手架的基础指令有以下几个

trs create ProjectName 缩写(trs c ProjectName) 创建新项目的模板

single(单站点模式)

sites(多站点模式)

test(测试项目)

trs dev 缩写(trs d) 运行项目

trs build 缩写(trs b) 打包项目

trs add 缩写(trs a) 新建站点

##项目结构说明 css、js、images文件夹中的内容会被正常的拷贝到打包项目中所以无影响 pug文件夹中一级的pug文件为运行的页面,part是小组件形式,public是大模块

(打包或运行) 单站点模式运行或打包页面为src/pug文件夹下第一级pug文件!!! 多站点模式中运行或打包为选择的站点目录下pug文件夹的第一级pug文件!!!

引用说明

现阶段支持两种引用方式:在main.js中直接引入(在main.js中直接引入的内容会被打包至最终的main.js会导致维护人员无法进行二次修改) ;在pug中直接进行引入,和正常写的html模式一样

配置说明

本项目的脚手架配置和vue项目比较接近,采用基础配置使用现有配置,其余配置采用文件传输的方式,文件名为项目根路径下的trs.config.js,方式采用模块导出和引入的方式

其他说明

如果pug的引入有问题可以会导致打包失败且无提示(暂不知原因)