Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NodeSharedCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Shared
NodeSharedCode
Compare revisions
9e3f29d2f313ef96944a199da0db39f1827c496a to d509efa1b35e100446ace49d8e665ca72e5a7afe
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dojo_project/projects/shared/nodesharedcode
Select target project
No results found
d509efa1b35e100446ace49d8e665ca72e5a7afe
Select Git revision
Swap
Target
dojo_project/projects/shared/nodesharedcode
Select target project
dojo_project/projects/shared/nodesharedcode
1 result
9e3f29d2f313ef96944a199da0db39f1827c496a
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Add sonar in config
· d509efa1
joel.vonderwe
authored
1 year ago
d509efa1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/SharedConfig.ts
+2
-0
2 additions, 0 deletions
config/SharedConfig.ts
with
2 additions
and
0 deletions
config/SharedConfig.ts
View file @
d509efa1
class
SharedConfig
{
public
readonly
production
:
boolean
;
public
debug
:
boolean
=
false
;
public
useSonar
:
boolean
=
false
;
public
readonly
logsFolder
:
string
;
...
...
@@ -21,6 +22,7 @@ class SharedConfig {
constructor
()
{
this
.
production
=
process
.
env
.
NODE_ENV
===
'
production
'
;
this
.
useSonar
=
[
'
yes
'
,
'
true
'
,
'
1
'
,
'
on
'
].
includes
(
process
.
env
.
USE_SONAR
?.
trim
()?.
toLowerCase
()
??
''
);
this
.
logsFolder
=
process
.
env
.
LOGS_FOLDER
||
''
;
...
...
This diff is collapsed.
Click to expand it.