eolang 0.13.3 → 0.13.4
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/package.json +1 -1
- package/src/commands/test.js +2 -0
- package/src/eoc.js +5 -2
- package/src/mvnw.js +2 -2
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/commands/test.js
CHANGED
|
@@ -33,6 +33,8 @@ const path = require('path');
|
|
|
33
33
|
module.exports = function(opts) {
|
|
34
34
|
return mvnw([
|
|
35
35
|
'surefire:test',
|
|
36
|
+
opts.verbose ? '--errors' : '',
|
|
37
|
+
opts.verbose ? '' : '--quiet',
|
|
36
38
|
'-Deo.version=' + opts.parser,
|
|
37
39
|
`-Deo.targetDir=${path.resolve(opts.target)}`,
|
|
38
40
|
]);
|
package/src/eoc.js
CHANGED
|
@@ -51,8 +51,11 @@ if (process.argv.includes('--latest')) {
|
|
|
51
51
|
const version = require('./version');
|
|
52
52
|
program
|
|
53
53
|
.name('eoc')
|
|
54
|
-
.
|
|
55
|
-
.
|
|
54
|
+
.usage('[options] command')
|
|
55
|
+
.summary('EO command line toolkit')
|
|
56
|
+
.description('EO command-line toolkit (' + version.what + ' built on ' + version.when + ')')
|
|
57
|
+
.version(version.what, '-v, --version', 'Output the version number')
|
|
58
|
+
.helpOption('-?, --help', 'Print this help information');
|
|
56
59
|
|
|
57
60
|
program
|
|
58
61
|
.option('-s, --sources <path>', 'Directory with .EO sources', '.')
|
package/src/mvnw.js
CHANGED
|
@@ -131,7 +131,6 @@ function stop() {
|
|
|
131
131
|
* Prints mvnw execution status.
|
|
132
132
|
*/
|
|
133
133
|
function print() {
|
|
134
|
-
readline.clearLine(process.stdout);
|
|
135
134
|
const duration = Date.now() - beginning;
|
|
136
135
|
/**
|
|
137
136
|
* Recursively calculates number of files under a directory.
|
|
@@ -161,8 +160,9 @@ function print() {
|
|
|
161
160
|
elapsed = `${Math.ceil(duration / 3600000)}min`;
|
|
162
161
|
}
|
|
163
162
|
process.stdout.write(
|
|
164
|
-
colors.yellow(`[${phase}] ${elapsed}; ${count(target, 0)} files generated...`)
|
|
163
|
+
colors.yellow(`[${phase}] ${elapsed}; ${count(target, 0)} files generated so far...`)
|
|
165
164
|
);
|
|
165
|
+
readline.clearLine(process.stdout, 1);
|
|
166
166
|
readline.cursorTo(process.stdout, 0);
|
|
167
167
|
}
|
|
168
168
|
|