diff --git a/packages/fes-compiler/src/config/index.js b/packages/fes-compiler/src/config/index.js index d0406579..a1e7340c 100644 --- a/packages/fes-compiler/src/config/index.js +++ b/packages/fes-compiler/src/config/index.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/tree/master/packages/core + */ + import { existsSync } from 'fs'; import { extname, join } from 'path'; import { diff --git a/packages/fes-compiler/src/index.js b/packages/fes-compiler/src/index.js index d155cf4e..35471148 100644 --- a/packages/fes-compiler/src/index.js +++ b/packages/fes-compiler/src/index.js @@ -1,3 +1,7 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/tree/master/packages/core + */ import Config from './config'; diff --git a/packages/fes-compiler/src/logger/index.js b/packages/fes-compiler/src/logger/index.js index da9d1c29..6cdec7f9 100644 --- a/packages/fes-compiler/src/logger/index.js +++ b/packages/fes-compiler/src/logger/index.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/tree/master/packages/core + */ + import { createDebug, chalk diff --git a/packages/fes-compiler/src/service/getPaths.js b/packages/fes-compiler/src/service/getPaths.js index 0fccad10..531e4865 100644 --- a/packages/fes-compiler/src/service/getPaths.js +++ b/packages/fes-compiler/src/service/getPaths.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/tree/master/packages/core + */ + import { join } from 'path'; import { existsSync, statSync } from 'fs'; import { lodash, winPath } from '@umijs/utils'; diff --git a/packages/fes-compiler/src/service/index.js b/packages/fes-compiler/src/service/index.js index 41062724..66468460 100644 --- a/packages/fes-compiler/src/service/index.js +++ b/packages/fes-compiler/src/service/index.js @@ -1,3 +1,7 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/tree/master/packages/core + */ import { join } from 'path'; import { EventEmitter } from 'events'; import assert from 'assert'; diff --git a/packages/fes-compiler/src/service/pluginAPI.js b/packages/fes-compiler/src/service/pluginAPI.js index ffa83f3f..c150747b 100644 --- a/packages/fes-compiler/src/service/pluginAPI.js +++ b/packages/fes-compiler/src/service/pluginAPI.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/tree/master/packages/core + */ + import assert from 'assert'; import * as utils from '@umijs/utils'; import { isValidPlugin, pathToObj } from './utils/pluginUtils'; diff --git a/packages/fes-preset-built-in/src/plugins/commands/build/index.js b/packages/fes-preset-built-in/src/plugins/commands/build/index.js index 4dba4cb9..94ec4a75 100644 --- a/packages/fes-preset-built-in/src/plugins/commands/build/index.js +++ b/packages/fes-preset-built-in/src/plugins/commands/build/index.js @@ -1,3 +1,7 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/build/build.ts + */ import { Logger } from '@fesjs/compiler'; diff --git a/packages/fes-preset-built-in/src/plugins/commands/buildDevUtils.js b/packages/fes-preset-built-in/src/plugins/commands/buildDevUtils.js index 2e67726b..1d7af459 100644 --- a/packages/fes-preset-built-in/src/plugins/commands/buildDevUtils.js +++ b/packages/fes-preset-built-in/src/plugins/commands/buildDevUtils.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/buildDevUtils.ts + */ + import { join, resolve } from 'path'; import { existsSync, readdirSync, readFileSync } from 'fs'; import { rimraf, chalk } from '@umijs/utils'; diff --git a/packages/fes-preset-built-in/src/plugins/commands/dev/index.js b/packages/fes-preset-built-in/src/plugins/commands/dev/index.js index b3747677..7d4cfccd 100644 --- a/packages/fes-preset-built-in/src/plugins/commands/dev/index.js +++ b/packages/fes-preset-built-in/src/plugins/commands/dev/index.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/dev/dev.ts + */ + const assert = require('assert'); export default (api) => { diff --git a/packages/fes-preset-built-in/src/plugins/commands/dev/watchPkg.js b/packages/fes-preset-built-in/src/plugins/commands/dev/watchPkg.js index bc9722a7..94554acb 100644 --- a/packages/fes-preset-built-in/src/plugins/commands/dev/watchPkg.js +++ b/packages/fes-preset-built-in/src/plugins/commands/dev/watchPkg.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/blob/master/packages/preset-built-in/src/plugins/commands/dev/watchPkg.ts + */ + import { join } from 'path'; import { chokidar, winPath, lodash } from '@umijs/utils'; import { existsSync, readFileSync } from 'fs'; diff --git a/packages/fes-runtime/src/plugin/index.js b/packages/fes-runtime/src/plugin/index.js index a6a70c56..5d1d2126 100644 --- a/packages/fes-runtime/src/plugin/index.js +++ b/packages/fes-runtime/src/plugin/index.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/blob/master/packages/runtime/src/Plugin/Plugin.ts + */ + import { assert } from '../utils'; function _compose({ fns, args }) { diff --git a/packages/fes/src/forkedDev.js b/packages/fes/src/forkedDev.js index 7ddde71c..7abc5d6c 100644 --- a/packages/fes/src/forkedDev.js +++ b/packages/fes/src/forkedDev.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/blob/master/packages/umi/src/forkedDev.ts + */ + import { chalk, yParser } from '@umijs/utils'; import { Service } from './serviceWithBuiltIn'; import getCwd from './utils/getCwd'; diff --git a/packages/fes/src/serviceWithBuiltIn.js b/packages/fes/src/serviceWithBuiltIn.js index 1fe99499..b71038fc 100644 --- a/packages/fes/src/serviceWithBuiltIn.js +++ b/packages/fes/src/serviceWithBuiltIn.js @@ -1,3 +1,8 @@ +/** + * @copy 该文件代码大部分出自 umi,有需要请参考: + * https://github.com/umijs/umi/blob/master/packages/umi/src/ServiceWithBuiltIn.ts + */ + import { dirname } from 'path'; import { Service as CoreService } from '@fesjs/compiler';