reg-cli 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/report.js CHANGED
@@ -41,6 +41,7 @@ var createJSONReport = params => {
41
41
  var createHTMLReport = params => {
42
42
  var file = _path.default.join(__dirname, '../template/template.html');
43
43
  var js = _fs.default.readFileSync(_path.default.join(__dirname, '../report/ui/dist/report.js'));
44
+ var css = _fs.default.readFileSync(_path.default.join(__dirname, '../report/ui/dist/style.css'));
44
45
  var template = _fs.default.readFileSync(file);
45
46
  var json = {
46
47
  type: params.failedItems.length === 0 ? 'success' : 'danger',
@@ -75,6 +76,7 @@ var createHTMLReport = params => {
75
76
  var faviconType = json.hasFailed || json.hasNew || json.hasDeleted ? 'failure' : 'success';
76
77
  var view = {
77
78
  js,
79
+ css,
78
80
  report: JSON.stringify(json),
79
81
  faviconData: loadFaviconAsDataURL(faviconType)
80
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reg-cli",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "start": "node ./dist/cli.js",
@@ -8,7 +8,7 @@
8
8
  "watch": "babel src --watch -d dist",
9
9
  "build": "npm run build:cli && npm run build:report",
10
10
  "build:cli": "babel src -d dist",
11
- "build:report": "sh ./scripts/build-ui.sh v0.2.1",
11
+ "build:report": "sh ./scripts/build-ui.sh v0.3.0",
12
12
  "flow": "flow",
13
13
  "copy:ximgdiff": "copyfiles -u 3 node_modules/x-img-diff-js/build/cv-wasm_browser.* report/assets",
14
14
  "prepublishOnly": "npm run build",
@@ -1,6 +1,6 @@
1
1
  # reg-cli-report-ui
2
2
 
3
- [![GitHub Actions Status](https://github.com/reg-viz/reg-cli-report-ui/workflows/Continuous%20Integration/badge.svg)](https://github.com/reg-viz/reg-cli-report-ui/actions)
3
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/reg-viz/reg-cli-report-ui/ci.yml?branch=main&style=flat-square&link=https%3A%2F%2Fgithub.com%2Freg-viz%2Freg-cli-report-ui%2Factions%2Fworkflows%2Fci.yml)
4
4
 
5
5
  > :gem: New face of reg-cli report UI.
6
6
 
@@ -16,10 +16,10 @@ This repository is the Report UI of [reg-viz/reg-cli][reg-cli]
16
16
 
17
17
  The following list is scripts used during development.
18
18
 
19
- ### `yarn start`
19
+ ### `yarn dev`
20
20
 
21
21
  ```bash
22
- $ yarn start
22
+ $ yarn dev
23
23
  ```
24
24
 
25
25
  Launch the Report UI with the mock data.