1.0.0 • Published 3 years ago

taro3-config-helper v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

taro3-config-helper

Taro3 项目配置助手。该项目的目的是为了解决集中式仓库中管理多个 Taro3 项目实例配置生成入口的问题。

Installation

yarn add taro3-config-helper
or
npm install taro3-config-helper

Examples

// taro_project/config/index.js

const path = require('path');
const yourConfig = {
  // ...
};

module.exports = function (merge) {
  return taroConfig('myapp', path.resolve('./packages/myapp'), {
   makeOutputDir: ({projectName, mode, modeShortName, taroEnv, customEnv, outputDir}) => {
     return outputDir;
   },
   makeOutputPath: ({projectName, mode, modeShortName, taroEnv, customEnv, outputDir, outputPath}) => {
     return outputPath;
   }
 }, yourConfig);
};