mirror of
https://github.com/zhangxiangliang/stock-api.git
synced 2025-02-02 14:18:44 +08:00
feat: 增加 项目入口文件
This commit is contained in:
parent
cc549b5e12
commit
19f08a68e9
@ -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
7
src/index.ts
Normal 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
8
src/stocks/index.ts
Normal file
@ -0,0 +1,8 @@
|
||||
// Stocks
|
||||
import base from '@stocks/base';
|
||||
import netease from '@stocks/netease';
|
||||
|
||||
export default {
|
||||
base,
|
||||
netease,
|
||||
};
|
Loading…
Reference in New Issue
Block a user