dana-cli 0.0.0-stage → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +43 -0
- package/.github/labeler.yml +30 -0
- package/.github/workflows/bump.yml +51 -0
- package/.github/workflows/ci-cd.yml +110 -0
- package/.github/workflows/dependabot-automerge-call.yml +13 -0
- package/.nvmrc +1 -0
- package/.prettierignore +4 -0
- package/.prettierrc +4 -0
- package/CODEOWNERS +5 -0
- package/README.md +50 -2
- package/bin/bump.js +48 -0
- package/eslint.config.mjs +12 -0
- package/images/vodScreen1.png +0 -0
- package/package.json +53 -5
- package/sonar-project.properties +20 -0
- package/tools/cli/README.md +51 -0
- package/tools/cli/__mocks__/fs/promises.cjs +4 -0
- package/tools/cli/bin/dana.js +3 -0
- package/tools/cli/dana_completion.sh +156 -0
- package/tools/cli/eslint.config.mjs +14 -0
- package/tools/cli/package.json +67 -0
- package/tools/cli/rollup.config.mjs +26 -0
- package/tools/cli/src/commands/addComponent/addMenu/add-menu.ts +65 -0
- package/tools/cli/src/commands/addComponent/addMenu/addMenuDefinition.ts +21 -0
- package/tools/cli/src/commands/addComponent/addRail/add-rail.ts +59 -0
- package/tools/cli/src/commands/addComponent/addRail/addRailDefinition.ts +34 -0
- package/tools/cli/src/commands/addComponent/addScreen/add-screen.ts +42 -0
- package/tools/cli/src/commands/addComponent/addScreen/addScreenDefinition.ts +17 -0
- package/tools/cli/src/commands/addComponent/addScrollView/add-scrollView.ts +48 -0
- package/tools/cli/src/commands/addComponent/addScrollView/addScrollViewDefinition.ts +16 -0
- package/tools/cli/src/commands/addComponent/config/ComponentConfig.ts +169 -0
- package/tools/cli/src/commands/addComponent/config/componentTypes.ts +38 -0
- package/tools/cli/src/commands/addComponent/const/componentConst.ts +20 -0
- package/tools/cli/src/commands/addComponent/const/defaultConfig.ts +28 -0
- package/tools/cli/src/commands/addComponent/const/navigationConst.ts +36 -0
- package/tools/cli/src/commands/addComponent/createComponent.ts +45 -0
- package/tools/cli/src/commands/addComponent/helper/ComponentHelper.ts +98 -0
- package/tools/cli/src/commands/addDevice/add-device.ts +106 -0
- package/tools/cli/src/commands/addDevice/addDeviceDefinition.ts +13 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/androidtvConfig.ts +142 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/configTypes.ts +44 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/deviceConfig.ts +38 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/titanosConfig.ts +17 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/tizenConfig.ts +64 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/tvosConfig.ts +50 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/vidaaConfig.ts +17 -0
- package/tools/cli/src/commands/addDevice/deviceConfig/webosConfig.ts +64 -0
- package/tools/cli/src/commands/addDevice/helper/addDeviceHelper.ts +121 -0
- package/tools/cli/src/commands/addDianaSkills/add-dianaSkills.ts +55 -0
- package/tools/cli/src/commands/addDianaSkills/addDianaSkillsDefinition.ts +13 -0
- package/tools/cli/src/commands/addDianaSkills/dianaDependencies.ts +15 -0
- package/tools/cli/src/commands/addModule/add-module.ts +46 -0
- package/tools/cli/src/commands/addModule/addModuleDefinition.ts +17 -0
- package/tools/cli/src/commands/addModule/moduleConst.ts +18 -0
- package/tools/cli/src/commands/authentication/AuthenticationManager.ts +255 -0
- package/tools/cli/src/commands/authentication/authDefinition.ts +51 -0
- package/tools/cli/src/commands/authentication/authHook.ts +50 -0
- package/tools/cli/src/commands/authentication/authentConst.ts +6 -0
- package/tools/cli/src/commands/authentication/commands/get-packages-token.ts +40 -0
- package/tools/cli/src/commands/authentication/commands/login.ts +63 -0
- package/tools/cli/src/commands/authentication/commands/logout.ts +26 -0
- package/tools/cli/src/commands/authentication/commands/status.ts +47 -0
- package/tools/cli/src/commands/authentication/helper/CodeArtifactHelper.ts +66 -0
- package/tools/cli/src/commands/authentication/helper/CommandHelper.ts +9 -0
- package/tools/cli/src/commands/authentication/helper/CredentialsHelper.ts +176 -0
- package/tools/cli/src/commands/authentication/helper/SPM.ts +95 -0
- package/tools/cli/src/commands/authentication/tokenHook.ts +30 -0
- package/tools/cli/src/commands/commandHelp/customHelp.ts +31 -0
- package/tools/cli/src/commands/completion/completion.ts +53 -0
- package/tools/cli/src/commands/completion/completionDefinition.ts +16 -0
- package/tools/cli/src/commands/createApp/const/createAppTasks.ts +133 -0
- package/tools/cli/src/commands/createApp/const/setupConst.ts +16 -0
- package/tools/cli/src/commands/createApp/const/templateConst.ts +10 -0
- package/tools/cli/src/commands/createApp/createApp.ts +60 -0
- package/tools/cli/src/commands/createApp/createAppDefinition.ts +26 -0
- package/tools/cli/src/commands/createApp/helpers/CreateAppHelper.ts +167 -0
- package/tools/cli/src/commands/createApp/helpers/SetupChecker.ts +98 -0
- package/tools/cli/src/commands/hooks/checkDanaProjectHook.ts +30 -0
- package/tools/cli/src/commands/zip/zip.ts +26 -0
- package/tools/cli/src/commands/zip/zipDefinition.ts +13 -0
- package/tools/cli/src/common/commonConst.ts +1 -0
- package/tools/cli/src/common/const/deviceConst.ts +110 -0
- package/tools/cli/src/common/const/exitCodeConst.ts +12 -0
- package/tools/cli/src/common/helpers/CreateArchiveHelper.ts +55 -0
- package/tools/cli/src/common/helpers/CreateFileHelper.ts +199 -0
- package/tools/cli/src/common/helpers/InputValidator.ts +58 -0
- package/tools/cli/src/common/helpers/InstallHelper.ts +202 -0
- package/tools/cli/src/common/helpers/UpdateFileHelper.ts +239 -0
- package/tools/cli/src/common/helpers/UserInputGetter.ts +145 -0
- package/tools/cli/src/common/helpers/handlebarsHelper.ts +31 -0
- package/tools/cli/src/common/helpers/stringHelper.ts +25 -0
- package/tools/cli/src/common/translation/en.json +87 -0
- package/tools/cli/src/common/translation/translation.ts +6 -0
- package/tools/cli/src/common/types/helperTypes.ts +79 -0
- package/tools/cli/src/index.ts +16 -0
- package/tools/cli/src/program.ts +59 -0
- package/tools/cli/tests/commands/addComponent/addMenu/add-menu.test.ts +96 -0
- package/tools/cli/tests/commands/addComponent/addRail/add-rail.test.ts +57 -0
- package/tools/cli/tests/commands/addComponent/addScreen/add-screen.test.ts +55 -0
- package/tools/cli/tests/commands/addComponent/addScrollView/add-scrollView.test.ts +89 -0
- package/tools/cli/tests/commands/addComponent/config/ComponentConfig.test.ts +261 -0
- package/tools/cli/tests/commands/addComponent/createComponent.test.ts +87 -0
- package/tools/cli/tests/commands/addComponent/helper/ComponentHelper.test.ts +110 -0
- package/tools/cli/tests/commands/addDevice/add-device.test.ts +117 -0
- package/tools/cli/tests/commands/addDevice/deviceConfig/androidtvConfig.test.ts +184 -0
- package/tools/cli/tests/commands/addDevice/deviceConfig/deviceConfig.test.ts +30 -0
- package/tools/cli/tests/commands/addDevice/deviceConfig/titanosConfig.test.ts +20 -0
- package/tools/cli/tests/commands/addDevice/deviceConfig/tizenConfig.test.ts +63 -0
- package/tools/cli/tests/commands/addDevice/deviceConfig/tvosConfig.test.ts +47 -0
- package/tools/cli/tests/commands/addDevice/deviceConfig/vidaaConfig.test.ts +20 -0
- package/tools/cli/tests/commands/addDevice/deviceConfig/webosConfig.test.ts +74 -0
- package/tools/cli/tests/commands/addDevice/helper/addDeviceHelper.test.ts +144 -0
- package/tools/cli/tests/commands/addDianaSkills/add-dianaSkills.test.ts +72 -0
- package/tools/cli/tests/commands/addModule/add-module.test.ts +108 -0
- package/tools/cli/tests/commands/authentication/AuthenticationManager.test.ts +756 -0
- package/tools/cli/tests/commands/authentication/commands/authDefinition.test.ts +53 -0
- package/tools/cli/tests/commands/authentication/commands/authHook.test.ts +94 -0
- package/tools/cli/tests/commands/authentication/commands/get-packages-token.test.ts +69 -0
- package/tools/cli/tests/commands/authentication/commands/login.test.ts +170 -0
- package/tools/cli/tests/commands/authentication/commands/logout.test.ts +77 -0
- package/tools/cli/tests/commands/authentication/commands/status.test.ts +73 -0
- package/tools/cli/tests/commands/authentication/helper/CredentialsHelper.test.ts +352 -0
- package/tools/cli/tests/commands/authentication/helper/SPM.test.ts +229 -0
- package/tools/cli/tests/commands/cliHelp/customHelp.test.ts +24 -0
- package/tools/cli/tests/commands/completion/completion.test.ts +76 -0
- package/tools/cli/tests/commands/createApp/const/createAppTasks.test.ts +70 -0
- package/tools/cli/tests/commands/createApp/createApp.test.ts +116 -0
- package/tools/cli/tests/commands/createApp/helpers/CreateAppHelper.test.ts +197 -0
- package/tools/cli/tests/commands/createApp/helpers/SetupChecker.test.ts +152 -0
- package/tools/cli/tests/commands/createApp/helpers/fixtures/myApp/scripts/app/ui/screens/SplashScreen.js +70 -0
- package/tools/cli/tests/commands/hooks/checkDanaProjectHook.test.ts +55 -0
- package/tools/cli/tests/commands/zip/zip.test.ts +51 -0
- package/tools/cli/tests/common/helpers/CreateArchiveHelper.test.ts +69 -0
- package/tools/cli/tests/common/helpers/CreateFileHelper.test.ts +359 -0
- package/tools/cli/tests/common/helpers/InputValidator.test.ts +93 -0
- package/tools/cli/tests/common/helpers/InstallHelper.test.ts +262 -0
- package/tools/cli/tests/common/helpers/UpdateFileHelper.test.ts +288 -0
- package/tools/cli/tests/common/helpers/UserInputGetter.test.ts +182 -0
- package/tools/cli/tests/common/helpers/handlebarsHelper.test.ts +87 -0
- package/tools/cli/tests/common/helpers/stringHelper.test.ts +35 -0
- package/tools/cli/tests/program.test.ts +215 -0
- package/tools/cli/tsconfig.json +19 -0
- package/tools/cli/tsconfig.test.json +4 -0
- package/tools/cli/vitest.config.ts +4 -0
- package/tools/templates/app-template/.dana/.gitkeep +0 -0
- package/tools/templates/app-template/Gruntfile.js +31 -0
- package/tools/templates/app-template/README.md +17 -0
- package/tools/templates/app-template/app.config.json +56 -0
- package/tools/templates/app-template/editorconfigTemplate.hbs +18 -0
- package/tools/templates/app-template/eslintrc.jsonTemplate.hbs +5 -0
- package/tools/templates/app-template/gitignoreTemplate.hbs +27 -0
- package/tools/templates/app-template/i18n/LocaleStringEnUS.json +7 -0
- package/tools/templates/app-template/i18n/README.md +32 -0
- package/tools/templates/app-template/images/dana.png +0 -0
- package/tools/templates/app-template/images/dana_logo.png +0 -0
- package/tools/templates/app-template/images/dana_logo_light.png +0 -0
- package/tools/templates/app-template/images/loading.png +0 -0
- package/tools/templates/app-template/nvmrcTemplate.hbs +1 -0
- package/tools/templates/app-template/package.json +33 -0
- package/tools/templates/app-template/profiles/app.config.browser-css.json +16 -0
- package/tools/templates/app-template/profiles/app.config.browser-lightning.json +16 -0
- package/tools/templates/app-template/scripts/app/README.md +6 -0
- package/tools/templates/app-template/scripts/app/TemplateAppRoutes.js.hbs +18 -0
- package/tools/templates/app-template/scripts/app/app.js.hbs +17 -0
- package/tools/templates/app-template/scripts/app/theme/AppTheme.js +57 -0
- package/tools/templates/app-template/scripts/app/ui/screens/AppScreen.js +106 -0
- package/tools/templates/app-template/scripts/app/ui/screens/SplashScreen.js +70 -0
- package/tools/templates/app-template/scripts/app/ui/views/LoaderView.js +31 -0
- package/tools/templates/app-template/styles/fonts/Roboto-Bold.ttf +0 -0
- package/tools/templates/app-template/styles/fonts/Roboto-Regular.ttf +0 -0
- package/tools/templates/app-template/tests/README.md +70 -0
- package/tools/templates/app-template/tests/automation/features/splash.feature +5 -0
- package/tools/templates/app-template/tests/automation/init.js +20 -0
- package/tools/templates/app-template/tests/automation/steps-definitions/dictionary.js +31 -0
- package/tools/templates/app-template/tests/automation/steps-definitions/helpers.js +9 -0
- package/tools/templates/app-template/tests/unit/README.md +7 -0
- package/tools/templates/app-template/tests/unit/app/TemplateAppRoutes.js.hbs +24 -0
- package/tools/templates/assets/fonts/fa-solid-900.ttf +0 -0
- package/tools/templates/components/ButtonItemView.js.hbs +69 -0
- package/tools/templates/components/ButtonView.js.hbs +65 -0
- package/tools/templates/components/ScrollItemView.js.hbs +53 -0
- package/tools/templates/components/ScrollView.js.hbs +43 -0
- package/tools/templates/components/TileView.js.hbs +55 -0
- package/tools/templates/components/screen.js.hbs +74 -0
- package/tools/templates/components/settings.js.hbs +74 -0
- package/tools/templates/components/vod.js.hbs +104 -0
- package/tools/templates/components/wtvMenuListView.js.hbs +38 -0
- package/tools/templates/components/wtvRailListView.js.hbs +44 -0
- package/tools/templates/index.ts +3 -0
- package/tools/templates/mocks/menuMock.json +29 -0
- package/tools/templates/mocks/railMock.json +101 -0
- package/tools/templates/mocks/scrollViewMock.json +165 -0
- package/tools/templates/modules/fip/images/12.png +0 -0
- package/tools/templates/modules/fip/images/audioD.png +0 -0
- package/tools/templates/modules/fip/package.json +5 -0
- package/tools/templates/modules/fip/scripts/FipModule.js +19 -0
- package/tools/templates/modules/fip/scripts/FipRoutes.js +19 -0
- package/tools/templates/modules/fip/scripts/services/mock/fipMock.json +12 -0
- package/tools/templates/modules/fip/scripts/ui/screens/FipScreen.js +169 -0
- package/tools/templates/modules/fip/scripts/ui/views/FipContentInfoView.js +77 -0
- package/tools/templates/modules/fip/scripts/ui/views/InfoDetailImageView.js +35 -0
- package/tools/templates/modules/fip/scripts/ui/views/InfoDetailTextView.js +39 -0
- package/tools/templates/modules/fip/scripts/ui/views/InfoListView.js +57 -0
- package/tools/templates/modules/fip/scripts/ui/views/PlayButtonView.js +63 -0
- package/tools/templates/modules/home/package.json +5 -0
- package/tools/templates/modules/home/scripts/HomeModule.js +19 -0
- package/tools/templates/modules/home/scripts/HomeRoutes.js +19 -0
- package/tools/templates/modules/home/scripts/services/mock/highlightMock.json +40 -0
- package/tools/templates/modules/home/scripts/services/mock/homeScrollViewMock.json +170 -0
- package/tools/templates/modules/home/scripts/ui/screens/HomeScreen.js +258 -0
- package/tools/templates/modules/home/scripts/ui/views/highlight/DotsListItemView.js +37 -0
- package/tools/templates/modules/home/scripts/ui/views/highlight/DotsListView.js +22 -0
- package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightContentDescriptionView.js +99 -0
- package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightPlayButtonView.js +63 -0
- package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightRailItemView.js +186 -0
- package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeMockTileView.js +67 -0
- package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeRailScrollView.js +53 -0
- package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeScrollView.js +22 -0
- package/tools/templates/modules/menu/images/profile.png +0 -0
- package/tools/templates/modules/menu/package.json +5 -0
- package/tools/templates/modules/menu/scripts/MenuModule.js +18 -0
- package/tools/templates/modules/menu/scripts/MenuRoutes.js +14 -0
- package/tools/templates/modules/menu/scripts/services/menuMock.json +24 -0
- package/tools/templates/modules/menu/scripts/ui/const/MenuIcons.js +16 -0
- package/tools/templates/modules/menu/scripts/ui/views/MenuButtonView.js +101 -0
- package/tools/templates/modules/menu/scripts/ui/views/MenuListView.js +60 -0
- package/tools/templates/modules/menu/scripts/ui/views/MenuView.js +87 -0
- package/tools/templates/modules/menu/scripts/ui/views/ProfileImageView.js +30 -0
- package/tools/templates/modules/player/package.json +5 -0
- package/tools/templates/modules/player/scripts/PlayerModule.js +19 -0
- package/tools/templates/modules/player/scripts/PlayerRoutes.js +19 -0
- package/tools/templates/modules/player/scripts/ui/const/PlayerIcons.js +19 -0
- package/tools/templates/modules/player/scripts/ui/screens/PlayerScreen.js +361 -0
- package/tools/templates/modules/player/scripts/ui/views/PlayerControlButtonView.js +69 -0
- package/tools/templates/modules/player/scripts/ui/views/PlayerControlsView.js +173 -0
- package/tools/templates/modules/player/scripts/ui/views/ProgressBarView.js +53 -0
- package/tools/templates/modules/search/package.json +5 -0
- package/tools/templates/modules/search/scripts/SearchModule.js +18 -0
- package/tools/templates/modules/search/scripts/SearchRoutes.js +16 -0
- package/tools/templates/modules/search/scripts/ui/const/EnglishKeyboardData.js +31 -0
- package/tools/templates/modules/search/scripts/ui/const/SearchIcons.js +14 -0
- package/tools/templates/modules/search/scripts/ui/const/SearchKeyboardLayout.js +19 -0
- package/tools/templates/modules/search/scripts/ui/primitives/SearchTextPrimitive.js +36 -0
- package/tools/templates/modules/search/scripts/ui/screens/SearchScreen.js +234 -0
- package/tools/templates/modules/search/scripts/ui/services/MockSearchService.js +39 -0
- package/tools/templates/modules/search/scripts/ui/services/SearchVirtualKeyboardService.js +33 -0
- package/tools/templates/modules/search/scripts/ui/services/mock/searchMock.json +172 -0
- package/tools/templates/modules/search/scripts/ui/views/SearchView.js +62 -0
- package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardRowItemView.js +92 -0
- package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardRowListView.js +33 -0
- package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardView.js +63 -0
- package/tools/templates/modules/search/scripts/ui/views/rail/SearchScrollRailView.js +53 -0
- package/tools/templates/modules/search/scripts/ui/views/rail/SearchScrollView.js +22 -0
- package/tools/templates/modules/search/scripts/ui/views/rail/SearchTileView.js +68 -0
- package/tools/templates/modules/search/styles/styles/fonts/fa-solid-900.ttf +0 -0
- package/tools/templates/modules/settings/package.json +5 -0
- package/tools/templates/modules/settings/scripts/SettingsModule.js +19 -0
- package/tools/templates/modules/settings/scripts/SettingsRoutes.js +19 -0
- package/tools/templates/modules/settings/scripts/ui/screens/SettingsScreen.js +200 -0
- package/tools/templates/modules/settings/scripts/ui/views/SettingsListItemView.js +85 -0
- package/tools/templates/modules/settings/scripts/ui/views/SettingsListView.js +56 -0
- package/tools/templates/modules/vod/package.json +5 -0
- package/tools/templates/modules/vod/scripts/VodModule.js +19 -0
- package/tools/templates/modules/vod/scripts/VodRoutes.js +19 -0
- package/tools/templates/modules/vod/scripts/services/mock/scrollViewMock.json +172 -0
- package/tools/templates/modules/vod/scripts/ui/screens/VodScreen.js +204 -0
- package/tools/templates/modules/vod/scripts/ui/views/MockTileView.js +69 -0
- package/tools/templates/modules/vod/scripts/ui/views/RailScrollItemView.js +53 -0
- package/tools/templates/modules/vod/scripts/ui/views/VodScrollView.js +22 -0
- package/tools/templates/package.json +14 -0
- package/tools/templates/profiles/app.config.androidtv.json +17 -0
- package/tools/templates/profiles/app.config.titanos.json +24 -0
- package/tools/templates/profiles/app.config.tizen.json +52 -0
- package/tools/templates/profiles/app.config.tvos.json +18 -0
- package/tools/templates/profiles/app.config.vidaa.json +24 -0
- package/tools/templates/profiles/app.config.webos.json +21 -0
- package/tools/templates/tutorial/modules/fip/package.json +4 -0
- package/tools/templates/tutorial/modules/fip/scripts/FipModule.js +18 -0
- package/tools/templates/tutorial/modules/fip/scripts/FipRoutes.js +19 -0
- package/tools/templates/tutorial/modules/fip/scripts/ui/screens/FipContentScreen.js +146 -0
- package/tools/templates/tutorial/modules/fip/scripts/ui/views/ElevatorView.js +66 -0
- package/tools/templates/tutorial/modules/fip/scripts/ui/views/FipContentInfoView.js +90 -0
- package/tools/templates/tutorial/modules/fip/scripts/ui/views/PlayButtonView.js +58 -0
- package/tools/templates/tutorial/vendors/customBE/package.json +5 -0
- package/tools/templates/tutorial/vendors/customBE/scripts/datas/contents.json +749 -0
- package/tools/templates/tutorial/vendors/customBE/scripts/services/CustomBEVodService.js +70 -0
- package/tsconfig.json +8 -0
- package/vitest.config.ts +19 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Dependabot configuration for automated dependency updates
|
|
2
|
+
# - Separates minor/patch updates (grouped) from major updates
|
|
3
|
+
# - Applies to root directory and tools/cli workspace
|
|
4
|
+
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
registries:
|
|
8
|
+
npm-codeartifact:
|
|
9
|
+
type: npm-registry
|
|
10
|
+
url: https://dana-733912940672.d.codeartifact.eu-central-1.amazonaws.com/npm/dana-rnd-repository/
|
|
11
|
+
token: ${{ secrets.DANA_RND_REPOSITORY_TOKEN }}
|
|
12
|
+
|
|
13
|
+
updates:
|
|
14
|
+
- package-ecosystem: "npm"
|
|
15
|
+
directory: "/"
|
|
16
|
+
registries:
|
|
17
|
+
- npm-codeartifact
|
|
18
|
+
schedule:
|
|
19
|
+
interval: "weekly"
|
|
20
|
+
day: "friday"
|
|
21
|
+
commit-message:
|
|
22
|
+
prefix: "[npm] "
|
|
23
|
+
assignees:
|
|
24
|
+
- "maximilien-lepivain_wiztivi"
|
|
25
|
+
- "celine-seveno_wiztivi"
|
|
26
|
+
ignore:
|
|
27
|
+
- dependency-name: "@types/node"
|
|
28
|
+
# Keep node version matching framework node version
|
|
29
|
+
versions: [">=23.0.O"]
|
|
30
|
+
- dependency-name: "rollup-plugin-node-externals"
|
|
31
|
+
# Version> 9 requires node 24
|
|
32
|
+
versions: [">=9.0.0"]
|
|
33
|
+
# temporary https://github.com/wiztivi-rd/dana-build-front/issues/1050
|
|
34
|
+
- dependency-name: "typescript"
|
|
35
|
+
versions: [">=6.0.0"]
|
|
36
|
+
groups:
|
|
37
|
+
minor:
|
|
38
|
+
update-types:
|
|
39
|
+
- "minor"
|
|
40
|
+
- "patch"
|
|
41
|
+
major:
|
|
42
|
+
update-types:
|
|
43
|
+
- "major"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# https://github.com/actions/labeler#readme
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- head-branch: "^feature/"
|
|
5
|
+
|
|
6
|
+
bugfix:
|
|
7
|
+
- head-branch: "^bugfix/"
|
|
8
|
+
|
|
9
|
+
release:
|
|
10
|
+
- head-branch: "^release/"
|
|
11
|
+
|
|
12
|
+
# FILES CHANGED
|
|
13
|
+
cli:
|
|
14
|
+
- changed-files:
|
|
15
|
+
- any-glob-to-any-file:
|
|
16
|
+
- tools/cli/**
|
|
17
|
+
- tools/create-app/**
|
|
18
|
+
|
|
19
|
+
template:
|
|
20
|
+
- changed-files:
|
|
21
|
+
- any-glob-to-any-file: tools/templates/**
|
|
22
|
+
|
|
23
|
+
# OTHERS
|
|
24
|
+
ci-cd:
|
|
25
|
+
- changed-files:
|
|
26
|
+
- any-glob-to-any-file: .github/**
|
|
27
|
+
|
|
28
|
+
config:
|
|
29
|
+
- changed-files:
|
|
30
|
+
- any-glob-to-any-file: "*"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Version Bump
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: "Version number (e.g., 1.2.3)"
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
pull-requests: write
|
|
14
|
+
id-token: write
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
bump-version:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout code
|
|
21
|
+
uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
+
|
|
25
|
+
- name: Setup Node.js
|
|
26
|
+
uses: actions/setup-node@v6
|
|
27
|
+
with:
|
|
28
|
+
node-version-file: ".nvmrc"
|
|
29
|
+
|
|
30
|
+
- name: Login to AWS
|
|
31
|
+
uses: wiztivi-rd/shared-actions/actions/aws/codeartifact-login@v2
|
|
32
|
+
with:
|
|
33
|
+
aws-account-id: ${{ secrets.AWS_ACCOUNT_ID }}
|
|
34
|
+
repository: dana-rnd-repository
|
|
35
|
+
|
|
36
|
+
- name: Configure git
|
|
37
|
+
run: |
|
|
38
|
+
git config --global user.name "github-actions[bot]"
|
|
39
|
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
40
|
+
|
|
41
|
+
- name: Run bump script
|
|
42
|
+
run: node ./bin/bump.js ${{ inputs.version }}
|
|
43
|
+
|
|
44
|
+
- name: Create PR
|
|
45
|
+
uses: peter-evans/create-pull-request@v8
|
|
46
|
+
with:
|
|
47
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
48
|
+
branch: release/v${{ inputs.version }}
|
|
49
|
+
title: "Bump to v${{ inputs.version }}"
|
|
50
|
+
body: "Automated version bump to v${{ inputs.version }}"
|
|
51
|
+
base: master
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
name: CI-CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
- "*-dev"
|
|
8
|
+
pull_request:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write
|
|
12
|
+
contents: write
|
|
13
|
+
pull-requests: write
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
generate-labels:
|
|
20
|
+
name: Generate PR labels
|
|
21
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/generate-label.yml@master
|
|
22
|
+
|
|
23
|
+
check-format:
|
|
24
|
+
name: Check format
|
|
25
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/npm-run.yml@master
|
|
26
|
+
secrets: inherit
|
|
27
|
+
with:
|
|
28
|
+
script: "prettier"
|
|
29
|
+
|
|
30
|
+
get-workspaces:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
outputs:
|
|
33
|
+
workspaces: ${{ steps.generate-matrix.outputs.workspaces }}
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
- id: generate-matrix
|
|
37
|
+
uses: wiztivi-rd/generate-workspaces-matrix-action@master
|
|
38
|
+
|
|
39
|
+
ci:
|
|
40
|
+
name: Lint and Tests
|
|
41
|
+
needs:
|
|
42
|
+
- get-workspaces
|
|
43
|
+
if: ${{needs.get-workspaces.outputs.workspaces != '[]'}}
|
|
44
|
+
strategy:
|
|
45
|
+
fail-fast: false
|
|
46
|
+
matrix:
|
|
47
|
+
workspace: ${{fromJson(needs.get-workspaces.outputs.workspaces)}}
|
|
48
|
+
os: ["['ubuntu-latest']", "['windows-latest']"]
|
|
49
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/npm-run.yml@master
|
|
50
|
+
secrets: inherit
|
|
51
|
+
with:
|
|
52
|
+
script: ci -w=${{ matrix.workspace }}
|
|
53
|
+
name-to-upload: "reports-${{ matrix.workspace }}"
|
|
54
|
+
runs-on: ${{ matrix.os }}
|
|
55
|
+
|
|
56
|
+
sonar:
|
|
57
|
+
needs:
|
|
58
|
+
- ci
|
|
59
|
+
if: github.actor != 'dependabot[bot]'
|
|
60
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/sonar-analyze.yml@master
|
|
61
|
+
secrets: inherit
|
|
62
|
+
|
|
63
|
+
build:
|
|
64
|
+
name: Build
|
|
65
|
+
if: ${{needs.get-workspaces.outputs.workspaces != '[]'}}
|
|
66
|
+
needs:
|
|
67
|
+
- get-workspaces
|
|
68
|
+
- ci
|
|
69
|
+
strategy:
|
|
70
|
+
matrix:
|
|
71
|
+
workspace: ${{fromJson(needs.get-workspaces.outputs.workspaces)}}
|
|
72
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/npm-run.yml@master
|
|
73
|
+
secrets: inherit
|
|
74
|
+
with:
|
|
75
|
+
script: build -w=${{ matrix.workspace }}
|
|
76
|
+
path-to-upload: "false"
|
|
77
|
+
|
|
78
|
+
# this job is necessary for the auto merge ruleset on this repo
|
|
79
|
+
automerge-gatekeeper:
|
|
80
|
+
needs: build
|
|
81
|
+
if: always()
|
|
82
|
+
runs-on: ubuntu-latest
|
|
83
|
+
steps:
|
|
84
|
+
- name: Run merge gatekeeper
|
|
85
|
+
run: ${{ needs.build.result == 'success' && 'exit 0' || 'exit 1'}}
|
|
86
|
+
shell: bash
|
|
87
|
+
|
|
88
|
+
tag:
|
|
89
|
+
name: Check tag
|
|
90
|
+
needs:
|
|
91
|
+
- build
|
|
92
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/generate-tag.yml@master
|
|
93
|
+
|
|
94
|
+
npm-publish:
|
|
95
|
+
name: Publish
|
|
96
|
+
needs:
|
|
97
|
+
- tag
|
|
98
|
+
if: ${{needs.tag.outputs.tagname}}
|
|
99
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/npm-run.yml@master
|
|
100
|
+
secrets: inherit
|
|
101
|
+
with:
|
|
102
|
+
script: "publish"
|
|
103
|
+
|
|
104
|
+
generate-github-release:
|
|
105
|
+
needs:
|
|
106
|
+
- tag
|
|
107
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/generate-github-release.yml@master
|
|
108
|
+
with:
|
|
109
|
+
tag-name: ${{needs.tag.outputs.tagname}}
|
|
110
|
+
prerelease: ${{ contains(needs.tag.outputs.tagname, 'beta') }}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: Dependabot Auto-merge
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
automerge:
|
|
9
|
+
if: github.actor == 'dependabot[bot]'
|
|
10
|
+
uses: wiztivi-rd/shared-workflows/.github/workflows/dependabot-automerge.yml@master
|
|
11
|
+
with:
|
|
12
|
+
allow-major-automerge: true
|
|
13
|
+
secrets: inherit
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
22
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
package/CODEOWNERS
ADDED
package/README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Dana-cli
|
|
4
|
+
|
|
5
|
+
Dana is a JavaScript framework built for TV apps.
|
|
6
|
+
It aims at enabling the creation of natively performant TV applications on all currently available TV platforms.
|
|
7
|
+
Code once, deploy across all major platforms (Samsung Tizen, LG WebOS, Android TV, AppleTV, Xbox..) using a single codebase.
|
|
8
|
+
|
|
9
|
+
This cli is a companion tool made to help you boostrap an application with Dana.
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
To be able to use the dana-cli, you will need:
|
|
14
|
+
|
|
15
|
+
- Node > 20,
|
|
16
|
+
- an account on [Dana Cloud Service](https://app.public.dana-framework.com/)
|
|
17
|
+
|
|
18
|
+
## Getting started
|
|
19
|
+
|
|
20
|
+
First you'll need to use your account to authenticate to Dana Cloud Service platform:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx @wiztivi/dana-cli auth login
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This should open a browser and ask for your account credentials.
|
|
27
|
+
|
|
28
|
+
Then you can create a simple template of your application by running the following command:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx @wiztivi/dana-cli create-app <project-name>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
Use the CLI to:
|
|
37
|
+
|
|
38
|
+
- create a new app project
|
|
39
|
+
- add device(s) easily to deploy your project on more platforms: `npx @wiztivi/dana-cli add-device`,
|
|
40
|
+
- add built-in components to your project: eg `npx @wiztivi/dana-cli add-menu`
|
|
41
|
+
- get autocompletion script for dana commands: `npx @wiztivi/dana-cli completion <shell>`
|
|
42
|
+
|
|
43
|
+
To get all available options and more information:`npx @wiztivi/dana-cli help`
|
|
44
|
+
|
|
45
|
+
## Screenshots
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+
## Credits
|
|
50
|
+
|
|
51
|
+
Icons by [Font Awesome Free](https://fontawesome.com/), licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
package/bin/bump.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Goal of this script is to update module version at the same time to avoid manipulation mistakes
|
|
3
|
+
*/
|
|
4
|
+
import { writeFileSync, readFileSync } from "node:fs";
|
|
5
|
+
import { execSync } from "node:child_process";
|
|
6
|
+
|
|
7
|
+
const ERROR = {
|
|
8
|
+
NO_VERSION: 1,
|
|
9
|
+
FILE_ERROR: 2,
|
|
10
|
+
};
|
|
11
|
+
const packageFileToUpdate = ["./package.json", "./tools/cli/package.json", "./tools/templates/package.json"];
|
|
12
|
+
|
|
13
|
+
if (!process.argv[2]) {
|
|
14
|
+
console.error("[FATAL] Please, provide a version number to be changed in the package version.\n");
|
|
15
|
+
process.exit(ERROR.NO_VERSION);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const version = process.argv[2];
|
|
19
|
+
|
|
20
|
+
packageFileToUpdate.forEach((path) => {
|
|
21
|
+
let packageJson;
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
packageJson = JSON.parse(readFileSync(path, { encoding: "utf8" }));
|
|
25
|
+
} catch (err) {
|
|
26
|
+
console.error(`[FATAL] Error parsing file at ${path}`, err);
|
|
27
|
+
process.exit(ERROR.FILE_ERROR);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
console.info(`The following project will be modified: ${packageJson.name}`);
|
|
31
|
+
packageJson.version = version;
|
|
32
|
+
if (packageJson.name === "@wiztivi/dana-cli") {
|
|
33
|
+
packageJson.dependencies["@wiztivi/dana-templates"] = `^${version}`;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
try {
|
|
37
|
+
writeFileSync(path, JSON.stringify(packageJson, null, " "), { encoding: "utf8" });
|
|
38
|
+
} catch (err) {
|
|
39
|
+
console.error(`[FATAL] Error writing file at ${path}`, err);
|
|
40
|
+
process.exit(ERROR.FILE_ERROR);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
console.info("\nCreating bump commit.");
|
|
45
|
+
execSync("npm i", { stdio: "inherit" });
|
|
46
|
+
execSync(`npm run prettier -- --write`);
|
|
47
|
+
|
|
48
|
+
console.info("\nOperation successful!");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import dana from "@dana/eslint-config";
|
|
2
|
+
import tseslint from "typescript-eslint";
|
|
3
|
+
|
|
4
|
+
export default tseslint.config(
|
|
5
|
+
dana,
|
|
6
|
+
{
|
|
7
|
+
ignores: ["tools/templates/**", "tests/**/fixtures/**"],
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
files: ["scripts/**/*.ts", "src/**/*.ts", "tests/**/*.ts"],
|
|
11
|
+
},
|
|
12
|
+
);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "dana-cli",
|
|
3
|
+
"version": "0.0.26",
|
|
4
|
+
"description": "DANA Command line interface",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20.0.0"
|
|
8
|
+
},
|
|
9
|
+
"engineStrict": true,
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/wiztivi-rd/dana-cli.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"dana",
|
|
16
|
+
"cli"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "",
|
|
20
|
+
"publish": "npm run build --workspaces && npm install -g npm@~11.10.0 && npm install -g npm@latest && npm run publish:templates && npm run publish:cli",
|
|
21
|
+
"publish:cli": "npm publish --workspace=tools/cli --access=public",
|
|
22
|
+
"publish:templates": "npm publish --workspace=tools/templates --access=public",
|
|
23
|
+
"lint": "npm run lint --workspaces",
|
|
24
|
+
"test:coverage": "npm run test:coverage --workspaces",
|
|
25
|
+
"prettier": "npx prettier . --check",
|
|
26
|
+
"build": "npm run build --workspaces",
|
|
27
|
+
"bump": "node ./bin/bump.js"
|
|
28
|
+
},
|
|
29
|
+
"author": "Wiztivi",
|
|
30
|
+
"license": "SEE LICENSE IN THE LICENSE FILE",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/wiztivi-rd/dana-cli/issues"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/wiztivi-rd/dana-cli#readme",
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@dana/eslint-config": "2.0.0",
|
|
37
|
+
"@types/node": "22.20.5",
|
|
38
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
39
|
+
"prettier": "3.10.1",
|
|
40
|
+
"rimraf": "6.1.4",
|
|
41
|
+
"tsx": "4.23.15",
|
|
42
|
+
"typescript": "5.9.3",
|
|
43
|
+
"typescript-eslint": "8.73.0",
|
|
44
|
+
"vitest": "5.1.0",
|
|
45
|
+
"vitest-sonar-reporter": "3.0.0",
|
|
46
|
+
"memfs": "4.80.1"
|
|
47
|
+
},
|
|
48
|
+
"workspaces": [
|
|
49
|
+
"tools/*"
|
|
50
|
+
],
|
|
51
|
+
"optionalDependencies": {
|
|
52
|
+
"@rollup/rollup-linux-x64-gnu": "*"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# required metadata
|
|
2
|
+
sonar.projectKey=wiztivi-rd_dana-cli
|
|
3
|
+
sonar.organization=wiztivi-rd
|
|
4
|
+
|
|
5
|
+
# optional description
|
|
6
|
+
sonar.projectDescription=Dana Application template & cli
|
|
7
|
+
|
|
8
|
+
# paths to directories containing main source files.
|
|
9
|
+
sonar.sources=tools
|
|
10
|
+
sonar.inclusions=tools/*/scripts/**/*.ts,tools/*/src/**.ts
|
|
11
|
+
sonar.exclusions=tools/templates/**,tools/*/bin
|
|
12
|
+
# paths to directories containing test source files.
|
|
13
|
+
# sonar.tests=
|
|
14
|
+
# sonar.test.inclusions=
|
|
15
|
+
|
|
16
|
+
# The value of the property must be the key of the language.
|
|
17
|
+
sonar.language=js
|
|
18
|
+
|
|
19
|
+
# Encoding of the source code
|
|
20
|
+
sonar.sourceEncoding=UTF-8
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Dana-cli
|
|
4
|
+
|
|
5
|
+
Dana is a JavaScript framework built for TV apps.
|
|
6
|
+
It aims at enabling the creation of natively performant TV applications on all currently available TV platforms.
|
|
7
|
+
Code once, deploy across all major platforms (Samsung Tizen, LG WebOS, Android TV, AppleTV, Xbox..) using a single codebase.
|
|
8
|
+
|
|
9
|
+
This cli is a companion tool made to help you boostrap an application with Dana.
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
To be able to use the dana-cli, you will need:
|
|
14
|
+
|
|
15
|
+
- Node > 20,
|
|
16
|
+
- an account on [Dana Cloud Service](https://app.public.dana-framework.com/)
|
|
17
|
+
|
|
18
|
+
## Getting started
|
|
19
|
+
|
|
20
|
+
First you'll need to use your account to authenticate to Dana Cloud Service platform:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx @wiztivi/dana-cli auth login
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This should open a browser and ask for your account credentials.
|
|
27
|
+
|
|
28
|
+
Then you can create a simple template of your application by running the following command:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx @wiztivi/dana-cli create-app <project-name>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
Use the CLI to:
|
|
37
|
+
|
|
38
|
+
- create a new app project
|
|
39
|
+
- add device(s) easily to deploy your project on more platforms: `npx @wiztivi/dana-cli add-device`,
|
|
40
|
+
- add built-in components to your project: eg `npx @wiztivi/dana-cli add-menu`
|
|
41
|
+
- get autocompletion script for dana commands: `npx @wiztivi/dana-cli completion <shell>`
|
|
42
|
+
|
|
43
|
+
To get all available options and more information:`npx @wiztivi/dana-cli help`
|
|
44
|
+
|
|
45
|
+
## Screenshots
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+
## Credits
|
|
50
|
+
|
|
51
|
+
Icons by [Font Awesome Free](https://fontawesome.com/), licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|