Skip to content

Commit 2ba7bd6

Browse files
authored
Merge pull request #238 from reTHINK-project/develop
Prepare release
2 parents 2d95ec2 + f6b269d commit 2ba7bd6

File tree

112 files changed

+578195
-243749
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+578195
-243749
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": ["env"],
2+
"presets": ["env", "es2015"],
33
"plugins": ["add-module-exports", "babel-polyfill", "transform-runtime", "transform-regenerator"]
44
}

.eslintrc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ rules:
105105
eol-last: error
106106
dot-notation: error
107107
curly:
108-
- error
108+
- warn
109109
- multi-line
110+
- consistent
110111
keyword-spacing:
111112
- error
112113
- {}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ CVS
1111
npm-debug.log
1212
vendor
1313
build
14+
monitor
1415
node_modules
1516
resources/bundle.js
1617
*.komodoproject
1718

18-
.vscode/
19+
.vscode/

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@ if you have some trouble with the environment, you can open an issue [here](http
9292

9393
JavaScript code should be written in ES6. There are direct dependencies from nodejs and npm, these can be installed separately or in conjunction with [nvm](https://github.com/creationix/nvm)
9494

95+
### Logging System
96+
97+
To improve the "spam" of log in the console we are using a [log system](https://github.com/pimterry/loglevel#documentation) with allow us define by each module one level of log;
98+
You can access this configuration [here](https://github.com/reTHINK-project/dev-runtime-core/blob/develop/src/logLevels.js) and update it;
99+
100+
A little explanation about the log level; We have the same as console, but instead of console we should use:
101+
102+
- `log.trace(msg)` - 0
103+
- `log.debug(msg)` or `log.log(msg)` - 1
104+
- `log.info(msg)` - 2
105+
- `log.warn(msg)` - 3
106+
- `log.error(msg)` - 4
107+
108+
`log.setLevel(level, [persist])` method.
109+
110+
This disables all logging below the given level, so that after a `log.setLevel("warn")` call `log.warn("something")` or `log.error("something")` will output messages, but `log.info("something")` will not.
111+
112+
the `level` could be:
113+
- As a string, like 'error' (case-insensitive) ← for a reasonable practical balance
114+
- As a numeric index from 0 (trace) to 5 (silent) ← deliciously terse, and more easily programmable (...although, why?)
115+
116+
95117
#### Dependencies
96118

97119
- nodejs

dist/PEP.js

Lines changed: 320 additions & 238 deletions
Large diffs are not rendered by default.

dist/ReThinkCtx.js

Lines changed: 84 additions & 74 deletions
Large diffs are not rendered by default.

dist/Runtime.js

Lines changed: 1219 additions & 3938 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Runtime.light.js

Lines changed: 1880 additions & 2454 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Runtime.min.js

Lines changed: 2002 additions & 5326 deletions
Large diffs are not rendered by default.

dist/minibus.js

Lines changed: 267 additions & 197 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)