feat: 添加代码来源声明

This commit is contained in:
bac-joker 2021-03-10 15:11:04 +08:00
parent c50aa92f93
commit 8e0e26fde5
13 changed files with 62 additions and 0 deletions

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import { existsSync } from 'fs'; import { existsSync } from 'fs';
import { extname, join } from 'path'; import { extname, join } from 'path';
import { import {

View File

@ -1,3 +1,7 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import Config from './config'; import Config from './config';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import { import {
createDebug, createDebug,
chalk chalk

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import { join } from 'path'; import { join } from 'path';
import { existsSync, statSync } from 'fs'; import { existsSync, statSync } from 'fs';
import { lodash, winPath } from '@umijs/utils'; import { lodash, winPath } from '@umijs/utils';

View File

@ -1,3 +1,7 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import { join } from 'path'; import { join } from 'path';
import { EventEmitter } from 'events'; import { EventEmitter } from 'events';
import assert from 'assert'; import assert from 'assert';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/tree/master/packages/core
*/
import assert from 'assert'; import assert from 'assert';
import * as utils from '@umijs/utils'; import * as utils from '@umijs/utils';
import { isValidPlugin, pathToObj } from './utils/pluginUtils'; import { isValidPlugin, pathToObj } from './utils/pluginUtils';

View File

@ -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'; import { Logger } from '@fesjs/compiler';

View File

@ -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 { join, resolve } from 'path';
import { existsSync, readdirSync, readFileSync } from 'fs'; import { existsSync, readdirSync, readFileSync } from 'fs';
import { rimraf, chalk } from '@umijs/utils'; import { rimraf, chalk } from '@umijs/utils';

View File

@ -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'); const assert = require('assert');
export default (api) => { export default (api) => {

View File

@ -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 { join } from 'path';
import { chokidar, winPath, lodash } from '@umijs/utils'; import { chokidar, winPath, lodash } from '@umijs/utils';
import { existsSync, readFileSync } from 'fs'; import { existsSync, readFileSync } from 'fs';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/runtime/src/Plugin/Plugin.ts
*/
import { assert } from '../utils'; import { assert } from '../utils';
function _compose({ fns, args }) { function _compose({ fns, args }) {

View File

@ -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 { chalk, yParser } from '@umijs/utils';
import { Service } from './serviceWithBuiltIn'; import { Service } from './serviceWithBuiltIn';
import getCwd from './utils/getCwd'; import getCwd from './utils/getCwd';

View File

@ -1,3 +1,8 @@
/**
* @copy 该文件代码大部分出自 umi有需要请参考
* https://github.com/umijs/umi/blob/master/packages/umi/src/ServiceWithBuiltIn.ts
*/
import { dirname } from 'path'; import { dirname } from 'path';
import { Service as CoreService } from '@fesjs/compiler'; import { Service as CoreService } from '@fesjs/compiler';