Skip to content

Commit 8ad88b9

Browse files
RO-137 - RO-131 upgrade tooling nx (#109)
* Upgrade to Node v18 (remove dev-tasks dependency) * Create new Nx workspace * Move src into new react-orcus package, remove build artifacts from repo * Move manual test into new demo example * Move headless tests into new e2e package * Move remaining tests into react-orcus package, separate from src * Remove old config * Create default project for simple npm scripts * Update test.Dockerfile * Update commands in README.md
1 parent b2538e4 commit 8ad88b9

File tree

119 files changed

+44560
-20843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+44560
-20843
lines changed

.autoenv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvm use

.autoenv.leave

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nvm use node

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 0 additions & 108 deletions
This file was deleted.

.eslintrc.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
],
22+
"@typescript-eslint/no-unused-vars": [
23+
"error",
24+
{
25+
"varsIgnorePattern": "^_",
26+
"argsIgnorePattern": "^_",
27+
"destructuredArrayIgnorePattern": "^_",
28+
"caughtErrorsIgnorePattern": "^_"
29+
}
30+
]
31+
}
32+
},
33+
{
34+
"files": ["*.ts", "*.tsx"],
35+
"extends": ["plugin:@nrwl/nx/typescript"],
36+
"rules": {}
37+
},
38+
{
39+
"files": ["*.js", "*.jsx"],
40+
"extends": ["plugin:@nrwl/nx/javascript"],
41+
"rules": {}
42+
},
43+
{
44+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
45+
"env": {
46+
"jest": true
47+
},
48+
"rules": {}
49+
},
50+
{
51+
"files": "*.json",
52+
"parser": "jsonc-eslint-parser",
53+
"rules": {}
54+
}
55+
]
56+
}

.gitignore

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1-
node_modules/*
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
dist
5+
tmp
6+
/out-tsc
7+
8+
# dependencies
9+
node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
yarn-error.log
34+
testem.log
35+
/typings
36+
37+
# System Files
38+
.DS_Store
39+
Thumbs.db
40+
41+
# Project
242
*.stg
343
webpack-stats.json

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.12.1

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Add files here to ignore them from prettier formatting
2+
3+
/dist
4+
/coverage

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"semi": true,
5+
"singleQuote": true,
6+
"tabWidth": 4,
7+
"overrides": [
8+
{
9+
"files": ["*.json", "*.yaml", "*.yml", "*.prettierrc"],
10+
"options": {
11+
"tabWidth": 2
12+
}
13+
}
14+
]
15+
}

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"dbaeumer.vscode-eslint",
6+
"firsttris.vscode-jest-runner"
7+
]
8+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"eslint.validate": ["json"],
3+
"cSpell.words": ["fileutils"]
4+
}

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ planned release.
7676
#### Roadmap
7777
7878
- [x] Taskbar ([#53][i53])
79+
- [ ] Grid layout ([#104][i104])
7980
- [ ] Program menu ([#55][i55])
8081
- [ ] Themes ([#43][i43])
8182
- [ ] App Groups ([#48][i48])
@@ -85,10 +86,53 @@ planned release.
8586
[i43]: https://github.com/vallerance/react-orcus/issues/43
8687
[i48]: https://github.com/vallerance/react-orcus/issues/48
8788
89+
#### Environment Setup
90+
91+
##### nvm
92+
93+
Run:
94+
95+
```bash
96+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
97+
```
98+
99+
##### Autoenv
100+
101+
Installing autoenv eliminates the need to run `nvm use` every time you `cd`
102+
into the project.
103+
104+
Run:
105+
106+
```bash
107+
curl -#fLo- 'https://raw.githubusercontent.com/hyperupcall/autoenv/master/scripts/install.sh' | sh
108+
```
109+
110+
The above command will append a line to your `~/.bashrc` file that sources
111+
`autoenv/activate.sh`. Add the following variables to your `~/.bashrc` file
112+
immediately _before_ the source line:
113+
114+
```bash
115+
AUTOENV_ENABLE_LEAVE=yes
116+
AUTOENV_ENV_FILENAME=.autoenv
117+
AUTOENV_ENV_LEAVE_FILENAME=.autoenv.leave
118+
```
119+
120+
##### Project
121+
122+
Once all above dependencies are installed, run:
123+
124+
```bash
125+
nvm use
126+
127+
npm install
128+
```
129+
88130
#### Building and testing
89131
90132
Run `npm install` to install/update dependencies.
91133
92-
Run `npm run build && npm run minify` to build and bundle app.
134+
Run `npm run build` to build the app.
93135
94136
Run `npm test` to run the tests.
137+
138+
Run `npm start` to run the demo example.

babel.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"babelrcRoots": ["*"]
3+
}

0 commit comments

Comments
 (0)