powerbi-visuals-tools 6.0.0 → 6.1.0-beta.1
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/Changelog.md +4 -0
- package/bin/pbiviz.js +2 -0
- package/lib/CommandManager.js +2 -0
- package/lib/WebPackWrap.js +5 -1
- package/package.json +3 -3
package/Changelog.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This page contains information about changes to the PowerBI Visual Tools (pbiviz).
|
|
4
4
|
|
|
5
|
+
## 6.1.0
|
|
6
|
+
* Added `--certification-audit` flag to `pbiviz package` command. It audits the visual package for possible certification issues.
|
|
7
|
+
* Added `--certification-fix` flag to `pbiviz package` command. It fixes found certification issues in the visual package. Please carefully test the built package to ensure its functionality is not broken after that.
|
|
8
|
+
|
|
5
9
|
## 6.0.0
|
|
6
10
|
* **Introduced pbiviz.js support.** This feature allows generate configuration dynamically using benefits of JavaScript.
|
|
7
11
|
It allows you to easily use any js logic to build your pbiviz file using environment variables or other parameters.
|
package/bin/pbiviz.js
CHANGED
|
@@ -101,6 +101,8 @@ pbiviz
|
|
|
101
101
|
.option('-v, --verbose', "Enables verbose logging")
|
|
102
102
|
.option('--fix', 'Enable autofixing of lint errors')
|
|
103
103
|
.option('-p, --pbiviz-file <pbiviz-file>', "Path to visual config file (pbiviz.json / pbiviz.mjs)", pbivizFile)
|
|
104
|
+
.option('--certification-audit ', 'Audit the visual package for possible certification issues')
|
|
105
|
+
.option('--certification-fix', 'Fix found certification issues in the visual package. Please carefully test the built package to ensure its functionality is not broken after that')
|
|
104
106
|
.addOption(new Option('-c, --compression <compressionLevel>', "Enables compression of visual package")
|
|
105
107
|
.choices(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'])
|
|
106
108
|
.default('6')
|
package/lib/CommandManager.js
CHANGED
|
@@ -43,6 +43,8 @@ export default class CommandManager {
|
|
|
43
43
|
skipApiCheck: options.skipApi,
|
|
44
44
|
allLocales: options.allLocales,
|
|
45
45
|
pbivizFile: options.pbivizFile,
|
|
46
|
+
certificationAudit: options.certificationAudit,
|
|
47
|
+
certificationFix: options.certificationFix,
|
|
46
48
|
};
|
|
47
49
|
const lintOptions = {
|
|
48
50
|
verbose: options.verbose,
|
package/lib/WebPackWrap.js
CHANGED
|
@@ -140,7 +140,9 @@ export default class WebPackWrap {
|
|
|
140
140
|
modules: typeof tsconfig.compilerOptions.outDir !== "undefined",
|
|
141
141
|
visualSourceLocation: path.posix.relative(config.build.precompileFolder, tsconfig.files[0]).replace(/(\.ts)x|\.ts/, ""),
|
|
142
142
|
pluginLocation: path.join(config.build.precompileFolder, "visualPlugin.ts"),
|
|
143
|
-
compression: options.compression
|
|
143
|
+
compression: options.compression,
|
|
144
|
+
certificationAudit: options.certificationAudit,
|
|
145
|
+
certificationFix: options.certificationFix,
|
|
144
146
|
};
|
|
145
147
|
return pluginConfiguration;
|
|
146
148
|
}
|
|
@@ -249,6 +251,8 @@ export default class WebPackWrap {
|
|
|
249
251
|
skipApiCheck: false,
|
|
250
252
|
allLocales: false,
|
|
251
253
|
pbivizFile: 'pbiviz.json',
|
|
254
|
+
certificationAudit: false,
|
|
255
|
+
certificationFix: false,
|
|
252
256
|
}) {
|
|
253
257
|
const tsconfig = await readJsonFromVisual('tsconfig.json');
|
|
254
258
|
this.pbiviz = await readJsonFromVisual(options.pbivizFile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerbi-visuals-tools",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.1.0-beta.1",
|
|
4
4
|
"description": "Command line tool for creating and publishing visuals for Power BI",
|
|
5
5
|
"main": "./bin/pbiviz.js",
|
|
6
6
|
"type": "module",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"crypto-browserify": "^3.12.1",
|
|
42
42
|
"css-loader": "^7.1.2",
|
|
43
43
|
"domain-browser": "^5.7.0",
|
|
44
|
+
"eslint-plugin-powerbi-visuals": "^1.0.0",
|
|
44
45
|
"events": "^3.3.0",
|
|
45
46
|
"extra-watch-webpack-plugin": "^1.0.3",
|
|
46
47
|
"fs-extra": "^11.3.0",
|
|
@@ -57,8 +58,7 @@
|
|
|
57
58
|
"mini-css-extract-plugin": "^2.9.2",
|
|
58
59
|
"os-browserify": "^0.3.0",
|
|
59
60
|
"path-browserify": "^1.0.1",
|
|
60
|
-
"powerbi-visuals-webpack-plugin": "4.1
|
|
61
|
-
"eslint-plugin-powerbi-visuals": "^1.0.0",
|
|
61
|
+
"powerbi-visuals-webpack-plugin": "4.2.1",
|
|
62
62
|
"process": "^0.11.10",
|
|
63
63
|
"punycode": "^2.3.1",
|
|
64
64
|
"querystring-es3": "^0.2.1",
|