feat: 增加 项目入口文件

This commit is contained in:
zhangxiangliang 2020-07-23 02:55:37 +08:00
parent cc549b5e12
commit 19f08a68e9
3 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,7 @@
"数据分析",
"接口"
],
"main": "dist/index.js",
"repository": "https://github.com/jiucaixiaozhu/stock-api",
"author": "zhangxiangliang",
"license": "MIT",

7
src/index.ts Normal file
View File

@ -0,0 +1,7 @@
// 解决别名问题
require('module-alias/register');
// Stocks
import stocks from '@stocks/index';
export default { stocks };

8
src/stocks/index.ts Normal file
View File

@ -0,0 +1,8 @@
// Stocks
import base from '@stocks/base';
import netease from '@stocks/netease';
export default {
base,
netease,
};