Skip to content

React component for embedding component-aware StatusPage information

License

Notifications You must be signed in to change notification settings

UniversityofWarwick/statuspage-widget

Repository files navigation

StatusPage widget

Build status Netlify Status

Deploys by Netlify

A StatusPage widget that supports restricting by component. If you don't need to restrict by component then you may wish to just use @statuspage/status-widget.

Available Scripts

In the project directory, you can run:

npm start

NOTE: Currently broken since the move to Preact, needs looking at.

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

npm run build

Builds the app for production to the build folder. This is what Netlify runs when it deploys the assets.

npm run dist

Builds the app for distribution to the dist folder. This is run on prepublish for npm.

Analysing bundle size

You can analyse the webpack bundle size by running the following:

npm run dist -- --stats
npx webpack-bundle-analyzer dist/bundle-stats.json