intermediate-component-sa 1.1.0 → 1.1.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.
Files changed (163) hide show
  1. package/app.server.js +7 -0
  2. package/client/css/main.css +1 -0
  3. package/{src/client → client}/index.html +6 -40
  4. package/client/js/app.js +1 -0
  5. package/client/js/shims.js +17 -0
  6. package/{src/client → client}/tsconfig.json +0 -0
  7. package/package.json +75 -340
  8. package/{src/server/config/app.config.ts → server/config/app.config.js} +47 -57
  9. package/server/config/jwt.config.js +4 -0
  10. package/{src/server/config/logger.config.ts → server/config/logger.config.js} +142 -161
  11. package/server/config/mssql.config.js +32 -0
  12. package/server/config/redis.config.js +8 -0
  13. package/server/config/server.config.js +12 -0
  14. package/server/config/templates.config.js +23 -0
  15. package/server/crypt.js +29 -0
  16. package/server/customRequest.js +370 -0
  17. package/server/index.js +125 -0
  18. package/server/interfaces/cleaner.interface.js +2 -0
  19. package/server/interfaces/supervisor.interface.js +2 -0
  20. package/{src/server/routes-centralized.ts → server/routes-centralized.js} +37 -36
  21. package/server/routes.js +7 -0
  22. package/server/services/index.js +8 -0
  23. package/server/services/routes.service.js +18 -0
  24. package/server/shared/file-manager.js +616 -0
  25. package/server/shared/http.shared.js +39 -0
  26. package/server/shared/promises.shared.js +14 -0
  27. package/server/shared/security.shared.js +52 -0
  28. package/{src/server → server}/ssl/star_inconcertcc_com.key +0 -0
  29. package/{src/server → server}/ssl/star_inconcertcc_com.pem +0 -0
  30. package/CHANGELOG.md +0 -11
  31. package/README.md +0 -1
  32. package/build-dev.bat +0 -2
  33. package/build-prod-aot.bat +0 -2
  34. package/build-prod-rollup-aot.bat +0 -2
  35. package/build-prod.bat +0 -2
  36. package/config.ts +0 -4
  37. package/gulpfile.ts +0 -172
  38. package/index.js +0 -12
  39. package/karma.conf.js +0 -124
  40. package/postgrator-test.json +0 -9
  41. package/postgrator.json +0 -9
  42. package/src/app.server.ts +0 -4
  43. package/src/client/app/app.component.ts +0 -37
  44. package/src/client/app/app.html +0 -6
  45. package/src/client/app/app.module.ts +0 -36
  46. package/src/client/app/app.routing.ts +0 -7
  47. package/src/client/app/hot_loader_main.ts +0 -14
  48. package/src/client/app/main-aot.ts +0 -8
  49. package/src/client/app/main.ts +0 -8
  50. package/src/client/app/rxjs-operators.ts +0 -15
  51. package/src/server/config/jwt.config.ts +0 -4
  52. package/src/server/config/mssql.config.ts +0 -30
  53. package/src/server/config/redis.config.ts +0 -10
  54. package/src/server/config/server.config.ts +0 -20
  55. package/src/server/config/templates.config.ts +0 -41
  56. package/src/server/crypt.ts +0 -37
  57. package/src/server/customRequest.ts +0 -609
  58. package/src/server/index.ts +0 -231
  59. package/src/server/interfaces/cleaner.interface.ts +0 -3
  60. package/src/server/interfaces/supervisor.interface.ts +0 -3
  61. package/src/server/routes.ts +0 -6
  62. package/src/server/services/index.ts +0 -10
  63. package/src/server/services/routes.service.ts +0 -11
  64. package/src/server/shared/file-manager.ts +0 -1007
  65. package/src/server/shared/http.shared.ts +0 -49
  66. package/src/server/shared/promises.shared.ts +0 -13
  67. package/src/server/shared/security.shared.ts +0 -90
  68. package/src/server/tsconfig.json +0 -38
  69. package/tools/build.js.prod.ts +0 -40
  70. package/tools/config/project.config.ts +0 -718
  71. package/tools/config.ts +0 -4
  72. package/tools/database/SchemaZen.exe +0 -0
  73. package/tools/database/generate-all-data-scripts.bat +0 -32
  74. package/tools/database/generate-database-scripts.bat +0 -36
  75. package/tools/debug.ts +0 -17
  76. package/tools/env/base.ts +0 -8
  77. package/tools/env/dev.ts +0 -9
  78. package/tools/env/env-config.interface.ts +0 -1
  79. package/tools/env/prod.ts +0 -10
  80. package/tools/manual_typings/project/sample.package.d.ts +0 -3
  81. package/tools/manual_typings/seed/angular2-hot-loader.d.ts +0 -9
  82. package/tools/manual_typings/seed/autoprefixer.d.ts +0 -13
  83. package/tools/manual_typings/seed/colorguard.d.ts +0 -15
  84. package/tools/manual_typings/seed/connect-livereload.d.ts +0 -5
  85. package/tools/manual_typings/seed/cssnano.d.ts +0 -18
  86. package/tools/manual_typings/seed/doiuse.d.ts +0 -16
  87. package/tools/manual_typings/seed/express-history-api-fallback.d.ts +0 -18
  88. package/tools/manual_typings/seed/istream.d.ts +0 -10
  89. package/tools/manual_typings/seed/karma.d.ts +0 -12
  90. package/tools/manual_typings/seed/merge-stream.d.ts +0 -8
  91. package/tools/manual_typings/seed/open.d.ts +0 -8
  92. package/tools/manual_typings/seed/postcss-reporter.d.ts +0 -20
  93. package/tools/manual_typings/seed/slash.d.ts +0 -5
  94. package/tools/manual_typings/seed/stylelint.d.ts +0 -16
  95. package/tools/manual_typings/seed/systemjs-builder.d.ts +0 -10
  96. package/tools/manual_typings/seed/tildify.d.ts +0 -5
  97. package/tools/manual_typings/seed/tiny-lr.d.ts +0 -10
  98. package/tools/manual_typings/seed/walk.d.ts +0 -10
  99. package/tools/scripts/install.speech-analytic.sh +0 -35
  100. package/tools/tasks/build.app.server.ts +0 -57
  101. package/tools/tasks/build.assets.dev.ts +0 -19
  102. package/tools/tasks/build.assets.prod.ts +0 -31
  103. package/tools/tasks/build.bundles.app.aot.ts +0 -31
  104. package/tools/tasks/build.bundles.app.rollup.aot.ts +0 -101
  105. package/tools/tasks/build.bundles.app.ts +0 -31
  106. package/tools/tasks/build.bundles.ts +0 -45
  107. package/tools/tasks/build.database.scripts.runner.ts +0 -137
  108. package/tools/tasks/build.database.scripts.ts +0 -27
  109. package/tools/tasks/build.flags.ts +0 -9
  110. package/tools/tasks/build.fonts.ts +0 -9
  111. package/tools/tasks/build.html_css.ts +0 -126
  112. package/tools/tasks/build.index.dev.ts +0 -68
  113. package/tools/tasks/build.index.prod.ts +0 -64
  114. package/tools/tasks/build.js.dev.ts +0 -66
  115. package/tools/tasks/build.js.prod.aot.ts +0 -44
  116. package/tools/tasks/build.js.prod.rollup.aot.ts +0 -50
  117. package/tools/tasks/build.js.prod.ts +0 -40
  118. package/tools/tasks/build.packages.prod.ts +0 -19
  119. package/tools/tasks/build.server.dev.ts +0 -59
  120. package/tools/tasks/build.server.prod.ts +0 -31
  121. package/tools/tasks/build.server.statics.ts +0 -24
  122. package/tools/tasks/build.skins.ts +0 -51
  123. package/tools/tasks/build.sme.prod.aot.ts +0 -6
  124. package/tools/tasks/build.sme.prod.rollup.aot.ts +0 -6
  125. package/tools/tasks/build.sme.prod.ts +0 -6
  126. package/tools/tasks/build.tar.prod.ts +0 -17
  127. package/tools/tasks/build.test.database.scripts.ts +0 -52
  128. package/tools/tasks/clean.dev.ts +0 -7
  129. package/tools/tasks/clean.prod.ts +0 -7
  130. package/tools/tasks/compile.ahead.prod.ts +0 -65
  131. package/tools/tasks/copy.client.js.prod.rollup.aot.ts +0 -33
  132. package/tools/tasks/copy.client.js.prod.ts +0 -18
  133. package/tools/tasks/copy.server.assets.ts +0 -38
  134. package/tools/tasks/copy.server.js.prod.ts +0 -16
  135. package/tools/tasks/css-lint.ts +0 -58
  136. package/tools/tasks/e2e.ts +0 -32
  137. package/tools/tasks/karma.run.ts +0 -18
  138. package/tools/tasks/karma.watch.ts +0 -9
  139. package/tools/tasks/minify.server.statics.ts +0 -52
  140. package/tools/tasks/server.prod.ts +0 -6
  141. package/tools/tasks/server.start.ts +0 -6
  142. package/tools/tasks/test.database.ts +0 -6
  143. package/tools/tasks/transpile.bundles.rollup.aot.ts +0 -43
  144. package/tools/tasks/tslint.ts +0 -64
  145. package/tools/tasks/watch.file.changes.dev.ts +0 -37
  146. package/tools/tasks/watch.key.press.dev.ts +0 -116
  147. package/tools/tasks/webdriver.ts +0 -6
  148. package/tools/utils/project/sample_util.ts +0 -18
  149. package/tools/utils/project.utils.ts +0 -4
  150. package/tools/utils/seed/build_optimizer.ts +0 -26
  151. package/tools/utils/seed/clean.ts +0 -35
  152. package/tools/utils/seed/code_change_tools.ts +0 -38
  153. package/tools/utils/seed/karma.start.ts +0 -10
  154. package/tools/utils/seed/server.ts +0 -43
  155. package/tools/utils/seed/sme.ts +0 -51
  156. package/tools/utils/seed/tasks_tools.ts +0 -70
  157. package/tools/utils/seed/template_locals.ts +0 -64
  158. package/tools/utils/seed/tsproject.ts +0 -25
  159. package/tools/utils/seed.utils.ts +0 -11
  160. package/tools/utils.ts +0 -5
  161. package/tsconfig.json +0 -33
  162. package/tslint.json +0 -120
  163. package/utils.ts +0 -5
