mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-05-06 16:36:40 +07:00
added create-react-app
This commit is contained in:
parent
b5b7c82ea4
commit
c2f42ea721
15 changed files with 6480 additions and 6933 deletions
48
craco.config.js
Normal file
48
craco.config.js
Normal file
|
@ -0,0 +1,48 @@
|
|||
const CracoAlias = require('craco-alias');
|
||||
// const fastRefreshCracoPlugin = require('craco-fast-refresh');
|
||||
|
||||
module.exports = {
|
||||
webpack: {
|
||||
alias: {
|
||||
'~': `src`,
|
||||
},
|
||||
output: {
|
||||
publicPath: '/',
|
||||
},
|
||||
},
|
||||
eslint: {
|
||||
enable: false,
|
||||
mode: 'file',
|
||||
},
|
||||
jest: {
|
||||
setupTestFrameworkScriptFile: '<rootDir>/src/setupTests.js',
|
||||
configure: {
|
||||
moduleNameMapper: {
|
||||
'^~/(.*)$': '<rootDir>/src/$1',
|
||||
'^.+\\.scss$': 'identity-obj-proxy',
|
||||
},
|
||||
snapshotSerializers: ['enzyme-to-json/serializer'],
|
||||
moduleFileExtensions: ['js', 'json', 'ts', 'tsx', 'jsx', 'node'],
|
||||
verbose: true,
|
||||
roots: ['<rootDir>/src'],
|
||||
transform: {
|
||||
'^.+\\.tsx?$': 'ts-jest',
|
||||
'^.+\\.ts?$': 'babel-jest',
|
||||
'^.+\\.js?$': 'ts-jest',
|
||||
'^.+\\.jsx?$': 'babel-jest',
|
||||
},
|
||||
preset: 'ts-jest/presets/js-with-ts',
|
||||
testEnvironment: 'node',
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
// { plugin: fastRefreshCracoPlugin },
|
||||
{
|
||||
plugin: CracoAlias,
|
||||
options: {
|
||||
source: 'tsconfig',
|
||||
tsConfigPath: 'tsconfig.paths.json',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue