summaryrefslogtreecommitdiff
path: root/README.md
blob: fd3e5085e54e18804e579bd9b97806fbf32311d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# sf-ui

## Setup

Install yarnpkg and nodejs: `sudo dnf install -y nodejs yarnpkg`

Then setup the project:

```
for dep in re-sf re-patternfly; do
  git clone https://softwarefactory-project.io/r/software-factory/${depo} ../${dep}
done
podman run --rm quay.io/software-factory/nodejs-builder cat /usr/libexec/shake/yarn.lock > yarn.lock
yarn install
yarn start
```

Run test with:

```
yarn test
```

Setup live hot-reload:

```
yarn serve
# Open browser on http://localhost:1234
```

Distribute with:

```
yarn dist
# Open browser in dist/
```

## RPM Build

```
rm -Rf dist
yarn dist
tar -czf dist.tar.gz dist
mkdir -p ~/rpmbuild/RPMS ~/rpmbuild/SOURCES ~/rpmbuild/SRPMS
mv dist.tar.gz ~/rpmbuild/SOURCES/
yum install -y rpm-build
rpmbuild -ba sf-ui.spec
```