Skip to content

Commit

Permalink
* added winston for logging
Browse files Browse the repository at this point in the history
* added posibility for getting image from config
* cleaned up build dir and console output
  • Loading branch information
AleBles committed Nov 4, 2019
1 parent b53f4aa commit 9eb33cf
Show file tree
Hide file tree
Showing 8 changed files with 261 additions and 114 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [0.0.2] - 2019-11-04
### Added
- Winston logging with a verbose check
- check to see if img exists
- Can now read img file from json config

### Fixed
- error reporting image size equals zero is nog caught
- cleaned up dist folder

## [0.0.1] - 2019-11-01
### Added
- Initial setup and release
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ ale@computer:~$ npm install @azerion/h5-texture-unpacker -g
Now you'll be able to use the command:
```
ale@computer:~$ unpack
Usage: unpack [imageFile] [jsonFile] [outputDir]
Usage: unpack -j [jsonFile] -o [outputDir]
```

Usage
-----
```
ale@NL0NTB032:/media/ale/dev/tools/h5-texture-unpacker$ unpack
Usage: unpack [imageFile] [jsonFile] [outputDir]
ale@computer:~$ unpack
Usage: unpack -j [jsonFile] -o [outputDir]
Options:
--version Show version number [boolean]
--imageFile, -i The input texture image [string] [required]
--imageFile, -i The input texture image [string] [default: ""]
--jsonFile, -j The input JSON configuration [string] [required]
--outputDir, -o The output folder [string] [required]
--verbose, -v Show log messages [boolean] [default: false]
-h, --help Show help [boolean]
copyright Azerion 2019
```

TODO
Expand Down
52 changes: 2 additions & 50 deletions dist/h5-texture-unpacker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9eb33cf

Please sign in to comment.