Comparing version 3.10.1 to 3.10.2
@@ -5,7 +5,13 @@ # CHANGELOG | ||
#### *v3.10.1 - 05/06/2020 | ||
#### *v3.10.2 - 11/06/2020 | ||
- Fixed the `merger set` command, which was due to a bug added with the help command. | ||
| ||
#### v3.10.1 - 05/06/2020 | ||
- Fixed a typo on the fileDownloader module that caused the | ||
program to crash in case the user had the updates enabled. | ||
- Updated the package Commander from 3.0.2 to 5.1.0. | ||
- Updated the CLI package Commander from 3.0.2 to 5.1.0. | ||
@@ -12,0 +18,0 @@ |
@@ -74,24 +74,2 @@ /* | ||
// merger set --list || merger set --help | ||
CLI | ||
.command( 'set' ) | ||
.option( '-l', '--list' ) | ||
.option( '-h', '--help' ) | ||
.action( ( cmd ) => { | ||
if ( cmd.list || cmd.help ) { | ||
console.info( '\n Set MergerJS configuration.\n' ); | ||
console.info( ' Configuration keys:' ); | ||
console.info( ' -------------------' ); | ||
console.info( '', Object.values( ConfigKeysType ).join( '\n ' ) ); | ||
console.info( '\n Possible values: "-t" and "--true" or "-f" and "--false"' ); | ||
console.info( ' --------------- \n\n' ); | ||
process.exit( 0 ); | ||
return; | ||
} | ||
process.exit( 1 ); | ||
return; | ||
} ); | ||
// merger set | ||
@@ -103,2 +81,4 @@ CLI | ||
.option( '-f, --false' ) | ||
.option( '-h', '--help' ) | ||
.option( '-l', '--list' ) | ||
.action( ( key, cmd ) => { | ||
@@ -114,2 +94,13 @@ let Key = key.toUpperCase(); | ||
} else if ( Key === 'HELP' || Key === 'LIST' || cmd.list || cmd.help ) { | ||
console.info( '\n Set MergerJS configuration.\n' ); | ||
console.info( ' Configuration keys:' ); | ||
console.info( ' -------------------' ); | ||
const allConfigKeys = Object.values( ConfigKeysType ); | ||
console.info( '', allConfigKeys.slice( 0, allConfigKeys.length - 2 ).join( '\n ' ) ); | ||
console.info( '\n Possible values: "-t" and "--true" or "-f" and "--false"' ); | ||
console.info( ' --------------- \n\n' ); | ||
process.exit( 0 ); | ||
} else { | ||
@@ -116,0 +107,0 @@ console.error( ` ${style.styledError}${style.errorText( `Unknown option - ${cmd}.` )}` ); |
{ | ||
"name": "merger-js", | ||
"displayName": "MergerJS", | ||
"version": "3.10.1", | ||
"version": "3.10.2", | ||
"description": "Yet another simple cross-platform CLI build tool to bundle JavaScript files, with a custom file import syntax, ES8+ minification, auto build capabilities, and native OS notifications.", | ||
@@ -6,0 +6,0 @@ "readme": "https://github.com/joao-neves95/merger-js/blob/master/README.md", |
@@ -202,3 +202,3 @@ # MergerJS | ||
- `merger set` or `merger set -h` or `merger set --list`: <br/> | ||
- `merger set help` or `merger set list`: <br/> | ||
List all the configuration keys (it does not list the possible aliases). | ||
@@ -205,0 +205,0 @@ |
@@ -157,7 +157,23 @@ ## MergerJS JavaScript Style Guide | ||
| ||
After following these style conventions, you should also follow the Airbnb style guide: | ||
https://github.com/airbnb/javascript | ||
| ||
--- | ||
***This document may change in the future.*** | ||
--- | ||
## Disclaimer for other Developers | ||
Before starting to contribute to MergerJS, you must have in mind that this was my first | ||
software project, before any kind of personal or professional experience.\ | ||
The first version was made in one weekend and, with time, it was added new features without | ||
really thinking about future maintainability and evolution.\ | ||
Therefore, there are a lot of architectural problems and "spaghetti" code.\ | ||
With each new release, the codebase gets small architectural refactorings and improvements, | ||
but **a lot** of work still needs to be done. |
# Current Branch Version | ||
**v3.10.1** | ||
**v3.10.2** |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
240492
65
2838
1