-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude enterprise edition files from community edition builds #2550
Exclude enterprise edition files from community edition builds #2550
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maciaszczykm The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8509d26
to
d30c2b9
Compare
@@ -12,7 +12,7 @@ | |||
"start:local": "npm run vi && ng serve --configuration=local", | |||
"start:e2e": "npm run vi && ng serve --configuration=e2e", | |||
"start:e2e-local": "npm run vi && ng serve --configuration=e2e-local", | |||
"build": "npm run vi && ng build --prod", | |||
"build": "npm run vi && ng build --prod --tsConfig=src/tsconfig.\"${KUBERMATIC_EDITION:=ee}\".json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to this change we will be able to use tsconfig.ee.json
or tsconfig.ce.json
depending on the KUBERMATIC_EDITION
environment variable. KUBERMATIC_EDITION
will be defaulted to ee
if it is not set.
"test*.ts", | ||
"**/*.spec.ts", | ||
"**/testing/**", | ||
"app/dynamic/enterprise/**" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the community edition all of the enterprise edition sources will be excluded.
@@ -16,7 +16,7 @@ | |||
"outputPath": "dist", | |||
"index": "src/index.html", | |||
"main": "src/main.ts", | |||
"tsConfig": "src/tsconfig.app.json", | |||
"tsConfig": "src/tsconfig.ee.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use src/tsconfig.ee.json
by default. Additionally, in the development there is no need to exclude any sources. It has to be done for builds only.
@kgroschoff @floreks Can you review? I've already checked |
Codecov Report
@@ Coverage Diff @@
## master #2550 +/- ##
==========================================
+ Coverage 51.31% 52.44% +1.12%
==========================================
Files 226 226
Lines 7935 7936 +1
Branches 967 969 +2
==========================================
+ Hits 4072 4162 +90
+ Misses 3861 3771 -90
- Partials 2 3 +1
Continue to review full report at Codecov.
|
/retest |
/lgtm |
LGTM label has been added. Git tree hash: b9d37ce85a9048c6f966fef6e491daa1cb9adcea
|
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2408
Special notes for your reviewer:
Release note: