Skip to content

Commit 1bd98c7

Browse files
committed
customize directories, fix debug.js
1 parent 72f9656 commit 1bd98c7

3 files changed

Lines changed: 39 additions & 4 deletions

File tree

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# http://editorconfig.org/
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
[src/**/**.js]
7+
indent_style = tab
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
max_line_length = 120
14+
15+
[**.json]
16+
indent_style = space
17+
indent_size = 2

debug.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,26 @@ function runwatching() {
8787
const REG_EXTENSION = /\.(js|resource|package)/i;
8888

8989
function app() {
90+
F.$configure_configs();
91+
9092
const fork = require('child_process').fork;
91-
var directories = [directory + '/components', directory + '/controllers', directory + '/definitions', directory + '/isomorphic', directory + '/modules', directory + '/resources', directory + '/models', directory + '/source', directory + '/workers', directory + '/packages', directory + '/themes', directory + '/configs', directory + '/startup', directory + '/schema'];
93+
const directories = [
94+
directory + CONFIG('directory-components'),
95+
directory + CONFIG('directory-controllers'),
96+
directory + CONFIG('directory-definitions'),
97+
directory + CONFIG('directory-isomorphic'),
98+
directory + CONFIG('directory-modules'),
99+
directory + CONFIG('directory-resources'),
100+
directory + CONFIG('directory-models'),
101+
directory + CONFIG('directory-source'),
102+
directory + CONFIG('directory-workers'),
103+
directory + CONFIG('directory-packages'),
104+
directory + CONFIG('directory-themes'),
105+
directory + CONFIG('directory-configs'),
106+
directory + '/startup',
107+
directory + '/schema'
108+
];
109+
92110
const async = new U.Async();
93111
const prefix = '---------------------------------> ';
94112

@@ -339,4 +357,4 @@ function runwatching() {
339357
if (debugging)
340358
setImmediate(runapp);
341359
else
342-
setImmediate(runwatching);
360+
setImmediate(runwatching);

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function Framework() {
513513

514514
this.config = {
515515

516-
debug: false,
516+
debug: true,
517517
trace: true,
518518
'trace-console': true,
519519

@@ -15591,4 +15591,4 @@ EMPTYCONTROLLER.req.uri = EMPTYOBJECT;
1559115591
EMPTYCONTROLLER.req.query = EMPTYOBJECT;
1559215592
EMPTYCONTROLLER.req.body = EMPTYOBJECT;
1559315593
EMPTYCONTROLLER.req.files = EMPTYARRAY;
15594-
global.EMPTYCONTROLLER = EMPTYCONTROLLER;
15594+
global.EMPTYCONTROLLER = EMPTYCONTROLLER;

0 commit comments

Comments
 (0)