Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: npm test
on:
pull_request:
branches:
- '**'
push:
branches:
- master
jobs:
test:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install Node.js on ${{ matrix.os }}
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci
- name: Generate coverage report
run: npm run report:coverage
- name: Send coverage report
uses: codecov/codecov-action@v3.1.1
with:
directory: ./reports/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.17.1
12 changes: 12 additions & 0 deletions DEVELOPERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Developers
## Using `@fabric/react`

```js
import { Component } from '@fabric/react';

export default class Application extends Component {
constructor (settings = {}) {

}
}
```
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# fabric-react
Fabric integration for React
# fabric-react
# `@fabric/react`
Fabric integration for React applications.

## Quick Start
```js
import React from 'react';
import { Container, Header } from 'semantic-ui-react';

class App extends Component {
render () {
return (
<Container>
<Header>
<h1>Hello, world!</h1>
</Header>
</Container>
);
}
}
export default App;
```
6 changes: 6 additions & 0 deletions assets/bundles/browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/
/******/
/******/ })()
;
Loading
Loading