Amir Zarrinkafsh
a3e84769b5
feat(web): replace cra with vite ( #2457 )
...
* feat(web): replace cra with vite
* fix: add istanbul
* fix: add jest
* fix: inject env vars
* fix: replicate cra output directories
* fix: post-frontend build for go templating
* fix: dynamic publicpath
* fix(web): import resolution with aliases for .module.css files
* refactor(server): baseurl var
* refactor(web): drop babel-jest for esbuild-jest
* refactor(web): add inline sourcemap for coverage bundle
* build(deps): update web deps
* build(deps): downgrade vite-plugin-istanbul to 2.2.0
98bf77dbaa
is a breaking change that means production mode builds can no longer be instrumented.
* refactor(web): match frontend name and version
* refactor(web): drop cra readme
2021-10-08 15:00:06 +11:00
renovate[bot]
e070a499e1
build(deps): update dependency @types/react-router-dom to v5.3.1 ( #2461 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 10:35:04 +11:00
renovate[bot]
8251b7a785
build(deps): update dependency @types/react to v17.0.27 ( #2442 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 10:21:48 +11:00
renovate[bot]
0e120b187d
build(deps): update dependency @testing-library/react to v12.1.2 ( #2441 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 09:48:02 +11:00
Amir Zarrinkafsh
a32d030144
ci(buildkite): remove automatic retries for lint step ( #2435 )
...
* ci(buildkite): remove automatic retries for lint step
* refactor(web): refactor commitlint hook for windows
2021-10-02 15:56:46 +10:00
renovate[bot]
0351546cf0
build(deps): update dependency axios to v0.22.0 ( #2433 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-01 21:42:36 +10:00
renovate[bot]
19aff56748
build(deps): update dependency @types/react to v17.0.26 ( #2429 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-01 10:49:09 +10:00
renovate[bot]
cbe1aad7fe
build(deps): update dependency @types/react to v17.0.25 ( #2426 )
2021-09-30 08:38:58 +10:00
Amir Zarrinkafsh
3d312cf3b9
refactor: replace yarn with pnpm ( #2424 )
...
* Check for pnpm in authelia-scripts
* Improve husky hooks to check for required apps
* Use pnpm in coverage dockerfile
* Use pnpm in dev workflow
* Stop buildx log truncation
* Ignore pnpm lockfile in yamllint
* Update versions required for docker and docker-compose in contributing docs
2021-09-29 17:24:21 +10:00
renovate[bot]
2f3f0818c3
build(deps): update commitlint monorepo to v13.2.0 ( #2421 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 11:16:56 +10:00
renovate[bot]
a80b8d4933
build(deps): update dependency @testing-library/react to v12.1.1 ( #2419 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 10:04:45 +10:00
Amir Zarrinkafsh
c9f5b3de88
feat(web): replace babel-loader and terser with esbuild ( #2422 )
2021-09-28 16:27:06 +10:00
renovate[bot]
bbd85bd558
build(deps): update dependency @types/react-router-dom to v5.3.0 ( #2408 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-22 14:11:07 +10:00
renovate[bot]
958829f2f5
build(deps): update dependency @types/react to v17.0.24 ( #2407 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-22 13:58:04 +10:00
renovate[bot]
fac597cb2f
build(deps): update dependency @types/react to v17.0.22 ( #2399 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 20:18:08 +10:00
renovate[bot]
e1ca24344a
build(deps): update dependency prettier to v2.4.1 ( #2382 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-16 19:59:26 +10:00
renovate[bot]
69f37d4161
build(deps): update dependency @types/react to v17.0.21 ( #2379 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-15 12:01:25 +10:00
renovate[bot]
8e155328b4
build(deps): update dependency @types/react-router-dom to v5.1.9 ( #2377 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-15 11:24:41 +10:00
renovate[bot]
dd8199d127
build(deps): update dependency eslint-import-resolver-typescript to v2.5.0 ( #2370 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-14 08:35:53 +10:00
renovate[bot]
763938a0b7
build(deps): update dependency @testing-library/react to v12.1.0 ( #2368 )
2021-09-11 22:47:28 +10:00
renovate[bot]
a091b341da
build(deps): update dependency @craco/craco to v6.3.0 ( #2366 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-11 16:00:13 +10:00
renovate[bot]
9cff1bb133
build(deps): update dependency typescript to v4.4.3 ( #2364 )
2021-09-11 11:46:23 +10:00
renovate[bot]
b770939983
build(deps): update dependency prettier to v2.4.0 ( #2357 )
...
* build(deps): update dependency prettier to v2.4.0
* fix(web): jsxbracketsameline -> bracketsameline
Prettier 2.4 has renamed the jsxBracketSameLine option to bracketSameLine.
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-10 08:27:50 +10:00
renovate[bot]
dca3ba0cfb
build(deps): pin dependency husky to 7.0.2 ( #2356 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 13:44:43 +10:00
renovate[bot]
dedd44ea0d
build(deps): pin dependencies ( #2355 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 13:30:00 +10:00
Amir Zarrinkafsh
cc765115b2
ci: add husky with pre-commit and commit-msg hooks ( #2352 )
...
* ci: add husky with pre-commit and commit-msg hooks
This change includes two new hooks as part of our GitHub workflow with husky:
* `pre-commit`: Performs linting with golangci-lint and eslint/prettier
* `commit-msg`: Ensures that the commit messages conform to our guidelines and will error and provide context to a user when they do not.
The `prepare` command which has been included is executed each time a `yarn install` is executed.
* ci: extend @commitlint/config-conventional configuration
* fix: lint all dot js files
2021-09-09 12:22:11 +10:00
renovate[bot]
b6cc98b5cb
build(deps): update dependency axios to v0.21.4 ( #2347 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 10:44:49 +10:00
renovate[bot]
612f6d5674
build(deps): update dependency @types/react to v17.0.20 ( #2344 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-05 20:17:18 +10:00
renovate[bot]
05e549941b
build(deps): update dependency axios to v0.21.3 ( #2343 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-05 09:17:26 +10:00
renovate[bot]
1960a24124
build(deps): update dependency axios to v0.21.2 ( #2342 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-05 00:13:34 +10:00
renovate[bot]
5f2edf3d42
build(deps): update dependency typescript to v4.4.2 ( #2321 )
...
* build(deps): update dependency typescript to v4.4.2
* fix(web): cast try catch err type to error
Typescript 4.x changes the default behaviour of try catch and its err type from `any` to [`unknown`](https://github.com/microsoft/TypeScript/pull/41013 ).
This change ensures that where we rely on said variable it is cast accordingly as an `Error`.
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-04 23:27:11 +10:00
renovate[bot]
622f25cab1
build(deps): update dependency react-router-dom to v5.3.0 ( #2339 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-04 13:47:03 +10:00
renovate[bot]
8f38fa97a5
build(deps): update dependency eslint-plugin-prettier to v4 ( #2332 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-31 10:23:06 +10:00
renovate[bot]
0e7170dd02
build(deps): update dependency react-router-dom to v5.2.1 ( #2328 )
2021-08-28 11:50:18 +10:00
Amir Zarrinkafsh
0c5c85cbe4
refactor(web): eslint glob pattern ( #2309 )
...
The current eslint glob pattern is not Windows friendly, this change works for both Linux and Windows.
2021-08-22 21:16:19 +10:00
renovate[bot]
af9274a9c6
build(deps): update dependency eslint-plugin-prettier to v3.4.1 ( #2307 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-21 11:20:18 +10:00
renovate[bot]
7d105c6597
build(deps): update dependency @types/react to v17.0.19 ( #2300 )
2021-08-19 21:49:36 +10:00
renovate[bot]
401b732a00
build(deps): update dependency @types/react to v17.0.18 ( #2287 )
...
* build(deps): update dependency @types/react to v17.0.18
* fix(web): fix broken yarn.lock
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-08-15 15:00:27 +10:00
renovate[bot]
cdda12a2bf
build(deps): update dependency @types/react to v17.0.17 ( #2283 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 14:05:46 +10:00
renovate[bot]
4f515328d6
build(deps): update dependency @types/react to v17.0.16 ( #2259 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-06 15:14:00 +10:00
renovate[bot]
cbedf79f86
build(deps): update font awesome ( #2238 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-05 06:00:27 +10:00
renovate[bot]
02b6d5dcae
build(deps): update dependency @fortawesome/react-fontawesome to v0.1.15 ( #2232 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 06:27:29 +10:00
renovate[bot]
3d656eb5db
build(deps): pin dependencies ( #2228 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-03 16:54:59 +10:00
Amir Zarrinkafsh
1b06e46f71
test(web): drop enzyme in favor of react-testing-library ( #2224 )
...
* test(web): drop enzyme in favor of react-testing-library
Enzyme is falling behind in maintenance, it is currently maintained by one primary developer and still does [not support React 17](https://github.com/enzymejs/enzyme/pull/2430 ) despite it being released in October 2020.
[react-testing-library (RTL)](https://testing-library.com/docs ) is [recommended by Facebook](https://reactjs.org/docs/test-utils.html#overview ) and encourages writing tests that avoid testing implementation details.
* build(deps): update react monorepo to v17 (major)
* build(deps): remove @types/{enzyme,jest}
2021-08-03 16:25:13 +10:00
renovate[bot]
45f683b6cd
build(deps): update dependency @material-ui/core to v4.12.3 ( #2215 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-30 22:28:36 +10:00
renovate[bot]
ae17c88908
build(deps): update dependency @types/react to v17.0.15 ( #2201 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-25 07:52:21 +10:00
renovate[bot]
7a4779b08e
build(deps): update dependency @material-ui/core to v4.12.2 ( #2190 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
2021-07-20 09:18:17 +10:00
renovate[bot]
4d7a6e9678
build(deps): update dependency @types/chai to v4.2.21 ( #2167 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-09 07:16:18 +10:00
renovate[bot]
eae8effe7e
build(deps): update dependency @types/qrcode.react to v1.0.2 ( #2163 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-08 10:22:58 +10:00
renovate[bot]
d68fdaa9fa
build(deps): update dependency @material-ui/core to v4.12.1 ( #2162 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-08 09:56:16 +10:00