-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sdtt 239 use aliases for imports in oslo uml transformer code (#38)
* Added `@interfaces/` alias inside the project * Replaced `@interfaces/` from both index.ts files * Added `module-alias` so Node can recognize the aliases * Added POC for aliases inside the project * Added _moduleAlias to final package.json * Add import of `module-alias` to each runner.ts file across project * Remove aliases from packages that don't need them * Renamed interfaces alias to enum since it does not use interfaces alias * Updated the aliases to the root of the package, rather than directly to a subdir such as /interfaces or /enums * Updated imports to make use of aliases for all enums * Replaced all ./utils paths with an alias * Replaces all ./types with an alias * Update ./config paths to use an alias * Replaced all ../ paths with their respective alias * Replaced all ./ paths with their respective alias
- Loading branch information
1 parent
3f391ab
commit de0e841
Showing
81 changed files
with
389 additions
and
1,859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env node | ||
import { StakeholdersConversionServiceRunner } from '../lib/StakeholdersConversionServiceRunner'; | ||
import 'module-alias/register'; | ||
import { StakeholdersConversionServiceRunner } from '@oslo-converter-stakeholders/StakeholdersConversionServiceRunner'; | ||
// eslint-disable-next-line no-sync | ||
new StakeholdersConversionServiceRunner().runCliSync(process); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import 'reflect-metadata'; | ||
export * from './lib/config/StakeholdersConversionServiceConfiguration'; | ||
export * from './lib/StakeholdersConversionService'; | ||
export * from './lib/StakeholdersConversionServiceRunner'; | ||
import 'module-alias/register'; | ||
|
||
export * from '@oslo-converter-stakeholders/config/StakeholdersConversionServiceConfiguration'; | ||
export * from '@oslo-converter-stakeholders/StakeholdersConversionService'; | ||
export * from '@oslo-converter-stakeholders/StakeholdersConversionServiceRunner'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
packages/oslo-converter-stakeholders/lib/StakeholdersConversionServiceRunner.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/oslo-converter-stakeholders/lib/config/DependencyInjectionConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/oslo-converter-stakeholders/lib/utils/ToJsonLdTransformer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env node | ||
import { EaUmlConversionServiceRunner } from '../lib/EaUmlConversionServiceRunner'; | ||
import 'module-alias/register'; | ||
import { EaUmlConversionServiceRunner } from '@oslo-converter-uml-ea/EaUmlConversionServiceRunner'; | ||
// eslint-disable-next-line no-sync | ||
new EaUmlConversionServiceRunner().runCliSync(process); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import 'reflect-metadata'; | ||
export * from './lib/ConverterHandlerService'; | ||
export * from './lib/EaUmlConversionService'; | ||
export * from './lib/EaUmlConversionServiceRunner'; | ||
export * from './lib/UriRegistry'; | ||
export * from './lib/OutputHandlerService'; | ||
export * from './lib/converter-handlers/AttributeConverterHandler'; | ||
export * from './lib/converter-handlers/ElementConverterHandler'; | ||
export * from './lib/converter-handlers/PackageConverterHandler'; | ||
export * from './lib/converter-handlers/ConnectorConverterHandler'; | ||
export * from './lib/config/DependencyInjectionConfig'; | ||
export * from './lib/config/EaUmlConverterConfiguration'; | ||
export * from './lib/config/EaUmlConverterServiceIdentifier'; | ||
export * from './lib/enums/CasingTypes'; | ||
export * from './lib/enums/DataTypes'; | ||
export * from './lib/enums/TagNames'; | ||
export * from './lib/interfaces/ConverterHandler'; | ||
export * from './lib/utils/utils'; | ||
export * from './lib/output-handlers/JsonLdOutputHandler'; | ||
import 'module-alias/register'; | ||
|
||
export * from '@oslo-converter-uml-ea/ConverterHandlerService'; | ||
export * from '@oslo-converter-uml-ea/EaUmlConversionService'; | ||
export * from '@oslo-converter-uml-ea/EaUmlConversionServiceRunner'; | ||
export * from '@oslo-converter-uml-ea/UriRegistry'; | ||
export * from '@oslo-converter-uml-ea/OutputHandlerService'; | ||
export * from '@oslo-converter-uml-ea/converter-handlers/AttributeConverterHandler'; | ||
export * from '@oslo-converter-uml-ea/converter-handlers/ElementConverterHandler'; | ||
export * from '@oslo-converter-uml-ea/converter-handlers/PackageConverterHandler'; | ||
export * from '@oslo-converter-uml-ea/converter-handlers/ConnectorConverterHandler'; | ||
export * from '@oslo-converter-uml-ea/config/DependencyInjectionConfig'; | ||
export * from '@oslo-converter-uml-ea/config/EaUmlConverterConfiguration'; | ||
export * from '@oslo-converter-uml-ea/config/EaUmlConverterServiceIdentifier'; | ||
export * from '@oslo-converter-uml-ea/enums/CasingTypes'; | ||
export * from '@oslo-converter-uml-ea/enums/DataTypes'; | ||
export * from '@oslo-converter-uml-ea/enums/TagNames'; | ||
export * from '@oslo-converter-uml-ea/interfaces/ConverterHandler'; | ||
export * from '@oslo-converter-uml-ea/utils/utils'; | ||
export * from '@oslo-converter-uml-ea/output-handlers/JsonLdOutputHandler'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/oslo-converter-uml-ea/lib/ConverterHandlerService.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.