<commit_before>var fs = require('fs');
var prevPrepackageTime = 0;
var path = require('path');
var colors = require('colors');
var linter = require('lint-plus');
var notifier = require('node-notifier');
var fisParserDefineFun = require('../lib/fis3-parser-define');
var fisParserDefine = function (content, file, conf) {
    return fisParserDefineFun(content, file, fis.xgconfig.defines)
};


var preset2015 = require('babel-preset-es2015');
var presetstage2 = require('babel-preset-stage-2')

var ES6_SUFFIX = 'es6';

let appPath = process.cwd() + '/src/app';
exports.config = function (m) {
    return function () {
        // 启动时默认清除缓存
        fis.compile.clean();

        fis.set('project.ignore', [
                'src/doc/**'
            ])
            .set('project.fileType.text', ES6_SUFFIX)
            .set('project.files', [
                ...fs.readdirSync(appPath)
                .filter(v => v !== 'Modules')
                .map(path =>
                    fs.statSync(appPath + '/' + path).isDirectory() ?
                    ('src/app/' + path + '/**') : 'src/app/' + path),
                ...m.map(v => `src/app/Modules/${v}/**`),
                'src/appDownload/**',
                'src/common/**',
                'src/global/**',
                'src/lib/**',
                'src/index.html',
                'src/transpond-config.js'
            ])<commit_msg>能耗问题fix<commit_after>var fs = require('fs');
var prevPrepackageTime = 0;
var path = require('path');
var colors = require('colors');
var linter = require('lint-plus');
var notifier = require('node-notifier');
var fisParserDefineFun = require('../lib/fis3-parser-define');
var fisParserDefine = function (content, file, conf) {
    return fisParserDefineFun(content, file, fis.xgconfig.defines)
};


var preset2015 = require('babel-preset-es2015');
var presetstage2 = require('babel-preset-stage-2')

var ES6_SUFFIX = 'es6';

let appPath = process.cwd() + '/src/app';
exports.config = function (m) {
    return function () {
        // 启动时默认清除缓存
        fis.compile.clean();

        fis.set('project.ignore', [
                'src/doc/**',
                'hybrid/**',
                'node_modules/**'
            ])
            .set('project.fileType.text', ES6_SUFFIX)
            .set('project.files', [
                ...fs.readdirSync(appPath)
                .filter(v => v !== 'Modules')
                .map(path =>
                    fs.statSync(appPath + '/' + path).isDirectory() ?
                    ('src/app/' + path + '/**') : 'src/app/' + path),
                ...m.map(v => `src/app/Modules/${v}/**`),
                'src/appDownload/**',
                'src/common/**',
                'src/global/**',
                'src/lib/**',
                'src/index.html',
                'src/transpond-config.js'
            ])
{'fraction_non_alphanumeric': 0.18098591549295776, 'fraction_numerical': 0.01056338028169014, 'mean_word_length': 1.8552763819095477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3364746', 'n_tokens_mistral': 926, 'n_tokens_neox': 892, 'n_words': 152}