-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharco.scripts.config.js
41 lines (40 loc) · 1.14 KB
/
arco.scripts.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const path = require('path');
// 将 arco-scripts 构建的公共配置抽离统一维护,需要扩展的配置可在 package 内部处理
module.exports = {
/**
* @param config {import('@arco-design/arco-scripts').BabelConfig}
*/
babel: (config) => {},
/**
* @param config {import('@arco-design/arco-scripts').StyleConfig}
*/
style: (config) => {},
/**
* @param config {import('@arco-design/arco-scripts').WebpackConfig}
*/
webpack: (config) => {},
/**
* @param config {import('@arco-design/arco-scripts').DocgenConfig}
*/
docgen: (config) => {
config.entry = 'src';
// DON'T change output!!!
config.output = 'docs/README.md';
config.tsParseTool = ['ts-document'];
config.demoGlob = 'demo/index.js';
},
jest: {
/**
* @param config {import('@arco-design/arco-scripts').JestConfig}
*/
node: (config) => {
config.setupFiles = [path.resolve(__dirname, './tests/setup.js')];
},
/**
* @param config {import('@arco-design/arco-scripts').JestConfig}
*/
client: (config) => {
config.setupFiles = [path.resolve(__dirname, './tests/setup.js')];
},
},
};