@qse/edu-scripts 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +333 -0
  2. package/README.md +105 -0
  3. package/app.d.ts +68 -0
  4. package/docs/changelog.md +5 -0
  5. package/docs/deploy.md +53 -0
  6. package/docs/feat.md +74 -0
  7. package/docs/grayscale.md +31 -0
  8. package/docs/index.md +5 -0
  9. package/docs/mode.md +42 -0
  10. package/docs/override.md +165 -0
  11. package/docs/refactor-react-16.md +40 -0
  12. package/docs/refactor.md +139 -0
  13. package/jest.config.js +195 -0
  14. package/lib/asset/dll/libcommon3-manifest.json +181 -0
  15. package/lib/asset/template/edu-app-env.d.ts.tpl +15 -0
  16. package/lib/asset/template/edu-scripts.override.js.tpl +14 -0
  17. package/lib/asset/template/page/index.class.js.tpl +24 -0
  18. package/lib/asset/template/page/index.class.tsx.tpl +10 -0
  19. package/lib/asset/template/page/index.fc.js.tpl +16 -0
  20. package/lib/asset/template/page/index.fc.tsx.tpl +9 -0
  21. package/lib/asset/template/page/index.less.tpl +3 -0
  22. package/lib/asset/template/page/logic.js.tpl +4 -0
  23. package/lib/asset/template/page/route.js.tpl +12 -0
  24. package/lib/asset/template/tailwind.config.js.tpl +11 -0
  25. package/lib/asset/template/tsconfig.json.tpl +24 -0
  26. package/lib/auto-refactor.js +175 -0
  27. package/lib/build.js +87 -0
  28. package/lib/cli.js +63 -0
  29. package/lib/commit-dist.js +117 -0
  30. package/lib/config/babel.dependencies.js +56 -0
  31. package/lib/config/babel.js +82 -0
  32. package/lib/config/paths.js +44 -0
  33. package/lib/config/plugins/postcss-safe-area.js +22 -0
  34. package/lib/config/webpackConfig.js +384 -0
  35. package/lib/config/webpackDevServerConfig.js +47 -0
  36. package/lib/deploy.js +186 -0
  37. package/lib/generator.js +155 -0
  38. package/lib/index.d.ts +1 -0
  39. package/lib/index.js +13 -0
  40. package/lib/start.js +51 -0
  41. package/lib/utils/FileSizeReporter.js +131 -0
  42. package/lib/utils/appConfig.js +44 -0
  43. package/lib/utils/beforeStart.js +73 -0
  44. package/lib/utils/changeDeployVersion.js +125 -0
  45. package/lib/utils/defineConfig.d.ts +59 -0
  46. package/lib/utils/defineConfig.js +10 -0
  47. package/lib/utils/exec.js +13 -0
  48. package/lib/utils/getConfig.js +30 -0
  49. package/lib/utils/getOverride.js +33 -0
  50. package/package.json +102 -0
  51. package/src/asset/dll/libcommon3-manifest.json +181 -0
  52. package/src/asset/template/edu-app-env.d.ts.tpl +15 -0
  53. package/src/asset/template/edu-scripts.override.js.tpl +14 -0
  54. package/src/asset/template/page/index.class.js.tpl +24 -0
  55. package/src/asset/template/page/index.class.tsx.tpl +10 -0
  56. package/src/asset/template/page/index.fc.js.tpl +16 -0
  57. package/src/asset/template/page/index.fc.tsx.tpl +9 -0
  58. package/src/asset/template/page/index.less.tpl +3 -0
  59. package/src/asset/template/page/logic.js.tpl +4 -0
  60. package/src/asset/template/page/route.js.tpl +12 -0
  61. package/src/asset/template/tailwind.config.js.tpl +11 -0
  62. package/src/asset/template/tsconfig.json.tpl +24 -0
  63. package/src/auto-refactor.js +172 -0
  64. package/src/build.js +74 -0
  65. package/src/cli.js +91 -0
  66. package/src/commit-dist.js +103 -0
  67. package/src/config/babel.dependencies.js +65 -0
  68. package/src/config/babel.js +88 -0
  69. package/src/config/paths.js +37 -0
  70. package/src/config/plugins/postcss-safe-area.js +21 -0
  71. package/src/config/webpackConfig.js +410 -0
  72. package/src/config/webpackDevServerConfig.js +44 -0
  73. package/src/deploy.js +158 -0
  74. package/src/generator.js +138 -0
  75. package/src/index.ts +1 -0
  76. package/src/start.js +46 -0
  77. package/src/utils/FileSizeReporter.js +144 -0
  78. package/src/utils/appConfig.js +35 -0
  79. package/src/utils/beforeStart.js +66 -0
  80. package/src/utils/changeDeployVersion.js +115 -0
  81. package/src/utils/defineConfig.ts +63 -0
  82. package/src/utils/exec.js +7 -0
  83. package/src/utils/getConfig.js +26 -0
  84. package/src/utils/getOverride.js +32 -0
  85. package/tsconfig.json +31 -0
