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

generator-lego-win

v0.0.2

Published

f2e workflow, a gulp app generator, win version

Downloads

4

Readme

generator-lego-win

generator-lego-win 基于gulp的前端工作流

目录

快速开始 [⬆]

* `npm install -g generator-lego-win`
* 在空目录执行 `yo lego` 初始化项目

文件结构 [⬆]

generator-lego-win 初始化和执行任务涉及的文件结构:

yourProj/
│
├── package.json                // 项目依赖定义
├── gulp.js                     // 配置任务
│
├── node_modules    			  // `npm install` 拉取依赖包
│
├── src/                        // 开发目录
│    ├── css/                   
│    │   └── global.css         // 经过sass编译后的出口css文件
│    ├── sass/                  // sass源文件
│    ├── img/                   // 仅 Copy 不做操作
│    ├── js/                    // 仅 Copy 不做操作
│    └── index.html             
│    
└── dest/                       // 发布目录,执行 `gulp release` 生成
    ├── css/                    
    │   └── global.css
    ├── img/                   
    ├── js/                     
    └── index.html               

环境准备 [⬆]

  1. Node 环境:默认此步骤已完成
  2. Yeoman环境:npm install -g yo
  3. Gulp 环境:npm install -g gulp
  4. sass 编译环境:
  5. 图片编辑环境:

任务说明 [⬆]

初始化项目

  • 执行yo lego,初始化PC类的项目。
  • 或者,执行yo lego:mobi,初始化移动类型的项目。

开发

  • gulp 创建一个链接,自动检测src文件夹下的静态文件,自动刷新。支持sass编译。

发布

  • gulp release 将静态文件压缩到 dest/

打包

  • gulp zip ,替换发布代码资源路径为线上路径,将源码和发布代码压缩成一个zip包。

Demo [⬆]

showcase

已知问题 [⬆]

License [⬆]

Released under MIT LICENSE