mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-22 00:45:15 +08:00
28 lines
642 B
JavaScript
28 lines
642 B
JavaScript
import os from 'os';
|
|
|
|
const numCPUs = os.cpus().length;
|
|
|
|
export default {
|
|
verbose: true,
|
|
modules: false,
|
|
cache: false,
|
|
concurrency: numCPUs,
|
|
failWithoutAssertions: true,
|
|
tap: false,
|
|
babel: false,
|
|
extensions: false,
|
|
compileEnhancements: false,
|
|
files: [
|
|
'framework/js/packages/**/__tests__/*.test.js',
|
|
],
|
|
sources: [
|
|
'framework/js/packages/**/*.js',
|
|
],
|
|
require: [
|
|
'esm', // Use ES modules in NodeJS.
|
|
'module-alias/register', // Use _moduleDirectories defined package.json
|
|
'./scripts/flow-remove-types', // Remove flow definition from Vue.
|
|
'./scripts/mock-global', // Define the global
|
|
],
|
|
};
|