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 🙏

© 2026 – Pkg Stats / Ryan Hefner

lmmf-axela

v1.0.0

Published

一个基于 Gulp 高效、可定制的 Web 前端开发与构建工作流

Readme

#lmmf-axela

一个基于 Gulp、高效、跨平台、可定制的前端开发与构建工作流。

功能特性

  • Less/Sass自动编译成CSS并生成SourceMap方便调试定位
  • CSS Sprite 雪碧图自动生成并且自动定位
  • CSS 细小图片且不能做雪碧图的转Base64字符串
  • CSS 引用的资源文件去缓存(MD5)方案
  • CSS 引用资源相对路径自动转全路径
  • 监听文件变动,自动刷新浏览器(css样式自动注入,不刷新浏览器)
  • HTML中JS和CSS路径自动生成http-concat路径
  • 支持JS和CSS的压缩
  • 输出文件自动过滤功能(删除没有用到的资源文件)
  • 全项目和单页面编译生成功能
  • 自动复制文件到SVN对应目录
  • Gulp Task自动生成功能

安装

$ npm install --save lmmf-axela

快速开始

  • 请确保已安装 Node.js (版本>= 4.0.0,推荐6.5.0或以上) 环境
  • 请确保全局安装或者当前项目安装Gulp
  • 在项目根目录新建 gulpfile.js 或者在已有的 gulpfile.js 文件里加入 require('lmmf-axela').run();
  • 推荐配合 WebStorm 等编辑器的 Gulp 任务管理器 使用,带你装逼带你飞。

目录结构

project-name/
│
├── src             // 源文件目录
│   ├── html        // html页面目录
│   ├── img         // 图片等资源目录
│   ├── js          // js脚本目录
│   └── styles      // 样式文件目录(less、scss、css)
│ 
├─- dist            // 源代码编译构建后生成的文件用于上传SVN
│
├── axela.json      // 工作流配置文件
│ 
├── package.json
│ 
├── ......

配置文件axela.json

axela.json配置文件为json文件,位于项目根目录,可存放配置信息或开启关闭相关功能。 以下列出的都是默认值,有需要的自行修改

{
  // 本地svn目录配置
  "svn": {
    "html": "D:/svn/html",              // 页面svn对应目录
    "pic": "D:/svn/pic"                 // 静态资源svn对应目录
  },

  // 本地服务配置
  "server": {
     "port": 8080                       // 服务端口
  },

  // cdn配置
  "plugins": {
    "domain": ["//pic.lvmama.com"],     // cdn域名数组,多个域名时随机分配
    "path": "/min/index.php?f="         // http-concat路径头
  },

  // 压缩配置
  "compress": {
    "js": false,                        // 是否压缩js
    "css": false                        // 是否压缩css
  },
  
  // 默认页面和编译生成单页面模块地址
  "pages":[]
}

关于axela.json中的pages配置说明

{
  "pages": [
    {
      "name": "order-abroad-group",                         // 页面的别名用于显示在Gulp列表里
      "html": "order/abroad/order-abroad-group.html"        // 页面相对于html目录的路径
    },
    {
      "name": "wuyi-zt",
      "html": "zt/wuyi.html"
    }
  ]
}

任务说明

注意点:

  • 注1:/src 为源文件(开发目录),/dist 目录为流程自动生成的临时目录,请不要直接修改 /dist目录下的任何文件。
  • 注2:打开webstrom里的Gulp Task窗口,里面将列出所有的可执行任务,前三个为默认任务,后面的为根据配置文件pages里的数组生成的任务。
  • 注3:axela:dev任务为编译所有源代码并启动本地服务,自动打开浏览器定位到html跟目录,自行选择需要访问的页面;axela.dist任务为编译所有源代码并构建项目,生成可提交到svn的文件。axela:dist2svn任务为将dist下的文件按目录结构复制到本地svn目录,便于提交。

Bug反馈

如果有 Bug反馈功能建议,请创建 Issue,借助大家的力量完善这个项目,来提高前端的开发效率,抽出更多的时间去把妹,去陪家人。