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

pagurian

v1.5.4

Published

一个管理系统的前端框架

Downloads

18

Readme

Pagurian

npm version Build Status devDependency Status License

一个管理系统的前端框架

Pagurian早期是Hypers前端团队为 服务于公司的产品搭建的一套前端框架, 已经在多个产品中使用,逐渐成熟,并开源出来。

Pagurian

快速开始

以下是一段演示代码,页面引入一个 pagurian.js 文件,然后载入 modules/user/app 模块, 最后初始化改模块下 index 页面的内容。

<script src="pagurian.js" ></script>
<script type="text/javascript">
    pagurian.call("modules/user/app",function(app) {
        app.page.index();
    });
</script>

开发及构建

开发者可以在 Pagrian 的基础上进行二次开发, Pagurian由Grunt构建及发布, 你需要安装Grunt以及所依赖的Node.js环境。

首先安装 Grunt

npm install -g grunt-cli

Clone 项目文件:

git clone https://github.com/hypers/pagurian.git

安装grunt插件:

cd pagurian
npm install

接下来,执行 grunt

grunt

目录结构

Pagurian
├── [.] .build
├── dist/                   //发布目录
│   ├── lib/
│   ├── modules/
│   ├── plugins/
│   ├── resources/
│   └── templates/
├── docs/                   //开发文档
│   ├── api-datatable.md
│   └── api-*.md
├── [.] node_modules/           //Grunt依赖的NodeJs 模块
├── src/                    //开发目录
│   ├── lib/                //框架依赖的基础库
│   ├── modules/            //业务模块
│   ├── plugins/            //插件
│   ├── widgets/            //组件
│   ├── resources/          //css,images,fonts
│   └── templates/          //handlebars 模版文件
├── test/                   //测试
├── Gruntfile.js
├── package.json
└── pagurian.js

谁在用?

参考、使用的项目