eolang 0.32.0 → 0.32.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/Formula/eolang.rb +3 -3
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/commands/clean.js +4 -4
- package/src/commands/docs.js +1 -1
- package/src/commands/java/compile.js +1 -1
- package/src/commands/java/dataize.js +2 -2
- package/src/commands/jeo/assemble.js +1 -1
- package/src/commands/jeo/disassemble.js +1 -1
- package/src/commands/js/transpile.js +1 -1
- package/src/commands/latex.js +1 -1
- package/src/commands/lint.js +1 -1
- package/src/commands/print.js +2 -2
- package/src/commands/sodg.js +2 -2
- package/src/version.js +2 -2
package/Formula/eolang.rb
CHANGED
|
@@ -7,9 +7,9 @@ require "language/node"
|
|
|
7
7
|
class Eolang < Formula
|
|
8
8
|
desc "Command-line Tool-Kit"
|
|
9
9
|
homepage "https://github.com/objectionary/eoc"
|
|
10
|
-
url "https://github.com/objectionary/eoc/archive/refs/tags/0.
|
|
11
|
-
version "0.
|
|
12
|
-
sha256 "
|
|
10
|
+
url "https://github.com/objectionary/eoc/archive/refs/tags/0.32.0.tar.gz"
|
|
11
|
+
version "0.32.0"
|
|
12
|
+
sha256 "a24da178f48e1e64280aa467fd97986d9456a25ea023525bf36a9308ec1a4cea"
|
|
13
13
|
license "MIT"
|
|
14
14
|
|
|
15
15
|
depends_on "node"
|
package/README.md
CHANGED
|
@@ -18,14 +18,14 @@ First, you install [npm][npm-install] and [Java SE][java-se].
|
|
|
18
18
|
Then, you install [eolang][npm] package, using [npm][npm-install]:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npm install -g eolang@0.
|
|
21
|
+
npm install -g eolang@0.32.0
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
You can also use [Homebrew] (on macOS):
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
brew tap objectionary/eoc https://github.com/objectionary/eoc
|
|
28
|
-
brew install objectionary/eoc/eolang
|
|
28
|
+
brew install objectionary/eoc/eolang@0.32.0
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Then, you write a simple [EO](https://www.eolang.org) program in `hello.eo` file
|
package/package.json
CHANGED
package/src/commands/clean.js
CHANGED
|
@@ -16,17 +16,17 @@ module.exports = function(opts) {
|
|
|
16
16
|
const home = path.resolve(opts.target);
|
|
17
17
|
if (fs.existsSync(home)) {
|
|
18
18
|
fs.rmSync(home, {recursive: true, force: true});
|
|
19
|
-
console.info('The directory %s deleted', rel(home));
|
|
19
|
+
console.info('The directory %s was deleted', rel(home));
|
|
20
20
|
} else {
|
|
21
|
-
console.info('The directory %s
|
|
21
|
+
console.info('The directory %s does not exist, no need to delete it', rel(home));
|
|
22
22
|
}
|
|
23
23
|
if (opts.global) {
|
|
24
24
|
const eo = path.join(os.homedir(), '.eo');
|
|
25
25
|
if (fs.existsSync(eo)) {
|
|
26
26
|
fs.rmSync(eo, {recursive: true});
|
|
27
|
-
console.info('The directory %s deleted', eo);
|
|
27
|
+
console.info('The directory %s was deleted', eo);
|
|
28
28
|
} else {
|
|
29
|
-
console.info('The directory %s
|
|
29
|
+
console.info('The directory %s does not exist, no need to delete it', eo);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
};
|
package/src/commands/docs.js
CHANGED
|
@@ -46,7 +46,7 @@ module.exports = function(opts) {
|
|
|
46
46
|
fs.writeFileSync(packages, '');
|
|
47
47
|
const css = path.join(output, 'styles.css');
|
|
48
48
|
fs.writeFileSync(css, '');
|
|
49
|
-
console.info('Documentation generation completed in %s directory', output);
|
|
49
|
+
console.info('Documentation generation completed in the %s directory', output);
|
|
50
50
|
} catch (error) {
|
|
51
51
|
console.error('Error generating documentation:', error);
|
|
52
52
|
throw error;
|
|
@@ -19,7 +19,7 @@ module.exports = function(opts) {
|
|
|
19
19
|
* It is necessary to use 'elapsed' in all logging cases that require output of elapsed time
|
|
20
20
|
*/
|
|
21
21
|
return mvnw(['test-compile'].concat(flags(opts)), opts.target, opts.batch).then((r) => {
|
|
22
|
-
console.info('Java .class files compiled
|
|
22
|
+
console.info('Java .class files compiled in %s', rel(target));
|
|
23
23
|
return r;
|
|
24
24
|
});
|
|
25
25
|
};
|
|
@@ -22,10 +22,10 @@ module.exports = function(obj, args, opts) {
|
|
|
22
22
|
obj,
|
|
23
23
|
...args,
|
|
24
24
|
].filter((i) => i);
|
|
25
|
-
console.debug(`+ java ${
|
|
25
|
+
console.debug(`+ java ${params.join(' ')}`);
|
|
26
26
|
spawn('java', params, {stdio: 'inherit'}).on('close', (code) => {
|
|
27
27
|
if (code !== 0) {
|
|
28
|
-
console.error(`JVM failed with exit code
|
|
28
|
+
console.error(`JVM failed with exit code ${code}`);
|
|
29
29
|
process.exit(1);
|
|
30
30
|
}
|
|
31
31
|
});
|
|
@@ -26,7 +26,7 @@ module.exports = function(opts) {
|
|
|
26
26
|
opts.target, opts.batch
|
|
27
27
|
).then((r) => {
|
|
28
28
|
console.info(
|
|
29
|
-
'EO .xmir files from %s assembled to .class
|
|
29
|
+
'EO .xmir files from %s assembled to .class files in %s',
|
|
30
30
|
rel(opts.xmirs), rel(opts.classes)
|
|
31
31
|
);
|
|
32
32
|
return r;
|
|
@@ -26,7 +26,7 @@ module.exports = function(opts) {
|
|
|
26
26
|
opts.target, opts.batch
|
|
27
27
|
).then((r) => {
|
|
28
28
|
console.info(
|
|
29
|
-
'Bytecode .class files from %s disassembled to .xmir
|
|
29
|
+
'Bytecode .class files from %s disassembled to .xmir files in %s',
|
|
30
30
|
rel(opts.classes), rel(opts.xmirs)
|
|
31
31
|
);
|
|
32
32
|
return r;
|
|
@@ -14,6 +14,6 @@ const path = require('path');
|
|
|
14
14
|
*/
|
|
15
15
|
module.exports = async function(opts) {
|
|
16
16
|
const r = await eo2jsw('transpile', { ...opts, alone: true, project: 'project' });
|
|
17
|
-
console.info(`JS sources
|
|
17
|
+
console.info(`JS sources generated in ${rel(path.resolve(opts.target, 'project'))}`);
|
|
18
18
|
return r;
|
|
19
19
|
};
|
package/src/commands/latex.js
CHANGED
|
@@ -16,7 +16,7 @@ const fs = require('fs');
|
|
|
16
16
|
module.exports = function(opts) {
|
|
17
17
|
const latex = path.resolve(opts.target, 'latex');
|
|
18
18
|
return mvnw(['eo:latex'].concat(flags(opts)), opts.target, opts.batch).then((r) => {
|
|
19
|
-
console.info('LaTeX files generated
|
|
19
|
+
console.info('LaTeX files generated in %s', rel(latex));
|
|
20
20
|
return r;
|
|
21
21
|
});
|
|
22
22
|
};
|
package/src/commands/lint.js
CHANGED
|
@@ -26,7 +26,7 @@ module.exports = function(opts) {
|
|
|
26
26
|
return r;
|
|
27
27
|
}).catch((error) => {
|
|
28
28
|
throw new Error(
|
|
29
|
-
'There are
|
|
29
|
+
'There are errors and/or warnings; you may disable warnings via the --easy option'
|
|
30
30
|
);
|
|
31
31
|
});
|
|
32
32
|
}
|
package/src/commands/print.js
CHANGED
|
@@ -16,7 +16,7 @@ module.exports = function(opts) {
|
|
|
16
16
|
const input = path.resolve(opts.target, opts.printInput);
|
|
17
17
|
console.debug('Reading from %s', rel(input));
|
|
18
18
|
const output = path.resolve(opts.target, opts.printOutput);
|
|
19
|
-
console.debug('Writing
|
|
19
|
+
console.debug('Writing to %s', rel(output));
|
|
20
20
|
return mvnw(
|
|
21
21
|
['eo:print']
|
|
22
22
|
.concat(flags(opts))
|
|
@@ -28,7 +28,7 @@ module.exports = function(opts) {
|
|
|
28
28
|
),
|
|
29
29
|
opts.target, opts.batch
|
|
30
30
|
).then((r) => {
|
|
31
|
-
console.info('XMIR files converted
|
|
31
|
+
console.info('XMIR files converted to EO files at %s', rel(output));
|
|
32
32
|
return r;
|
|
33
33
|
});
|
|
34
34
|
};
|
package/src/commands/sodg.js
CHANGED
|
@@ -14,9 +14,9 @@ const {mvnw, flags} = require('../mvnw');
|
|
|
14
14
|
*/
|
|
15
15
|
module.exports = function(opts) {
|
|
16
16
|
const argv = ['eo:sodg'].concat(flags(opts));
|
|
17
|
-
argv.push(`-Deo.sodgIncludes=${
|
|
17
|
+
argv.push(`-Deo.sodgIncludes=${opts.include}`);
|
|
18
18
|
if (opts.exclude) {
|
|
19
|
-
argv.push(`-Deo.sodgExcludes=${
|
|
19
|
+
argv.push(`-Deo.sodgExcludes=${opts.exclude}`);
|
|
20
20
|
}
|
|
21
21
|
if (opts.xml) {
|
|
22
22
|
argv.push('-Deo.generateSodgXmlFiles');
|
package/src/version.js
CHANGED