@@ -0,0 +1,165 @@
1
+ # 自定义配置
2
+
3
+ 使用 `npx edu g override` 自动生成配置文件,修改 `webpack` 配置
4
+
5
+ ## 类型
6
+
7
+ ```ts
8
+ export type Config = {
9
+ webpack?: (config: Configuration) => Configuration | undefined
10
+ devServer?: (config: DevServerConfiguration) => DevServerConfiguration | undefined
11
+ babel?: (config: any, type: 'src' | 'node_modules') => any | undefined
12
+ /**
13
+ * webpack alias 配置,会与内置 alias 合并
14
+ *
15
+ * @default
16
+ * { '@': 'src' }
17
+ */
18
+ alias?: Record<string, string>
19
+ /**
20
+ * webpack externals 配置,会与内置 externals 合并
21
+ */
22
+ externals?: Record<string, string>
23
+ /**
24
+ * terser pure_funcs 配置,传 [] 可以不清空 console.log
25
+ * @default ['console.log']
26
+ */
27
+ pure_funcs?: string[]
28
+ /**
29
+ * 编译 node_modules 下文件
30
+ *
31
+ * 仅在 development 环境下生效。production 一定会编译 node_modules
32
+ * @default true
33
+ */
34
+ transformNodeModules?: boolean
35
+ /**
36
+ * 指定压缩工具,esbuild 比 terser 快 20-40 倍,实际压缩率差 10%左右
37
+ *
38
+ * @default 'esbuild'
39
+ */
40
+ minify?: boolean | 'terser' | 'esbuild'
41
+ /** 自定义全局参数 */
42
+ define?: Record<string, any>
43
+ /** webpack-dev-server proxy
44
+ *
45
+ * @default /api -> /qsxxwapdev/api
46
+ */
47
+ proxy?: ProxyConfigArray
48
+ extraPostCSSPlugins?: any[]
49
+ }
50
+ ```
51
+
52
+ ## 经典用例
53
+
54
+ ### 增加 alias
55
+
56
+ ```js
57
+ const { defineConfig } = require('@qse/edu-scripts')
58
+ const path = require('path')
59
+
60
+ module.exports = defineConfig({
61
+ alias: {
62
+ config: path.resolve(__dirname,'src/config')
63
+ }
64
+ })
65
+ ```
66
+
67
+ ### 保留 `console.log`
68
+
69
+ ```js
70
+ const { defineConfig } = require('@qse/edu-scripts')
71
+
72
+ module.exports = defineConfig({
73
+ pure_funcs: []
74
+ })
75
+ ```
76
+
77
+ ### 增加 proxy 代理
78
+
79
+ ```js
80
+ const { defineConfig } = require('@qse/edu-scripts')
81
+
82
+ module.exports = defineConfig({
83
+ proxy: [
84
+ {
85
+ context: ['/api/cadre_info'],
86
+ target: 'http://www.zhidianbao.cn:8088/qs_ymm/standard_api_work',
87
+ changeOrigin: true,
88
+ headers: {
89
+ origin: 'http://www.zhidianbao.cn',
90
+ host: 'www.zhidianbao.cn',
91
+ },
92
+ },
93
+ ],
94
+ })
95
+ ```
96
+
97
+ ### 为 antd-mobile 增加 pxtorem 插件
98
+
99
+ 适用范围:antd-mobile@2, antd-mobile@5
100
+
101
+ 安装公司内专用的 pxtorem 插件,比原版增加了 include 与 CSS变量 编译。并且修改默认值 `1rem === 10px`
102
+
103
+ ```bash
104
+ npm i @qse/postcss-pxtorem
105
+ ```
106
+
107
+ ```js
108
+ const { defineConfig } = require('@qse/edu-scripts')
109
+ const pxtorem = require('@qse/postcss-pxtorem')
110
+
111
+ module.exports = defineConfig({
112
+ extraPostCSSPlugins: [
113
+ pxtorem({
114
+ include: ['antd-mobile']
115
+ })
116
+ ]
117
+ })
118
+ ```
119
+
120
+ > 可选:添加动态计算 html rem 值
121
+
122
+ ```html
123
+ <script>
124
+ ;(function (designWidth, base, max) {
125
+ var docEl = document.documentElement
126
+ var metaEl = document.querySelector('meta[name="viewport"]')
127
+
128
+ var resize = function () {
129
+ var maxFontSize = Infinity
130
+ if (max) {
131
+ var scale = 1
132
+ var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/)
133
+ var isMobile = /iphone|ipad|ipod|Windows Phone|andriod/i.test(navigator.userAgent)
134
+ if (match && isMobile) {
135
+ scale = parseFloat(match[1])
136
+ }
137
+ var maxFontSize = max / scale
138
+ }
139
+
140
+ docEl.style.fontSize =
141
+ Math.min((docEl.clientWidth / designWidth) * base, maxFontSize) + 'px'
142
+ }
143
+ resize()
144
+ window.addEventListener('resize', resize)
145
+ })(375, 16)
146
+ </script>
147
+ ```
148
+
149
+ ### 为 antd-mobile@2 增加按需加载
150
+
151
+ 只能给 antd-mobile@2 使用。antd-mobile@5 自带 tree shake 不需要配置
152
+
153
+ ```js
154
+ const { defineConfig } = require('@qse/edu-scripts')
155
+
156
+ module.exports = defineConfig({
157
+ babel(config){
158
+ config.plugins.push([
159
+ 'import',
160
+ { libraryName: 'antd-mobile', libraryDirectory: 'es', style: true },
161
+ 'antd-mobile',
162
+ ])
163
+ }
164
+ })
165
+ ```
@@ -0,0 +1,40 @@
1
+ # 升级 react16
2
+
3
+ frame 项目 react15 升级 react16 指南
4
+
5
+ ## 事前准备
6
+
7
+ 准备适配 common3 的 frame 与 utils
8
+
9
+ - pc: [pc-frame-utils.zip](http://www.zhidianbao.cn:8088/qsxxwapdev/edu-scripts/pc-frame-utils.zip)
10
+ - h5: [h5-frame-utils.zip](http://www.zhidianbao.cn:8088/qsxxwapdev/edu-scripts/h5-frame-utils.zip)
11
+
12
+ ## 开始升级
13
+
14
+ 1. 先提交所有内容至svn,方便回退
15
+ 2. 解压下载的文件,将 frame 与 utils 放到对应目录
16
+ 3. 修改 html 文件中 frame 与 utils 的版本号,引入正确的资源
17
+ 4. 替换 CDN 资源
18
+
19
+ ```html
20
+ <script src="//static.qsepay.net/lib/react15.4.1_fastclick1.0.6_natty-storage2.0.2-fetch2.4.2_common2.js"></script>
21
+
22
+ 将上面这条 CDN 替换成下面这两条之一
23
+
24
+ <!-- 一般使用这条 -->
25
+ <script src="//static.qsepay.net/lib/react16.14_fastclick1.0.6_natty-storage2.0.2-fetch2.4.2_common31.js"></script>
26
+ <!-- 如果需要 axios 请使用这条 -->
27
+ <script src="//static.qsepay.net/lib/react16.14_fastclick1.0.6_natty-storage2.0.2-fetch2.4.2_axios0.21.1_common31.js"></script>
28
+ ```
29
+
30
+ 5. 运行项目看看效果
31
+
32
+ ## 错误处理
33
+
34
+ ### refast LogicRender 缺失
35
+
36
+ 删除全部的 `LogicRender`,使用*三元表达式*处理
37
+
38
+ ### prop-types 缺失
39
+
40
+ react16 将 prop-types 独立了出去,请下载 prop-types 包,修改导入
@@ -0,0 +1,139 @@
1
+ # 老项目接入流程
2
+
3
+ ## 事前约定
4
+
5
+ `package.json` 中约定了 `name` 和 `version` 的含义
6
+
7
+ ```json
8
+ {
9
+ "name": "项目名称,打包部署后都是这个名字",
10
+ "version": "版本号"
11
+ }
12
+ ```
13
+
14
+ ## 重构
15
+
16
+ 运行 `npx @qse/edu-scripts auto-refactor` 自动重构项目,按终端提示进行操作
17
+
18
+ 运行完毕后接着按下面的步骤修改代码
19
+
20
+ 1. `index1.html` 增加 CDN
21
+
22
+ ```html
23
+ <% if(process.env.NODE_ENV === 'development') { %>
24
+ <script src="//www.zhidianbao.cn:8088/qsxxwapdev/edu-scripts/react-dev-preset.js"></script>
25
+ <script src="//www.zhidianbao.cn:8088/qsxxwapdev/edu-scripts/moment2.29.1.js"></script>
26
+ <script src="//www.zhidianbao.cn:8088/qsxxwapdev/edu-scripts/antd3.26.20.js"></script>
27
+ <% } else { %>
28
+ <script src="//static.qsepay.net/lib/react16.14_fastclick1.0.6_natty-storage2.0.2-fetch2.4.2_axios0.21.1_common31.js"></script>
29
+ <script src="//static.qsepay.net/lib/moment2.29.1.js"></script>
30
+ <script src="//static.qsepay.net/lib/antd3.26.20.js"></script>
31
+ <% } %>
32
+ ```
33
+
34
+ 如果你的钉钉容器打不开应用,可以添加动态的 `polyfill` 解决问题
35
+
36
+ ```html
37
+ <!-- polyfill 官网 -->
38
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017" crossorigin="anonymous"></script>
39
+
40
+ <!-- 阿里云镜像 -->
41
+ <script src="https://polyfill.alicdn.com/v3/polyfill.min.js?features=default,es2015,es2016,es2017" crossorigin="anonymous"></script>
42
+ ```
43
+
44
+ 2. `index1.html` 修改主文件
45
+
46
+ ```html
47
+ <!-- 可选,动态主文件 -->
48
+ <script src="<%= htmlWebpackPlugin.files.js %>"></script>
49
+
50
+ <!-- 示例 -->
51
+ <script src="js/utils_2.0.0.js"></script>
52
+ <script src="<%= htmlWebpackPlugin.files.js %>"></script>
53
+ <script src="js/frame/frame_2.10.0.js"></script>
54
+ ```
55
+
56
+ 3. 运行 `npm i` 安装依赖
57
+ 4. 运行项目 `npm run start` 参照下方排除错误
58
+
59
+ ## 报错处理
60
+
61
+ ## moment 没有 external 掉
62
+
63
+ 全局搜索 `moment/locale/zh-cn`,把这些引入都删除掉即可
64
+
65
+ ## ueditor 提示 css 文件加载不到
66
+
67
+ 移动 `src/ueditor` 到 `public/ueditor`, 导入地址也修改下
68
+
69
+ 例子: `require('../../../public/ueditor/<something>')`
70
+
71
+ ### style 文件报错
72
+
73
+ ```js
74
+ import * as style from './index.less'
75
+ //=> 改成
76
+ import style from './index.less'
77
+ ```
78
+
79
+ ### 如果判断是缺少 `alias` 配置,使用 `npx edu-scripts g override` 生成配置文件,并且配置 `alias` 参数
80
+
81
+ ```js
82
+ const { defineConfig } = require('@qse/edu-scripts')
83
+ const path = require('path')
84
+
85
+ module.exports = defineConfig({
86
+ alias: {
87
+ pages: path.resolve('src/pages')
88
+ }
89
+ })
90
+ ```
91
+
92
+ ### 动态导入 `import`,webpack4 以后 `import` 默认导出改成 `default`
93
+
94
+ ```js
95
+ // 以前写法
96
+ import('lodash/get').then(get=> {
97
+ get()
98
+ })
99
+
100
+ // 现在写法
101
+ import('lodash/get').then(({default: get})=> {
102
+ get()
103
+ })
104
+ ```
105
+
106
+ ### `react` 组件热更新失效
107
+
108
+ 把上面的 `CDN` 加入到首页(index\*.html)中
109
+
110
+ 其中 `process.env.NODE_ENV` 那段代码是关键
111
+
112
+ 热更新需要 react16,请阅读[升级指南](/refactor-react-16)
113
+
114
+ ### 主文件过大,代码分割失效
115
+
116
+ 检查是否有 `require('./chunkfile').default` 这种写法,这会导致代码分割失效,直接打进 main 中
117
+
118
+ ```js
119
+ export default (callback) => {
120
+ require.ensure([], (require) => {
121
+ // 错误例子
122
+ callback(require('./chunkfile').default)
123
+
124
+ // 正确写法
125
+ const mod = require('./chunkfile')
126
+ callback(mod.default)
127
+ })
128
+ }
129
+ ```
130
+
131
+ 另外,webpack2 开始就不推荐使用 `require.ensure` 做代码分割了。现在可以使用 `import` 方式代码分割
132
+
133
+ ```js
134
+ export default (callback) => {
135
+ import(/* webpackChunkName: 'chunkfileName' */ './chunkfile').then((mod) => {
136
+ callback(mod.default)
137
+ })
138
+ }
139
+ ```
package/jest.config.js ADDED
@@ -0,0 +1,195 @@
1
+ /*
2
+ * For a detailed explanation regarding each configuration property, visit:
3
+ * https://jestjs.io/docs/configuration
4
+ */
5
+
6
+ module.exports = {
7
+ // All imported modules in your tests should be mocked automatically
8
+ // automock: false,
9
+
10
+ // Stop running tests after `n` failures
11
+ // bail: 0,
12
+
13
+ // The directory where Jest should store its cached dependency information
14
+ // cacheDirectory: "/private/var/folders/3q/7klqgj0j63z08zcx0skwjm500000gn/T/jest_dx",
15
+
16
+ // Automatically clear mock calls, instances, contexts and results before every test
17
+ clearMocks: true,
18
+
19
+ // Indicates whether the coverage information should be collected while executing the test
20
+ // collectCoverage: false,
21
+
22
+ // An array of glob patterns indicating a set of files for which coverage information should be collected
23
+ // collectCoverageFrom: undefined,
24
+
25
+ // The directory where Jest should output its coverage files
26
+ // coverageDirectory: undefined,
27
+
28
+ // An array of regexp pattern strings used to skip coverage collection
29
+ // coveragePathIgnorePatterns: [
30
+ // "/node_modules/"
31
+ // ],
32
+
33
+ // Indicates which provider should be used to instrument code for coverage
34
+ // coverageProvider: "babel",
35
+
36
+ // A list of reporter names that Jest uses when writing coverage reports
37
+ // coverageReporters: [
38
+ // "json",
39
+ // "text",
40
+ // "lcov",
41
+ // "clover"
42
+ // ],
43
+
44
+ // An object that configures minimum threshold enforcement for coverage results
45
+ // coverageThreshold: undefined,
46
+
47
+ // A path to a custom dependency extractor
48
+ // dependencyExtractor: undefined,
49
+
50
+ // Make calling deprecated APIs throw helpful error messages
51
+ // errorOnDeprecated: false,
52
+
53
+ // The default configuration for fake timers
54
+ // fakeTimers: {
55
+ // "enableGlobally": false
56
+ // },
57
+
58
+ // Force coverage collection from ignored files using an array of glob patterns
59
+ // forceCoverageMatch: [],
60
+
61
+ // A path to a module which exports an async function that is triggered once before all test suites
62
+ // globalSetup: undefined,
63
+
64
+ // A path to a module which exports an async function that is triggered once after all test suites
65
+ // globalTeardown: undefined,
66
+
67
+ // A set of global variables that need to be available in all test environments
68
+ // globals: {},
69
+
70
+ // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
71
+ // maxWorkers: "50%",
72
+
73
+ // An array of directory names to be searched recursively up from the requiring module's location
74
+ // moduleDirectories: [
75
+ // "node_modules"
76
+ // ],
77
+
78
+ // An array of file extensions your modules use
79
+ // moduleFileExtensions: [
80
+ // "js",
81
+ // "mjs",
82
+ // "cjs",
83
+ // "jsx",
84
+ // "ts",
85
+ // "tsx",
86
+ // "json",
87
+ // "node"
88
+ // ],
89
+
90
+ // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
91
+ // moduleNameMapper: {},
92
+
93
+ // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
94
+ // modulePathIgnorePatterns: [],
95
+
96
+ // Activates notifications for test results
97
+ // notify: false,
98
+
99
+ // An enum that specifies notification mode. Requires { notify: true }
100
+ // notifyMode: "failure-change",
101
+
102
+ // A preset that is used as a base for Jest's configuration
103
+ // preset: undefined,
104
+
105
+ // Run tests from one or more projects
106
+ // projects: undefined,
107
+
108
+ // Use this configuration option to add custom reporters to Jest
109
+ // reporters: undefined,
110
+
111
+ // Automatically reset mock state before every test
112
+ // resetMocks: false,
113
+
114
+ // Reset the module registry before running each individual test
115
+ // resetModules: false,
116
+
117
+ // A path to a custom resolver
118
+ // resolver: undefined,
119
+
120
+ // Automatically restore mock state and implementation before every test
121
+ // restoreMocks: false,
122
+
123
+ // The root directory that Jest should scan for tests and modules within
124
+ // rootDir: undefined,
125
+
126
+ // A list of paths to directories that Jest should use to search for files in
127
+ // roots: [
128
+ // "<rootDir>"
129
+ // ],
130
+
131
+ // Allows you to use a custom runner instead of Jest's default test runner
132
+ // runner: "jest-runner",
133
+
134
+ // The paths to modules that run some code to configure or set up the testing environment before each test
135
+ // setupFiles: [],
136
+
137
+ // A list of paths to modules that run some code to configure or set up the testing framework before each test
138
+ // setupFilesAfterEnv: [],
139
+
140
+ // The number of seconds after which a test is considered as slow and reported as such in the results.
141
+ // slowTestThreshold: 5,
142
+
143
+ // A list of paths to snapshot serializer modules Jest should use for snapshot testing
144
+ // snapshotSerializers: [],
145
+
146
+ // The test environment that will be used for testing
147
+ // testEnvironment: "jest-environment-node",
148
+
149
+ // Options that will be passed to the testEnvironment
150
+ // testEnvironmentOptions: {},
151
+
152
+ // Adds a location field to test results
153
+ // testLocationInResults: false,
154
+
155
+ // The glob patterns Jest uses to detect test files
156
+ // testMatch: [
157
+ // "**/__tests__/**/*.[jt]s?(x)",
158
+ // "**/?(*.)+(spec|test).[tj]s?(x)"
159
+ // ],
160
+
161
+ // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
162
+ // testPathIgnorePatterns: [
163
+ // "/node_modules/"
164
+ // ],
165
+
166
+ // The regexp pattern or array of patterns that Jest uses to detect test files
167
+ // testRegex: [],
168
+
169
+ // This option allows the use of a custom results processor
170
+ // testResultsProcessor: undefined,
171
+
172
+ // This option allows use of a custom test runner
173
+ // testRunner: "jest-circus/runner",
174
+
175
+ // A map from regular expressions to paths to transformers
176
+ // transform: undefined,
177
+
178
+ // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
179
+ // transformIgnorePatterns: [
180
+ // "/node_modules/",
181
+ // "\\.pnp\\.[^\\/]+$"
182
+ // ],
183
+
184
+ // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
185
+ // unmockedModulePathPatterns: undefined,
186
+
187
+ // Indicates whether each individual test should be reported during the run
188
+ // verbose: undefined,
189
+
190
+ // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
191
+ // watchPathIgnorePatterns: [],
192
+
193
+ // Whether to use watchman for file crawling
194
+ // watchman: true,
195
+ };