Skip to content

Commit

Permalink
create-app: removed lighthouse plugin from default template
Browse files Browse the repository at this point in the history
  • Loading branch information
Rugvip committed Dec 30, 2020
1 parent 3fc6847 commit 1773a51
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .changeset/twenty-llamas-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@backstage/create-app': patch
---

Removed lighthouse plugin from the default set up plugins, as it requires a separate Backend to function.

To apply this change to an existing app, remove the following:

1. The `lighthouse` block from `app-config.yaml`.
2. The `@backstage/plugin-lighthouse` dependency from `packages/app/package.json`.
3. The `@backstage/plugin-lighthouse` re-export from `packages/app/src/plugins.ts`.
4. The Lighthouse sidebar item from `packages/app/src/sidebar.tsx`, and the `RuleIcon` import if it is unused.
3 changes: 0 additions & 3 deletions packages/create-app/templates/default-app/app-config.yaml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ techdocs:
publisher:
type: 'local'

lighthouse:
baseUrl: http://localhost:3003

auth:
# see https://backstage.io/docs/tutorials/quickstart-app-auth to know more about enabling auth providers
providers: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@backstage/plugin-techdocs": "^{{version '@backstage/plugin-techdocs'}}",
"@backstage/catalog-model": "^{{version '@backstage/catalog-model'}}",
"@backstage/plugin-circleci": "^{{version '@backstage/plugin-circleci'}}",
"@backstage/plugin-lighthouse": "^{{version '@backstage/plugin-lighthouse'}}",
"@backstage/plugin-tech-radar": "^{{version '@backstage/plugin-tech-radar'}}",
"@backstage/plugin-github-actions": "^{{version '@backstage/plugin-github-actions'}}",
"@backstage/plugin-user-settings": "^{{version '@backstage/plugin-user-settings'}}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export { plugin as CatalogPlugin } from '@backstage/plugin-catalog';
export { plugin as CatalogImport } from '@backstage/plugin-catalog-import';
export { plugin as Circleci } from '@backstage/plugin-circleci';
export { plugin as GithubActions } from '@backstage/plugin-github-actions';
export { plugin as LighthousePlugin } from '@backstage/plugin-lighthouse';
export { plugin as ScaffolderPlugin } from '@backstage/plugin-scaffolder';
export { plugin as TechDocsPlugin } from '@backstage/plugin-techdocs';
export { plugin as TechRadar } from '@backstage/plugin-tech-radar';
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import LibraryBooks from '@material-ui/icons/LibraryBooks';
import ExtensionIcon from '@material-ui/icons/Extension';
import CreateComponentIcon from '@material-ui/icons/AddCircleOutline';
import BuildIcon from '@material-ui/icons/BuildRounded';
import RuleIcon from '@material-ui/icons/AssignmentTurnedIn';
import MapIcon from '@material-ui/icons/MyLocation';
import { Link, makeStyles } from '@material-ui/core';
import { NavLink } from 'react-router-dom';
Expand Down Expand Up @@ -34,7 +33,6 @@ export const AppSidebar = () => (
<SidebarItem icon={CreateComponentIcon} to="create" text="Create..." />
<SidebarDivider />
<SidebarItem icon={MapIcon} to="tech-radar" text="Tech Radar" />
<SidebarItem icon={RuleIcon} to="lighthouse" text="Lighthouse" />
<SidebarItem icon={BuildIcon} to="circleci" text="CircleCI" />
{/* End global nav */}
<SidebarDivider />
Expand Down

0 comments on commit 1773a51

Please sign in to comment.