1 Star 0 Fork 10

guidebird/QMUI_Web

forked from QMUI/QMUI_Web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gulpfile.js 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
kayo5994 提交于 2019-04-30 16:15 . :rotating_light:Removing linter warnings.
/**
* Tencent is pleased to support the open source community by making QMUI Web available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
// gulpfile.js QMUI Web Gulp 工作流
const gulp = require('gulp');
const fs = require('fs');
const mix = new (require('./workflow/Mix.js'))();
// 载入基础任务
const basicTaskPath = 'workflow/basicTasks';
const combinedTaskPath = 'workflow';
const basicTaskPathFilterCallback = (file) => file.match(/js$/); // 排除非 JS 文件,如 Vim 临时文件
fs.readdirSync(basicTaskPath).filter(basicTaskPathFilterCallback).sort().forEach((file) => {
require('./' + basicTaskPath + '/' + file)(gulp, mix);
});
// 载入复合任务
// 载入 watch 任务
require('./' + combinedTaskPath + '/watch')(gulp, mix);
// 载入自定义任务
if (mix.config.customTasks) {
Object.keys(mix.config.customTasks).forEach((customTaskName) => {
require('./' + mix.config.customTasks[customTaskName])(gulp, mix);
});
}
// 载入 start 和 initProject 任务
['start', 'initProject'].forEach((file) => {
require('./' + combinedTaskPath + '/' + file)(gulp, mix);
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/guidebird16312/QMUI_Web.git
git@gitee.com:guidebird16312/QMUI_Web.git
guidebird16312
QMUI_Web
QMUI_Web
master

搜索帮助