Skip to content

Commit f29a658

Browse files
committed
Rewrite without transpiler
1 parent 9ce7f62 commit f29a658

7 files changed

+1388
-6054
lines changed

.editorconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ max_line_length = 120
1111

1212
[*.js]
1313
indent_style = space
14-
indent_size = 4
14+
indent_size = 2
1515
insert_final_newline = true
1616
trim_trailing_whitespace = true
1717
max_line_length = 120
1818

1919
[*.json]
2020
indent_style = space
21-
indent_size = 4
21+
indent_size = 2
2222
insert_final_newline = true
2323
trim_trailing_whitespace = true
2424

2525
[*.yml]
2626
indent_style = space
27-
indent_size = 4
27+
indent_size = 2

.flowconfig

-12
This file was deleted.

.gitignore

+1-35
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,4 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
6-
# Runtime data
7-
pids
8-
*.pid
9-
*.seed
10-
11-
# Directory for instrumented libs generated by jscoverage/JSCover
12-
lib-cov
13-
14-
# Coverage directory used by tools like istanbul
1+
npm-debug.log
152
coverage
16-
17-
# nyc test coverage
183
.nyc_output
19-
20-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21-
.grunt
22-
23-
# node-waf configuration
24-
.lock-wscript
25-
26-
# Compiled binary addons (http://nodejs.org/api/addons.html)
27-
build/Release
28-
29-
# Dependency directories
304
node_modules
31-
jspm_packages
32-
33-
# Optional npm cache directory
34-
.npm
35-
36-
# Optional REPL history
37-
.node_repl_history
38-
lib

lib/Bundle.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const configYaml = require("config-yaml");
2+
3+
module.exports = class Bundle {
4+
constructor(filePath) {
5+
this.filePath = filePath;
6+
}
7+
8+
getPath() {
9+
return __dirname;
10+
}
11+
12+
initialize(application) {
13+
const properties = configYaml(this.filePath, { encoding: "utf8" });
14+
15+
const configuration = application.getParameter("configuration");
16+
configuration.addProperties(properties);
17+
}
18+
};

0 commit comments

Comments
 (0)