-
Notifications
You must be signed in to change notification settings - Fork 378
/
defaults.ts
86 lines (75 loc) 路 1.44 KB
/
defaults.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { getDefaultTsconfigPath } from '../utils/get-default-tsconfig-path';
import { Configuration } from './configuration';
export const defaultConfiguration: Required<Configuration> = {
language: 'ts',
sourceRoot: 'src',
collection: '@nestjs/schematics',
entryFile: 'main',
exec: 'node',
projects: {},
monorepo: false,
compilerOptions: {
builder: {
type: 'tsc',
options: {
configPath: getDefaultTsconfigPath(),
},
},
webpack: false,
plugins: [],
assets: [],
manualRestart: false,
},
generateOptions: {},
};
export const defaultTsconfigFilename = getDefaultTsconfigPath();
export const defaultWebpackConfigFilename = 'webpack.config.js';
export const defaultOutDir = 'dist';
export const defaultGitIgnore = `# compiled output
/dist
/node_modules
/build
# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# OS
.DS_Store
# Tests
/coverage
/.nyc_output
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# temp directory
.temp
.tmp
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
`;