Skip to content

Commit

Permalink
chore(frontends): remove some CRA cruft
Browse files Browse the repository at this point in the history
Refs #1314

We don't use service workers and probably never will. We don't need the types provided by `react-scripts`.
  • Loading branch information
eventualbuddha committed May 26, 2022
1 parent da9756f commit 4795395
Show file tree
Hide file tree
Showing 22 changed files with 3 additions and 739 deletions.
7 changes: 0 additions & 7 deletions frontends/bas/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,4 @@ import React from 'react';
import ReactDom from 'react-dom';
import { App } from './app';

import * as serviceWorker from './serviceWorker';

ReactDom.render(<App />, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.register();
1 change: 0 additions & 1 deletion frontends/bas/src/react-app-env.d.ts

This file was deleted.

134 changes: 0 additions & 134 deletions frontends/bas/src/serviceWorker.ts

This file was deleted.

3 changes: 1 addition & 2 deletions frontends/bmd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@
"!src/config/*",
"!src/**/*.d.ts",
"!src/index.tsx",
"!src/contexts/ballot_context.ts",
"!src/serviceWorker.ts"
"!src/contexts/ballot_context.ts"
],
"coverageThreshold": {
"global": {
Expand Down
6 changes: 0 additions & 6 deletions frontends/bmd/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import ReactDom from 'react-dom';
import { App } from './app';
import { DemoApp } from './demo_app';

import * as serviceWorker from './serviceWorker';
import {
AriaScreenReader,
SpeechSynthesisTextToSpeech,
Expand Down Expand Up @@ -38,8 +37,3 @@ ReactDom.render(
),
document.getElementById('root') as HTMLElement
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
void serviceWorker.unregister();
1 change: 0 additions & 1 deletion frontends/bmd/src/react-app-env.d.ts

This file was deleted.

134 changes: 0 additions & 134 deletions frontends/bmd/src/serviceWorker.ts

This file was deleted.

1 change: 0 additions & 1 deletion frontends/bsd/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
src/react-app-env.d.ts
/src/**/*.js
build
coverage
Expand Down
6 changes: 0 additions & 6 deletions frontends/bsd/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ import ReactDom from 'react-dom';
import { App } from './app';
import { focusVisible } from './util/focus_visible';

import * as serviceWorker from './serviceWorker';

ReactDom.render(<App />, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.register();
focusVisible();
1 change: 0 additions & 1 deletion frontends/bsd/src/react-app-env.d.ts

This file was deleted.

Loading

0 comments on commit 4795395

Please sign in to comment.