-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.ts
31 lines (29 loc) · 911 Bytes
/
configuration.ts
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
import { resolve, join } from "path";
import { BUILD_MODES } from "./build/common/constants";
export const configuration = {
title: 'Demo Application!',
mode: process.env.NODE_ENV !== undefined ? process.env.NODE_ENV as BUILD_MODES : BUILD_MODES.PROD, //Production mode is the default
mountPoint: "application",
projectDir: resolve(__dirname),
source: resolve(__dirname, 'src'),
dist: resolve(__dirname, 'dist'),
build: resolve(__dirname, 'build'),
jest: {
configFile: join(resolve(__dirname), 'jest/jest.config.ts'),
},
eslint: {
configFile: join(resolve(__dirname), '.eslintrc.json'),
pattern: 'src/**/*.{ts,tsx}',
},
filesToCopy: [
'src/**/*.less',
],
filesToClean: [
'src/**/*.d.ts',
],
server: {
host: 'localhost',
port: 9090
}
}
export type Configuration = typeof configuration;