@percy/cli-upload
Advanced tools
Comparing version 1.0.0-beta.71 to 1.0.0-beta.72
@@ -6,3 +6,4 @@ "use strict"; | ||
}); | ||
exports.default = createImageResources; | ||
exports.createImageResources = createImageResources; | ||
exports.default = void 0; | ||
@@ -39,3 +40,3 @@ var _path = _interopRequireDefault(require("path")); | ||
function createImageResources(filename, content, width, height) { | ||
function createImageResources(filename, content, size) { | ||
let { | ||
@@ -63,6 +64,9 @@ dir, | ||
<body> | ||
<img src="${imageUrl}" width="${width}px" height="${height}px"/> | ||
<img src="${imageUrl}" width="${size.width}px" height="${size.height}px"/> | ||
</body> | ||
</html> | ||
`), createImageResource(imageUrl, content, mimetype)]; | ||
} | ||
} | ||
var _default = createImageResources; | ||
exports.default = _default; |
{ | ||
"name": "@percy/cli-upload", | ||
"version": "1.0.0-beta.71", | ||
"version": "1.0.0-beta.72", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/percy/cli", | ||
"directory": "packages/cli-upload" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist", | ||
"oclif.manifest.json" | ||
"dist" | ||
], | ||
@@ -16,31 +23,19 @@ "engines": { | ||
"lint": "eslint --ignore-path ../../.gitignore .", | ||
"postbuild": "oclif-dev manifest", | ||
"readme": "oclif-dev readme", | ||
"readme": "percy-cli-readme", | ||
"test": "node ../../scripts/test", | ||
"test:coverage": "yarn test --coverage" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
"@percy/cli": { | ||
"commands": [ | ||
"./dist/upload.js" | ||
] | ||
}, | ||
"oclif": { | ||
"bin": "percy", | ||
"commands": "./dist/commands", | ||
"hooks": { | ||
"init": "./dist/hooks/init" | ||
} | ||
}, | ||
"dependencies": { | ||
"@percy/cli-command": "1.0.0-beta.71", | ||
"@percy/client": "1.0.0-beta.71", | ||
"@percy/config": "1.0.0-beta.71", | ||
"@percy/logger": "1.0.0-beta.71", | ||
"@percy/cli-command": "1.0.0-beta.72", | ||
"@percy/client": "1.0.0-beta.72", | ||
"@percy/logger": "1.0.0-beta.72", | ||
"globby": "^11.0.4", | ||
"image-size": "^1.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/percy/cli", | ||
"directory": "packages/cli-upload" | ||
}, | ||
"gitHead": "364d1df717fb19a26ccb024458df6e78a9c11f99" | ||
"gitHead": "6219287e18a0cacb609d0c2696a5785abc9009b9" | ||
} |
@@ -7,5 +7,5 @@ # @percy/cli-upload | ||
<!-- commands --> | ||
* [`percy upload DIRNAME`](#percy-upload-dirname) | ||
* [`percy upload`](#percy-upload) | ||
## `percy upload DIRNAME` | ||
### `percy upload` | ||
@@ -15,19 +15,25 @@ Upload a directory of images to Percy | ||
``` | ||
USAGE | ||
$ percy upload DIRNAME | ||
Usage: | ||
$ percy upload [options] <dirname> | ||
ARGUMENTS | ||
DIRNAME directory of images to upload | ||
Arguments: | ||
dirname Directory of images to upload | ||
OPTIONS | ||
-c, --config=config configuration file path | ||
-d, --dry-run prints a list of matching images to upload without uploading | ||
-e, --strip-extensions strips file extensions from snapshot names | ||
-f, --files=files [default: **/*.{png,jpg,jpeg}] one or more globs matching image file paths to upload | ||
-i, --ignore=ignore one or more globs matching image file paths to ignore | ||
-q, --quiet log errors only | ||
-v, --verbose log everything | ||
--silent log nothing | ||
Options: | ||
-f, --files [pattern] One or more globs matching image file paths to upload (default: | ||
"**/*.{png,jpg,jpeg}") | ||
-i, --ignore <pattern> One or more globs matching image file paths to ignore | ||
-e, --strip-extensions Strips file extensions from snapshot names | ||
EXAMPLE | ||
Percy options: | ||
-c, --config <file> Config file path | ||
-d, --dry-run Print snapshot names only | ||
Global options: | ||
-v, --verbose Log everything | ||
-q, --quiet Log errors only | ||
-s, --silent Log nothing | ||
-h, --help Display command help | ||
Examples: | ||
$ percy upload ./images | ||
@@ -34,0 +40,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
57
11819
7
244
1
+ Added@percy/cli-command@1.0.0-beta.72(transitive)
+ Added@percy/client@1.0.0-beta.72(transitive)
+ Added@percy/config@1.0.0-beta.72(transitive)
+ Added@percy/core@1.0.0-beta.72(transitive)
+ Added@percy/dom@1.0.0-beta.72(transitive)
+ Added@percy/env@1.0.0-beta.72(transitive)
+ Added@percy/logger@1.0.0-beta.72(transitive)
+ Added@types/node@22.7.6(transitive)
+ Added@types/yauzl@2.10.3(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-crc32@0.2.13(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcross-spawn@7.0.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedextract-zip@2.0.1(transitive)
+ Addedfd-slicer@1.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedws@8.18.0(transitive)
+ Addedyauzl@2.10.0(transitive)
- Removed@percy/config@1.0.0-beta.71
- Removed@oclif/command@1.8.36(transitive)
- Removed@oclif/config@1.18.161.18.171.18.2(transitive)
- Removed@oclif/errors@1.3.51.3.6(transitive)
- Removed@oclif/help@1.0.15(transitive)
- Removed@oclif/linewrap@1.0.0(transitive)
- Removed@oclif/parser@3.8.17(transitive)
- Removed@oclif/plugin-help@3.3.1(transitive)
- Removed@percy/cli-command@1.0.0-beta.71(transitive)
- Removed@percy/client@1.0.0-beta.71(transitive)
- Removed@percy/config@1.0.0-beta.71(transitive)
- Removed@percy/env@1.0.0-beta.71(transitive)
- Removed@percy/logger@1.0.0-beta.71(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedclean-stack@3.0.1(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedescape-string-regexp@4.0.0(transitive)
- Removedfs-extra@8.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedis-docker@2.2.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-wsl@2.2.0(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedsemver@7.6.3(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedtslib@2.8.0(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedwidest-line@3.1.0(transitive)
- Removedwrap-ansi@6.2.07.0.0(transitive)
Updated@percy/client@1.0.0-beta.72
Updated@percy/logger@1.0.0-beta.72