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

gulp-difference-project-config

v1.0.0

Published

针对公司差异化老项目配置

Downloads

2

Readme

gulp-difference-project-config

针对公司差异化老项目配置

目录结构

|- project-root 项目跟目录
      |-gulpfile.js 配置文件
      |-package.json 依赖文件
      |-readme.md 说明文件
      |-dev 开发环境
        |-standard 标准项目
            |-yunying 运营平台
            |-jituan 集团平台
        |-shenzhen 分支项目
            |-yunying 运营平台
            |-jituan 集团平台
      |-dist 生产环境

实现功能

  1. 差异化项目合并
  2. babel 编译 js
  3. 自动刷新浏览器

前置条件

  • 依赖安装
# 安装 gulp-cli,为了使用gulp命令
$ npm install gulp-cli -g

# 进入当前目录安装开发所需依赖
$ npm install
  • 在当前目录建立 gulpfile.js
var gulpDifferenceProjectConfig = require('gulp-difference-project-config');
var gulpTaskConfig = require('./gulpTaskConfig.json');
gulpDifferenceProjectConfig(gulpTaskConfig);
  • 命令行输入gulp taskname

测试

  • 已提供配置好测试任务,安装依赖完成后直接在命令行输入gulp test

配置文件

  • gulpTaskConfig.json any[] 详细看 ./gulpTaskConfig.json

    | key | value | 是否必填 | 说明 | | --------- | ------- | -------- | ----------------------------------------------------------- | | taskname | string | 是 | 任务名,用于在命令行输入,例如: gulp test | | standard | string | 是 | 指定标准版位置 | | different | string | 是 | 指定差异化版本路径 | | target | string | 是 | 指定打包生产目录路径 | | port | string | 否 | 指定端口位置,用于同时启动多个任务时需要配置 | | note | string | 否 | 任务说明 | | needBabel | boolean | 否 | 是否需要 babel 编译,默认不开启,老项目某些代码不能通过编译 |