https://github.com/goern/qeb-hwt-website
https://github.com/goern/qeb-hwt-website
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/goern/qeb-hwt-website
- Owner: goern
- License: mit
- Archived: true
- Created: 2019-12-09T21:44:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T06:14:41.000Z (about 3 years ago)
- Last Synced: 2025-01-28T21:38:40.159Z (over 1 year ago)
- Language: TypeScript
- Size: 13.1 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qeb-Hwt
Try http://qeb-hwt.thoth-station.ninja/?adviser_document_id=ff78f479
## Quick-start
```bash
npm install yarn -g # ensure you have yarn on your machine globally
git clone https://github.com/goern/qeb-hwt-website # clone the project
cd qeb-hwt-website # navigate into the project directory
yarn # install patternfly-react-seed dependencies
yarn build # build the project
yarn start # start the development server
```
## Development Scripts
Install development/build dependencies
`yarn`
Start the development server
`yarn start`
Run a production build
`yarn build`
Run the test suite
`yarn test`
Run the linter
`yarn lint`
Run the code formatter
`yarn format`
Launch a tool to inspect the bundle size
`yarn bundle-profile:analyze`
## Configurations
* [TypeScript Config](./tsconfig.json)
* [Webpack Config](./webpack.common.js)
* [Jest Config](./jest.config.js)
* [Editor Config](./.editorconfig)
## Raster Image Support
To use an image asset that's shipped with patternfly core, you'll prefix the paths with "@assets". `@assets` is an alias for the patternfly assets directory in node_modules.
For example:
```js
import imgSrc from '@assets/images/g_sizing.png';
```
You can use a similar technique to import assets from your local app, just prefix the paths with "@app". `@app` is an alias for the main src/app directory.
```js
import loader from '@app/assets/images/loader.gif';
). This is necessary because you may need to use SVG's in several other context (inline images, fonts, icons, etc.) and so we need to be able to differentiate between these usages so the appropriate loader is invoked.
<br />```css
<br />body {
<br /> background: url(./assets/bgimages/img_avatar.svg);
<br />}
<br />```</p>
<p>## Code Quality Tools
<br />* For accessibility compliance, we use [react-axe](https://github.com/dequelabs/react-axe)
<br />* To keep our bundle size in check, we use [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)
<br />* To keep our code formatting in check, we use [prettier](https://github.com/prettier/prettier)
<br />* To keep our code logic and test coverage in check, we use [jest](https://github.com/facebook/jest)
<br />* To ensure code styles remain consistent, we use [eslint](https://eslint.org/)</p>
<p>### Linter Supper
<br />Currently, eslint and tslint are both supported. This is temporary. We will be removing support for tslint at some point in the near future, given tslint's roadmap to deprecate itself in favor of a more unified developer experience across TypeScript and JavaScript languages.
<br />]({loader})