Skip to content

Commit 162ad6d

Browse files
authored
feat: modernization (2024), closes factoriolab#1443 (factoriolab#1449)
BREAKING CHANGE: Full rewrite of routing, state management, box-line flow, etc.
1 parent 700d05f commit 162ad6d

File tree

448 files changed

+22478
-25379
lines changed

Some content is hidden

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

448 files changed

+22478
-25379
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@ quote_type = single
1212
[*.md]
1313
max_line_length = off
1414
trim_trailing_whitespace = false
15-
16-
[*.rs]
17-
indent_size = 4

.eslintrc.json

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

.github/workflows/prod.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,27 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10+
1011
- name: Setup Node.js
1112
uses: actions/setup-node@v4
1213
with:
1314
node-version: 'lts/*'
15+
1416
- name: Install dependencies
1517
run: npm ci
18+
19+
- name: Run build
20+
run: npm run build -- -c=production
21+
22+
- name: Copy index to 404
23+
run: cp dist/browser/index.html dist/browser/404.html
24+
1625
- name: Semantic release
1726
run: npx semantic-release
1827
env:
1928
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2029
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
21-
- name: Run build
22-
run: npm run build -- -c=production
23-
if: env.DEPLOY == 'true'
24-
- name: Copy index to 404
25-
run: cp dist/browser/index.html dist/browser/404.html
26-
if: env.DEPLOY == 'true'
30+
2731
- name: Deploy to GitHub Pages
2832
uses: JamesIves/github-pages-deploy-action@v4
2933
if: env.DEPLOY == 'true'

.github/workflows/staging.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,21 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11+
1112
- name: Setup Node.js
1213
uses: actions/setup-node@v4
1314
with:
1415
node-version: 'lts/*'
16+
1517
- name: Install dependencies
1618
run: npm ci
19+
1720
- name: Run build
1821
run: npm run build -- -c=staging
22+
1923
- name: Copy index to 404
2024
run: cp dist/browser/index.html dist/browser/404.html
25+
2126
- name: Deploy to GitHub Pages
2227
uses: JamesIves/github-pages-deploy-action@v4
2328
with:

.github/workflows/tests.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,49 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
1213
- name: Setup Node.js
1314
uses: actions/setup-node@v4
1415
with:
1516
node-version: 'lts/*'
17+
1618
- name: Install dependencies
1719
run: npm ci
20+
1821
- name: Run Prettier
1922
run: npm run prettier
20-
- name: Run linting
23+
24+
- name: Run ESLint
2125
run: npm run lint-build
26+
27+
- name: Run Stylelint
28+
run: npm run stylelint
29+
2230
- name: Run tests
2331
run: npm run test-build
24-
- uses: codecov/codecov-action@v3
32+
33+
- name: Publish Test Results
34+
uses: EnricoMi/publish-unit-test-result-action@v2
35+
if: always()
36+
with:
37+
files: coverage/TESTS-*.xml
38+
check_name: publish test results
39+
40+
- name: Code Coverage Summary Report
41+
uses: irongut/[email protected]
42+
with:
43+
filename: coverage/cobertura-coverage.xml
44+
badge: true
45+
fail_below_min: false
46+
format: markdown
47+
hide_branch_rate: false
48+
hide_complexity: false
49+
indicators: true
50+
output: both
51+
thresholds: '80 90'
52+
53+
- name: Add Coverage PR Comment
54+
uses: marocchino/sticky-pull-request-comment@v2
55+
if: github.event_name == 'pull_request'
56+
with:
57+
path: code-coverage-results.md

.gitignore

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
98

10-
# dependencies
9+
# Node
1110
/node_modules
12-
13-
# profiling files
14-
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
11+
npm-debug.log
12+
yarn-error.log
1613

1714
# IDEs and editors
1815
/.idea
@@ -23,23 +20,20 @@ speed-measure-plugin*.json
2320
.settings/
2421
*.sublime-workspace
2522

26-
# IDE - VSCode
23+
# Visual Studio Code
2724
.vscode/*
2825
!.vscode/settings.json
2926
!.vscode/tasks.json
3027
!.vscode/launch.json
3128
!.vscode/extensions.json
3229
.history/*
3330

34-
# misc
31+
# Miscellaneous
3532
/.angular/cache
36-
/.sass-cache
33+
.sass-cache/
3734
/connect.lock
3835
/coverage
39-
/junit
4036
/libpeerconnection.log
41-
npm-debug.log
42-
yarn-error.log
4337
testem.log
4438
/typings
4539

@@ -52,4 +46,4 @@ scripts/temp
5246
scripts/logs
5347

5448
# Mod settings files
55-
mod-settings.dat
49+
mod-settings.dat

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
src/**/*.webp
12
src/data/**/*.json
23
src/styles/themes/**/*.css

.stylelintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/**/*.css
2+
coverage/**/*.css
3+
src/styles/themes/**/*.css

.stylelintrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"plugins": ["stylelint-order"],
3+
"extends": [
4+
"stylelint-config-standard",
5+
"stylelint-config-standard-scss",
6+
"stylelint-config-concentric-order"
7+
],
8+
"rules": {
9+
"order/order": null,
10+
"selector-pseudo-element-no-unknown": [
11+
true,
12+
{ "ignorePseudoElements": ["ng-deep"] }
13+
]
14+
}
15+
}

.vscode/extensions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"recommendations": [
3-
"mike-co.import-sorter",
43
"angular.ng-template",
4+
"davidanson.vscode-markdownlint",
55
"dbaeumer.vscode-eslint",
66
"eamodio.gitlens",
7-
"davidanson.vscode-markdownlint",
8-
"esbenp.prettier-vscode"
7+
"esbenp.prettier-vscode",
8+
"stylelint.vscode-stylelint"
99
]
1010
}

0 commit comments

Comments
 (0)