-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.projenrc.ts
74 lines (65 loc) · 1.49 KB
/
.projenrc.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
import { Cdk8sTeamNodeProject } from '@cdk8s/projen-common';
import { typescript } from 'projen';
const project = new Cdk8sTeamNodeProject({
projenrcJs: false,
defaultReleaseBranch: 'main',
name: 'root',
devDeps: [
'@cdk8s/projen-common',
'lerna',
],
release: false,
jest: false,
workflowBootstrapSteps: [
{
uses: 'actions/setup-python@v5',
with: {
'python-version': '3.10.4'
},
},
{
name: 'Install pipenv',
run: 'pip install pipenv'
},
{
uses: 'actions/setup-java@v4',
with: {
'distribution': 'adopt',
'java-version': '19.0.2'
}
},
{
name: 'Install Maven',
uses: 'stCarolas/setup-maven@v5',
with: {
'maven-version': '3.9.1',
}
}
],
});
new typescript.ProjenrcTs(project);
project.package.addField('private', true);
project.package.addField('workspaces', {
packages: [
'typescript/**/*',
'go/**/*',
'python/**/*',
'java/**/*',
]
});
project.testTask.reset();
//@ts-ignore
project.buildTask._locked = false;
project.buildTask.reset('lerna run build --skip-nx-cache --no-bail');
//@ts-ignore
project.buildTask._locked = true
// no package task is needed
project.packageTask.reset();
project.gitignore.exclude('.vscode')
project.tasks.removeTask('test');
project.tasks.removeTask('test:update');
// next version requires node >= 18
project.package.addField('resolutions', {
'@yarnpkg/parsers': '3.0.0-rc.48.1',
});
project.synth();