Skip to content

Commit 0a3e6ba

Browse files
committed
Refactor project to monorepo structure
1 parent 43a477a commit 0a3e6ba

36 files changed

Lines changed: 505 additions & 7503 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ dist
1717

1818
# Ignore test coverage reports
1919
coverage
20+
21+
# Ignore turbo logs
22+
.turbo
File renamed without changes.

apps/react-demo/package.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"name": "@noriginmedia/norigin-spatial-navigation-react-demo",
3+
"private": true,
4+
"scripts": {
5+
"eslint": "eslint src",
6+
"start": "webpack-dev-server --config webpack.config.dev.js"
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/NoriginMedia/norigin-spatial-navigation.git"
11+
},
12+
"keywords": [
13+
"react",
14+
"react-hooks",
15+
"spatial-navigation",
16+
"remote-control-navigation",
17+
"tv-navigation"
18+
],
19+
"author": "Dmitriy Bryokhin <dmitriy.bryokhin@noriginmedia.com>",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/NoriginMedia/norigin-spatial-navigation/issues"
23+
},
24+
"homepage": "https://github.com/NoriginMedia/norigin-spatial-navigation#readme",
25+
"peerDependencies": {
26+
"react": ">=16.8.0"
27+
},
28+
"dependencies": {
29+
"lodash": "^4.17.21",
30+
"@noriginmedia/norigin-spatial-navigation": "*"
31+
},
32+
"devDependencies": {
33+
"@types/jest": "^29.5.12",
34+
"@types/lodash": "^4.14.179",
35+
"@types/react": "^18.0.18",
36+
"@types/react-dom": "^18.0.6",
37+
"@types/styled-components": "^5.1.24",
38+
"@typescript-eslint/eslint-plugin": "^5.12.1",
39+
"@typescript-eslint/parser": "^5.12.1",
40+
"eslint": "^8.9.0",
41+
"eslint-config-airbnb": "^19.0.4",
42+
"eslint-config-airbnb-typescript": "^16.1.0",
43+
"eslint-config-prettier": "^8.4.0",
44+
"eslint-plugin-import": "^2.25.4",
45+
"eslint-plugin-jsx-a11y": "^6.5.1",
46+
"eslint-plugin-react": "^7.29.4",
47+
"eslint-plugin-react-hooks": "^4.4.0",
48+
"file-loader": "^6.2.0",
49+
"html-webpack-plugin": "^5.5.0",
50+
"jest": "^29.7.0",
51+
"jest-environment-jsdom": "^29.7.0",
52+
"pre-commit": "^1.2.2",
53+
"prettier": "^2.5.1",
54+
"react": "^18.2.0",
55+
"react-dom": "^18.2.0",
56+
"styled-components": "^5.3.3",
57+
"ts-jest": "^29.1.4",
58+
"ts-loader": "^9.2.6",
59+
"typescript": "^4.5.5",
60+
"webpack": "^5.69.1",
61+
"webpack-cli": "^4.9.2",
62+
"webpack-dev-server": "^4.7.4"
63+
},
64+
"pre-commit": [
65+
"eslint"
66+
]
67+
}

src/App.tsx renamed to apps/react-demo/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ import ReactDOMClient from 'react-dom/client';
99
// eslint-disable-next-line import/no-extraneous-dependencies
1010
import styled, { createGlobalStyle } from 'styled-components';
1111
import shuffle from 'lodash/shuffle';
12+
1213
import {
1314
useFocusable,
1415
init,
1516
FocusContext,
1617
FocusDetails,
1718
FocusableComponentLayout,
1819
KeyPressDetails
19-
} from './index';
20+
} from '@noriginmedia/norigin-spatial-navigation';
2021

21-
const logo = require('../logo.png').default;
22+
const logo = require('./logo.png').default;
2223

2324
init({
2425
debug: false,
File renamed without changes.

apps/react-demo/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src"]
4+
}

0 commit comments

Comments
 (0)