Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
soker90 committed Jan 10, 2025
1 parent 0ebfdc5 commit ea1a81c
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ const prettierFile = await fs.readFile('./node_modules/@telefonica/living-apps-e

const prettierConfig = yaml.load(prettierFile);

export default prettierConfig;
export default prettierConfig;
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,38 @@
"preview": "vite preview",
"lint": "eslint src/",
"lint:fix": "eslint --fix src/",
"prettier": "prettier --check '**/*.{js,ts,tsx,json,md,css,sass,scss}'",
"prettier:write": "prettier --write '**/*.{js,ts,tsx,json,md,css,sass,scss}'",
"prettier": "prettier --check '**/*.{js,cjs,mjs,ts,tsx,json,md,css,sass,scss}'",
"prettier:write": "prettier --write '**/*.{js,cjs,mjs,ts,tsx,json,md,css,sass,scss}'",
"test:unit": "jest --verbose --collectCoverage=false",
"test:coverage": "jest --collectCoverage",
"blue-ball": "npm run lint && npm run prettier && npm run test:unit && npm run build && npm pack --dry-run"
},
"dependencies": {
"@telefonica/living-apps-core-react": "latest",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@telefonica/living-apps-core-web-types": "latest",
"@telefonica/living-apps-eslint-config": "0.1.2",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/jest": "^29.5.14",
"@types/react": "^19.0.4",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-legacy": "^6.0.0",
"@vitejs/plugin-react-swc": "^3.7.2",
"eslint": "^8.57.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"prettier": "^3.4.2",
"ts-jest": "^29.2.5",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vite-plugin-html": "^3.2.2",
"vite-plugin-svgr": "^4.3.0",
"vite-tsconfig-paths": "^5.1.4"
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.1.0",
"@types/jest": "29.5.14",
"@types/react": "19.0.4",
"@types/react-dom": "19.0.2",
"@vitejs/plugin-legacy": "6.0.0",
"@vitejs/plugin-react-swc": "3.7.2",
"eslint": "8.57.1",
"identity-obj-proxy": "3.0.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-transform-stub": "2.0.0",
"prettier": "3.4.2",
"ts-jest": "29.2.5",
"typescript": "5.7.3",
"vite": "6.0.7",
"vite-plugin-html": "3.2.2",
"vite-plugin-svgr": "4.3.0",
"vite-tsconfig-paths": "5.1.4"
}
}
5 changes: 1 addition & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

import { MhApp } from 'mh-app';
import { StbApp } from 'stb-app';

import { name } from '../package.json';
Expand All @@ -10,14 +9,12 @@ import './index.css';

const root = createRoot(document.getElementById('root') as HTMLElement);

const App = laSdk.channel === 'movistar-home' ? MhApp : StbApp;

window.laSdk
.ready({ laName: name.replace('living-app-v2-', '') })
.then(() => {
root.render(
<StrictMode>
<App />
<StbApp />
</StrictMode>,
);

Expand Down
10 changes: 0 additions & 10 deletions src/mh-app.test.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/mh-app.tsx

This file was deleted.

0 comments on commit ea1a81c

Please sign in to comment.