const path = require('path')

const isDev = process.argv.indexOf('--development') >= 0
const isWatch = process.argv.indexOf('--watch') >= 0


const srcPath = path.resolve(__dirname, '../../src')
const distPath = path.resolve(__dirname, '../../dist')
const packagePath = path.resolve(__dirname, '../../package.json')


module.exports = {
  isDev,
  isWatch,
  packagePath,
  srcPath, // 源目录
  distPath,// 目标目录
  wxmlFiles: [`${srcPath}/**/*.wxml`],
  lessFiles: [
    `${srcPath}/**/*.less`,
    `!${srcPath}/**/styles/**/*.less`,
    `!${srcPath}/**/_template/*.less`,
  ],
  jsonFiles: [`${srcPath}/**/*.json`, `!${srcPath}/**/_template/*.json`, `!${srcPath}/node_modules/**/*.json`],
  jsFiles: [`${srcPath}/**/*.js`, `!${srcPath}/node_modules/**/*.js`],
  imgFiles: [
    `${srcPath}/icons/*.{png,jpg,gif,ico}`,
    `${srcPath}/icons/**/*.{png,jpg,gif,ico}`,
  ],
  npmFile: [
    `${srcPath}/npm/index.js`,
  ],
  distNpmFile: `${distPath}/npm`,
  // allFiles: [`${srcPath}/**/ * `,`${srcPath}/**/ *. * `],  //所有文件夹 和 所有文件
}

{'avg_line_length': 28.583333333333332, 'max_line_length': 111, 'alphanum_fraction': 0.5675413022351797, 'licenses': ['MIT'], 'repository_name': 'QinZhen001/template', 'path': 'build/config/baseConfig.js', 'size': 1063, 'lang': 'JavaScript'}