Skip to content

Commit

Permalink
Merge pull request #27 from UniversityofWarwick/release/v0.1.0
Browse files Browse the repository at this point in the history
Release/v0.1.0
  • Loading branch information
Mat Mannion authored Feb 13, 2021
2 parents b7f8d51 + ac1be36 commit 8e87ce2
Show file tree
Hide file tree
Showing 21 changed files with 11,184 additions and 7,387 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: Build and Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
on: [push]
jobs:
install-and-test:
runs-on: ubuntu-latest
Expand All @@ -24,4 +18,3 @@ jobs:
yarn test
env:
CI: true
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FA_PRO_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# production
/build
/dist

# misc
.DS_Store
Expand Down
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
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](https://www.npmjs.com/package/@statuspage/status-widget).

You'll need to pass a `FONTAWESOME_NPM_AUTH_TOKEN` environment variable when running `npm i`.

## 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.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

Expand All @@ -29,3 +29,16 @@ 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:

```shell
npm run dist -- --stats
npx webpack-bundle-analyzer dist/bundle-stats.json
```
2 changes: 0 additions & 2 deletions dist/main.css

This file was deleted.

Loading

0 comments on commit 8e87ce2

Please sign in to comment.