@@ -1,64 +0,0 @@
1
- import * as log from 'fancy-log';
2
- import { argv } from 'yargs';
3
- import { join } from 'path';
4
- import { Chalk } from 'chalk';
5
-
6
- import * as Config from '../../config';
7
-
8
- // Obtengo plugins de gulp
9
- const chalk: Chalk = require('chalk');
10
-
11
- /**
12
- * Builds an object consisting of the base configuration provided by confg/config.ts, the additional
13
- * project specific overrides as defined in config/project.config.ts and including the base environment config as defined in env/base.ts
14
- * and the environment specific overrides (for instance if env=dev then as defined in env/dev.ts).
15
- */
16
- export class TemplateLocalsBuilder {
17
- private stringifySystemConfigDev = false;
18
- private stringifyEnvConfig = true;
19
-
20
- withStringifiedSystemConfigDev() {
21
- this.stringifySystemConfigDev = true;
22
- return this;
23
- }
24
-
25
- withoutStringifiedEnvConfig() {
26
- this.stringifyEnvConfig = false;
27
- return this;
28
- }
29
-
30
- build() {
31
- const configEnvName = argv['env-config'] || argv['config-env'] || 'dev';
32
- const configPath = Config.getPluginConfig('environment-config');
33
- const envOnlyConfig = this.getConfig(configPath, configEnvName);
34
- const baseConfig = this.getConfig(configPath, 'base');
35
-
36
- if (!envOnlyConfig) {
37
- throw new Error(configEnvName + ' is an invalid configuration name');
38
- }
39
-
40
- const envConfig = Object.assign({}, baseConfig, envOnlyConfig);
41
-
42
- let locals = Object.assign({},
43
- Config,
44
- { ENV_CONFIG: this.stringifyEnvConfig ? JSON.stringify(envConfig) : envConfig }
45
- );
46
- if (this.stringifySystemConfigDev) {
47
- Object.assign(locals, {SYSTEM_JS_CONFIG_DEV: JSON.stringify(Config.SYSTEM_JS_CONFIG_DEV)});
48
- }
49
- return locals;
50
- }
51
-
52
- private getConfig(path: string, env: string) {
53
- const configPath = join(path, env);
54
- let config: any;
55
- try {
56
- config = JSON.parse(JSON.stringify(require(configPath)));
57
- } catch (e) {
58
- config = null;
59
- log(chalk.red(e.message));
60
- }
61
-
62
- return config;
63
- }
64
- }
@@ -1,25 +0,0 @@
1
- import * as gulpLoadPlugins from 'gulp-load-plugins';
2
- import { join } from 'path';
3
- import ts = require('gulp-typescript/release/main');
4
-
5
- import { APP_CLIENT_SRC, APP_NAME } from '../../config';
6
-
7
- const plugins = <any>gulpLoadPlugins();
8
-
9
- let tsProjects: any = {};
10
-
11
- /**
12
- * Creates a TypeScript project with the given options using the gulp typescript plugin.
13
- * @param {Object} options - The additional options for the project configuration.
14
- */
15
- export function makeTsProject(options: ts.Settings = {}, pathToTsConfig: string = APP_CLIENT_SRC, projectName = 'tsconfig.json') {
16
- let optionsHash = JSON.stringify(options);
17
- if (!tsProjects[optionsHash]) {
18
- let config = Object.assign({
19
- typescript: require('typescript')
20
- }, options);
21
- tsProjects[optionsHash] =
22
- plugins.typescript.createProject(join(pathToTsConfig, projectName), config);
23
- }
24
- return tsProjects[optionsHash];
25
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This barrel file provides the export for the utilities provided by the seed.
3
- */
4
- export * from './seed/build_optimizer';
5
- export * from './seed/clean';
6
- export * from './seed/code_change_tools';
7
- export * from './seed/server';
8
- export * from './seed/sme';
9
- export * from './seed/tasks_tools';
10
- export * from './seed/template_locals';
11
- export * from './seed/tsproject';
package/tools/utils.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * This barrel file provides the export for the utilities provided by the project and the seed.
3
- */
4
- export * from './utils/project.utils';
5
- export * from './utils/seed.utils';
package/tsconfig.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "commonjs",
5
- "declaration": false,
6
- "removeComments": true,
7
- "noLib": false,
8
- "emitDecoratorMetadata": true,
9
- "experimentalDecorators": true,
10
- "lib": ["es6", "es2015", "dom"],
11
- "sourceMap": true,
12
- "pretty": true,
13
- "allowUnreachableCode": false,
14
- "allowUnusedLabels": false,
15
- "noImplicitAny": false,
16
- "noImplicitReturns": true,
17
- "noImplicitUseStrict": false,
18
- "noFallthroughCasesInSwitch": true,
19
- "typeRoots": [
20
- "./node_modules/@types",
21
- "./node_modules"
22
- ],
23
- "types": [
24
- "node"
25
- ]
26
- },
27
- "exclude": [
28
- "node_modules",
29
- "dist",
30
- "src"
31
- ],
32
- "compileOnSave": false
33
- }
package/tslint.json DELETED
@@ -1,120 +0,0 @@
1
- {
2
- "rulesDirectory": [
3
- "node_modules/codelyzer",
4
- "node_modules/rxjs-tslint"
5
- ],
6
- "rules": {
7
- "class-name": true,
8
- "curly": false,
9
- "eofline": true,
10
- "indent": [false],
11
- "max-line-length": [true, 2000],
12
- "member-ordering": [false,
13
- {
14
- "order": [
15
- "static-field",
16
- "instance-field",
17
- "constructor",
18
- "public-instance-method",
19
- "protected-instance-method",
20
- "private-instance-method"
21
- ]
22
- }
23
- ],
24
- "no-arg": true,
25
- "no-construct": true,
26
- "no-duplicate-variable": true,
27
- "no-empty": false,
28
- "no-eval": true,
29
- "no-trailing-whitespace": true,
30
- "no-unused-expression": true,
31
- "no-unused-variable": false,
32
- "no-use-before-declare": true,
33
- "one-line": [true,
34
- "check-open-brace",
35
- "check-catch",
36
- "check-else",
37
- "check-whitespace"
38
- ],
39
- "quotemark": [true, "single"],
40
- "semicolon": [true, "always"],
41
- "trailing-comma": [true, "always"],
42
- "triple-equals": true,
43
- "variable-name": false,
44
- "directive-selector": [true, "attribute", "", "camelCase"],
45
- "directive-class-suffix": true,
46
- "component-selector": [true, "element", "", "kebab-case"],
47
- "component-class-suffix": true,
48
- "use-input-property-decorator": true,
49
- "use-output-property-decorator": true,
50
- "use-host-property-decorator": true,
51
- "no-input-rename": false,
52
- "no-output-rename": false,
53
- "use-pipe-transform-interface": true,
54
- "rxjs-collapse-imports": true,
55
- "rxjs-pipeable-operators-only": true,
56
- "rxjs-no-static-observable-methods": true,
57
- "rxjs-proper-imports": true
58
- },
59
- "jsRules": {
60
- "align": [true,
61
- "parameters",
62
- "statements"
63
- ],
64
- "class-name": true,
65
- "curly": false,
66
- "eofline": true,
67
- "forin": true,
68
- "indent": [true, "spaces"],
69
- "jsdoc-format": true,
70
- "label-position": true,
71
- "max-line-length": [true, 5000],
72
- "new-parens": true,
73
- "no-arg": true,
74
- "no-bitwise": false,
75
- "no-conditional-assignment": false,
76
- "no-consecutive-blank-lines": [true],
77
- "no-console": false,
78
- "no-construct": true,
79
- "no-debugger": true,
80
- "no-duplicate-variable": false,
81
- "no-empty": true,
82
- "no-eval": true,
83
- "no-reference": true,
84
- "no-shadowed-variable": true,
85
- "no-string-literal": false,
86
- "no-switch-case-fall-through": false,
87
- "no-trailing-whitespace": true,
88
- "no-unused-expression": true,
89
- "no-use-before-declare": false,
90
- "object-literal-sort-keys": false,
91
- "one-line": [true,
92
- "check-catch",
93
- "check-else",
94
- "check-finally",
95
- "check-open-brace",
96
- "check-whitespace"
97
- ],
98
- "one-variable-per-declaration": [true, "ignore-for-loop"],
99
- "quotemark": [true, "double", "avoid-escape"],
100
- "radix": false,
101
- "semicolon": [true, "always"],
102
- "switch-default": true,
103
- "trailing-comma": [true, "always"],
104
- "triple-equals": [true, "allow-null-check"],
105
- "use-isnan": true,
106
- "variable-name": [true,
107
- "ban-keywords",
108
- "check-format",
109
- "allow-pascal-case"
110
- ],
111
- "whitespace": [true,
112
- "check-branch",
113
- "check-decl",
114
- "check-operator",
115
- "check-separator",
116
- "check-type",
117
- "check-typecast"
118
- ]
119
- }
120
- }
package/utils.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * This barrel file provides the export for the utilities provided by the project and the seed.
3
- */
4
- export * from './utils/project.utils';
5
- export * from './utils/seed.utils';