-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request #1565: Release/minor 12.1.0
Merge in OUI/oblique from release/minor_12.1.0 to master * commit 'bd329027b04b39a54ee817d1b2a5b547b8d42124': (50 commits) chore(toolchain): release version 12.1.0 chore(toolchain): update dependencies and refactor accordingly feat(cli/update): add `ob update` command feat(cli/toolchain): add `update` scope feat(cli/toolchain): disable rule of no-console for tests fix(oblique/language): remove export of `ObLanguageService` refactor(oblique/language): remove deprecation notice of `ObLanguageService` feat(sds/focus-with-outline): add focus with outline example feat(sandbox/focus-with-outline): add focus sample feat(oblique/utilities): add API to focus with outline fix(sandbox/notification): add missing translation keys fix(oblique/notification): enable dynamic change of translations fix(oblique/service-navigation): make language dropdown keyboard accessible fix(service-navigation/web-component): show focus on language dropdown feat(oblique/language): remove `DateAdapter` warning feat(sandbox/master-layout): show parent main menu item without URL refactor(sandbox/master-layout): move navigation to a dedicated file feat(oblique/master-layout): add support for parent main menu item without URL feat(oblique/material): deprecate `ObSelectDirective` feat(oblique/material): deprecate `ObFormFieldModule` ...
- Loading branch information
Showing
114 changed files
with
2,995 additions
and
802 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import {Command, OptionValues} from '@commander-js/extra-typings'; | ||
import {getVersionedDependency, projectNamePlaceholder} from '../utils/cli-utils'; | ||
|
||
export type ObNewOptions<ValueType> = Record<OptionKeys, ValueType>; | ||
|
||
export interface ObNewSchemaOption { | ||
type: string; | ||
description: string; | ||
shortFlag?: string; | ||
defaultValue?: boolean | string; | ||
flagValuePlaceholder?: string; | ||
defaultValueDescription?: string; | ||
choices?: string[]; | ||
mandatory?: boolean; | ||
resources?: string[]; | ||
} | ||
|
||
export interface HandleObNewActionOptions { | ||
projectName: string; | ||
command: Command<[string], OptionValues>; | ||
} | ||
|
||
export type OptionKeys = | ||
| 'title' | ||
| 'locales' | ||
| 'ajv' | ||
| 'unknownRoute' | ||
| 'httpInterceptors' | ||
| 'banner' | ||
| 'environments' | ||
| 'externalLink' | ||
| 'prefix' | ||
| 'jest' | ||
| 'protractor' | ||
| 'npmrc' | ||
| 'proxy' | ||
| 'sonar' | ||
| 'eslint' | ||
| 'husky'; | ||
|
||
export type ImmutableOptionsType = 'no-standalone' | 'no-ssr' | 'style'; | ||
|
||
export const immutableOptions: Record<ImmutableOptionsType, {value?: string; description: string}> = { | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
'no-standalone': { | ||
description: `Oblique doesn't support standalone components` | ||
}, | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
'no-ssr': { | ||
description: `Oblique doesn't support server side rendering` | ||
}, | ||
style: { | ||
value: 'scss', | ||
description: 'Oblique uses SCSS' | ||
} | ||
}; | ||
|
||
export const obNewConfig = { | ||
obNewSummaryText: `Creates an Oblique project`, | ||
projectNameArgument: { | ||
description: `Unique name for your new project`, | ||
argumentName: projectNamePlaceholder | ||
} | ||
}; | ||
|
||
export const createsWorkspaceMessage = `\nCreates a new Angular workspace`; | ||
export const ngAddStringCommand = `npx ${getVersionedDependency('@angular/cli')} add ${getVersionedDependency('@oblique/oblique')}`; |
Oops, something went wrong.