File tree 7 files changed +1388
-6054
lines changed
7 files changed +1388
-6054
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ max_line_length = 120
11
11
12
12
[* .js ]
13
13
indent_style = space
14
- indent_size = 4
14
+ indent_size = 2
15
15
insert_final_newline = true
16
16
trim_trailing_whitespace = true
17
17
max_line_length = 120
18
18
19
19
[* .json ]
20
20
indent_style = space
21
- indent_size = 4
21
+ indent_size = 2
22
22
insert_final_newline = true
23
23
trim_trailing_whitespace = true
24
24
25
25
[* .yml ]
26
26
indent_style = space
27
- indent_size = 4
27
+ indent_size = 2
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
15
2
coverage
16
-
17
- # nyc test coverage
18
3
.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
30
4
node_modules
31
- jspm_packages
32
-
33
- # Optional npm cache directory
34
- .npm
35
-
36
- # Optional REPL history
37
- .node_repl_history
38
- lib
Original file line number Diff line number Diff line change
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
+ } ;
You can’t perform that action at this time.
0 commit comments