@adonisjs/assembler 5.9.2 → 5.9.4

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 (66) hide show
  1. package/build/commands/Build.d.ts +37 -37
  2. package/build/commands/Build.js +138 -138
  3. package/build/commands/Invoke.d.ts +34 -34
  4. package/build/commands/Invoke.js +234 -221
  5. package/build/commands/Make/Base.d.ts +30 -30
  6. package/build/commands/Make/Base.js +75 -75
  7. package/build/commands/Make/Command.d.ts +35 -35
  8. package/build/commands/Make/Command.js +82 -82
  9. package/build/commands/Make/Controller.d.ts +37 -37
  10. package/build/commands/Make/Controller.js +89 -89
  11. package/build/commands/Make/Exception.d.ts +32 -32
  12. package/build/commands/Make/Exception.js +75 -75
  13. package/build/commands/Make/Listener.d.ts +30 -30
  14. package/build/commands/Make/Listener.js +70 -70
  15. package/build/commands/Make/Middleware.d.ts +31 -31
  16. package/build/commands/Make/Middleware.js +87 -87
  17. package/build/commands/Make/PreloadFile.d.ts +38 -38
  18. package/build/commands/Make/PreloadFile.js +157 -157
  19. package/build/commands/Make/Provider.d.ts +31 -31
  20. package/build/commands/Make/Provider.js +114 -114
  21. package/build/commands/Make/Suite.d.ts +41 -41
  22. package/build/commands/Make/Suite.js +120 -120
  23. package/build/commands/Make/Test.d.ts +35 -35
  24. package/build/commands/Make/Test.js +96 -96
  25. package/build/commands/Make/Validator.d.ts +31 -31
  26. package/build/commands/Make/Validator.js +71 -71
  27. package/build/commands/Make/View.d.ts +30 -30
  28. package/build/commands/Make/View.js +70 -70
  29. package/build/commands/Serve.d.ts +33 -33
  30. package/build/commands/Serve.js +112 -112
  31. package/build/commands/Test.d.ts +57 -57
  32. package/build/commands/Test.js +159 -159
  33. package/build/commands/TypeCheck.d.ts +16 -16
  34. package/build/commands/TypeCheck.js +85 -85
  35. package/build/config/paths.d.ts +7 -7
  36. package/build/config/paths.js +18 -18
  37. package/build/register.d.ts +1 -1
  38. package/build/register.js +15 -15
  39. package/build/src/AssetsBundler/index.d.ts +76 -76
  40. package/build/src/AssetsBundler/index.js +216 -216
  41. package/build/src/Compiler/index.d.ts +62 -62
  42. package/build/src/Compiler/index.js +287 -287
  43. package/build/src/Contracts/index.d.ts +8 -8
  44. package/build/src/Contracts/index.js +10 -10
  45. package/build/src/DevServer/index.d.ts +70 -70
  46. package/build/src/DevServer/index.js +306 -306
  47. package/build/src/EnvParser/index.d.ts +21 -23
  48. package/build/src/EnvParser/index.js +48 -52
  49. package/build/src/HttpServer/index.d.ts +34 -34
  50. package/build/src/HttpServer/index.js +87 -87
  51. package/build/src/Manifest/index.d.ts +32 -32
  52. package/build/src/Manifest/index.js +88 -88
  53. package/build/src/RcFile/index.d.ts +72 -72
  54. package/build/src/RcFile/index.js +174 -174
  55. package/build/src/Test/index.d.ts +75 -75
  56. package/build/src/Test/index.js +346 -346
  57. package/build/src/Test/process.d.ts +22 -22
  58. package/build/src/Test/process.js +68 -68
  59. package/build/src/Ts/index.d.ts +24 -24
  60. package/build/src/Ts/index.js +55 -55
  61. package/build/src/requireHook/index.d.ts +5 -5
  62. package/build/src/requireHook/index.js +28 -28
  63. package/build/src/requireHook/ioc-transformer.d.ts +6 -6
  64. package/build/src/requireHook/ioc-transformer.js +21 -21
  65. package/build/templates/tests/bootstrap.txt +4 -4
  66. package/package.json +11 -11
@@ -1,33 +1,33 @@
1
- import { BaseCommand } from '@adonisjs/core/build/standalone';
2
- /**
3
- * Compile typescript project to Javascript and start
4
- * the HTTP server
5
- */
6
- export default class Serve extends BaseCommand {
7
- static commandName: string;
8
- static description: string;
9
- static settings: {
10
- stayAlive: boolean;
11
- };
12
- /**
13
- * Bundle frontend assets. Defaults to true
14
- */
15
- assets: boolean;
16
- /**
17
- * Allows watching for file changes
18
- */
19
- watch: boolean;
20
- /**
21
- * Detect changes by polling files
22
- */
23
- poll: boolean;
24
- /**
25
- * Arguments to pass to the `node` binary
26
- */
27
- nodeArgs: string[];
28
- /**
29
- * Arguments to pass to the `encore` binary
30
- */
31
- encoreArgs: string[];
32
- run(): Promise<void>;
33
- }
1
+ import { BaseCommand } from '@adonisjs/core/build/standalone';
2
+ /**
3
+ * Compile typescript project to Javascript and start
4
+ * the HTTP server
5
+ */
6
+ export default class Serve extends BaseCommand {
7
+ static commandName: string;
8
+ static description: string;
9
+ static settings: {
10
+ stayAlive: boolean;
11
+ };
12
+ /**
13
+ * Bundle frontend assets. Defaults to true
14
+ */
15
+ assets: boolean;
16
+ /**
17
+ * Allows watching for file changes
18
+ */
19
+ watch: boolean;
20
+ /**
21
+ * Detect changes by polling files
22
+ */
23
+ poll: boolean;
24
+ /**
25
+ * Arguments to pass to the `node` binary
26
+ */
27
+ nodeArgs: string[];
28
+ /**
29
+ * Arguments to pass to the `encore` binary
30
+ */
31
+ encoreArgs: string[];
32
+ run(): Promise<void>;
33
+ }
@@ -1,112 +1,112 @@
1
- "use strict";
2
- /*
3
- * @adonisjs/assembler
4
- *
5
- * (c) Harminder Virk <virk@adonisjs.com>
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
10
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- var desc = Object.getOwnPropertyDescriptor(m, k);
13
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
- desc = { enumerable: true, get: function() { return m[k]; } };
15
- }
16
- Object.defineProperty(o, k2, desc);
17
- }) : (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- o[k2] = m[k];
20
- }));
21
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
- Object.defineProperty(o, "default", { enumerable: true, value: v });
23
- }) : function(o, v) {
24
- o["default"] = v;
25
- });
26
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
27
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
29
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
- return c > 3 && r && Object.defineProperty(target, key, r), r;
31
- };
32
- var __importStar = (this && this.__importStar) || function (mod) {
33
- if (mod && mod.__esModule) return mod;
34
- var result = {};
35
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
36
- __setModuleDefault(result, mod);
37
- return result;
38
- };
39
- var __metadata = (this && this.__metadata) || function (k, v) {
40
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
41
- };
42
- Object.defineProperty(exports, "__esModule", { value: true });
43
- const standalone_1 = require("@adonisjs/core/build/standalone");
44
- /**
45
- * Compile typescript project to Javascript and start
46
- * the HTTP server
47
- */
48
- class Serve extends standalone_1.BaseCommand {
49
- constructor() {
50
- super(...arguments);
51
- /**
52
- * Bundle frontend assets. Defaults to true
53
- */
54
- this.assets = true;
55
- /**
56
- * Arguments to pass to the `node` binary
57
- */
58
- this.nodeArgs = [];
59
- /**
60
- * Arguments to pass to the `encore` binary
61
- */
62
- this.encoreArgs = [];
63
- }
64
- async run() {
65
- const { DevServer } = await Promise.resolve().then(() => __importStar(require('../src/DevServer')));
66
- try {
67
- if (this.watch) {
68
- await new DevServer(this.application.appRoot, this.nodeArgs, this.encoreArgs, this.assets, this.logger).watch(this.poll);
69
- }
70
- else {
71
- await new DevServer(this.application.appRoot, this.nodeArgs, this.encoreArgs, this.assets, this.logger).start();
72
- }
73
- }
74
- catch (error) {
75
- this.logger.fatal(error);
76
- }
77
- }
78
- }
79
- Serve.commandName = 'serve';
80
- Serve.description = 'Start the AdonisJS HTTP server, along with the file watcher. Also starts the webpack dev server when webpack encore is installed';
81
- Serve.settings = {
82
- stayAlive: true,
83
- };
84
- __decorate([
85
- standalone_1.flags.boolean({
86
- description: 'Start webpack dev server when encore is installed. Use "--no-assets" to disable',
87
- }),
88
- __metadata("design:type", Boolean)
89
- ], Serve.prototype, "assets", void 0);
90
- __decorate([
91
- standalone_1.flags.boolean({
92
- description: 'Watch for file changes and re-start the HTTP server on change',
93
- alias: 'w',
94
- }),
95
- __metadata("design:type", Boolean)
96
- ], Serve.prototype, "watch", void 0);
97
- __decorate([
98
- standalone_1.flags.boolean({
99
- description: 'Detect file changes by polling files instead of listening to filesystem events',
100
- alias: 'p',
101
- }),
102
- __metadata("design:type", Boolean)
103
- ], Serve.prototype, "poll", void 0);
104
- __decorate([
105
- standalone_1.flags.array({ description: 'CLI options to pass to the node command line' }),
106
- __metadata("design:type", Array)
107
- ], Serve.prototype, "nodeArgs", void 0);
108
- __decorate([
109
- standalone_1.flags.array({ description: 'CLI options to pass to the encore command line' }),
110
- __metadata("design:type", Array)
111
- ], Serve.prototype, "encoreArgs", void 0);
112
- exports.default = Serve;
1
+ "use strict";
2
+ /*
3
+ * @adonisjs/assembler
4
+ *
5
+ * (c) Harminder Virk <virk@adonisjs.com>
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
27
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
29
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31
+ };
32
+ var __importStar = (this && this.__importStar) || function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ var __metadata = (this && this.__metadata) || function (k, v) {
40
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ const standalone_1 = require("@adonisjs/core/build/standalone");
44
+ /**
45
+ * Compile typescript project to Javascript and start
46
+ * the HTTP server
47
+ */
48
+ class Serve extends standalone_1.BaseCommand {
49
+ constructor() {
50
+ super(...arguments);
51
+ /**
52
+ * Bundle frontend assets. Defaults to true
53
+ */
54
+ this.assets = true;
55
+ /**
56
+ * Arguments to pass to the `node` binary
57
+ */
58
+ this.nodeArgs = [];
59
+ /**
60
+ * Arguments to pass to the `encore` binary
61
+ */
62
+ this.encoreArgs = [];
63
+ }
64
+ async run() {
65
+ const { DevServer } = await Promise.resolve().then(() => __importStar(require('../src/DevServer')));
66
+ try {
67
+ if (this.watch) {
68
+ await new DevServer(this.application.appRoot, this.nodeArgs, this.encoreArgs, this.assets, this.logger).watch(this.poll);
69
+ }
70
+ else {
71
+ await new DevServer(this.application.appRoot, this.nodeArgs, this.encoreArgs, this.assets, this.logger).start();
72
+ }
73
+ }
74
+ catch (error) {
75
+ this.logger.fatal(error);
76
+ }
77
+ }
78
+ }
79
+ Serve.commandName = 'serve';
80
+ Serve.description = 'Start the AdonisJS HTTP server, along with the file watcher. Also starts the webpack dev server when webpack encore is installed';
81
+ Serve.settings = {
82
+ stayAlive: true,
83
+ };
84
+ __decorate([
85
+ standalone_1.flags.boolean({
86
+ description: 'Start webpack dev server when encore is installed. Use "--no-assets" to disable',
87
+ }),
88
+ __metadata("design:type", Boolean)
89
+ ], Serve.prototype, "assets", void 0);
90
+ __decorate([
91
+ standalone_1.flags.boolean({
92
+ description: 'Watch for file changes and re-start the HTTP server on change',
93
+ alias: 'w',
94
+ }),
95
+ __metadata("design:type", Boolean)
96
+ ], Serve.prototype, "watch", void 0);
97
+ __decorate([
98
+ standalone_1.flags.boolean({
99
+ description: 'Detect file changes by polling files instead of listening to filesystem events',
100
+ alias: 'p',
101
+ }),
102
+ __metadata("design:type", Boolean)
103
+ ], Serve.prototype, "poll", void 0);
104
+ __decorate([
105
+ standalone_1.flags.array({ description: 'CLI options to pass to the node command line' }),
106
+ __metadata("design:type", Array)
107
+ ], Serve.prototype, "nodeArgs", void 0);
108
+ __decorate([
109
+ standalone_1.flags.array({ description: 'CLI options to pass to the encore command line' }),
110
+ __metadata("design:type", Array)
111
+ ], Serve.prototype, "encoreArgs", void 0);
112
+ exports.default = Serve;
@@ -1,57 +1,57 @@
1
- import { BaseCommand } from '@adonisjs/core/build/standalone';
2
- /**
3
- * Run tests
4
- */
5
- export default class Test extends BaseCommand {
6
- static commandName: string;
7
- static description: string;
8
- static settings: {
9
- stayAlive: boolean;
10
- };
11
- suites: string[];
12
- /**
13
- * Allows watching for file changes
14
- */
15
- files: string[];
16
- /**
17
- * Allows watching for file changes
18
- */
19
- watch: boolean;
20
- /**
21
- * Detect changes by polling files
22
- */
23
- poll: boolean;
24
- /**
25
- * Arguments to pass to the `node` binary
26
- */
27
- nodeArgs: string[];
28
- /**
29
- * Filter by tags
30
- */
31
- tags: string[];
32
- /**
33
- * Filter by tags
34
- */
35
- ignoreTags: string[];
36
- /**
37
- * Filter by test title
38
- */
39
- tests: string[];
40
- /**
41
- * Filter by group title
42
- */
43
- groups: string[];
44
- /**
45
- * Customize tests timeout
46
- */
47
- timeout: number;
48
- /**
49
- * Force exit the tests runner
50
- */
51
- forceExit: boolean;
52
- /**
53
- * Convert command flags to test filters
54
- */
55
- private getTestFilters;
56
- run(): Promise<void>;
57
- }
1
+ import { BaseCommand } from '@adonisjs/core/build/standalone';
2
+ /**
3
+ * Run tests
4
+ */
5
+ export default class Test extends BaseCommand {
6
+ static commandName: string;
7
+ static description: string;
8
+ static settings: {
9
+ stayAlive: boolean;
10
+ };
11
+ suites: string[];
12
+ /**
13
+ * Allows watching for file changes
14
+ */
15
+ files: string[];
16
+ /**
17
+ * Allows watching for file changes
18
+ */
19
+ watch: boolean;
20
+ /**
21
+ * Detect changes by polling files
22
+ */
23
+ poll: boolean;
24
+ /**
25
+ * Arguments to pass to the `node` binary
26
+ */
27
+ nodeArgs: string[];
28
+ /**
29
+ * Filter by tags
30
+ */
31
+ tags: string[];
32
+ /**
33
+ * Filter by tags
34
+ */
35
+ ignoreTags: string[];
36
+ /**
37
+ * Filter by test title
38
+ */
39
+ tests: string[];
40
+ /**
41
+ * Filter by group title
42
+ */
43
+ groups: string[];
44
+ /**
45
+ * Customize tests timeout
46
+ */
47
+ timeout: number;
48
+ /**
49
+ * Force exit the tests runner
50
+ */
51
+ forceExit: boolean;
52
+ /**
53
+ * Convert command flags to test filters
54
+ */
55
+ private getTestFilters;
56
+ run(): Promise<void>;
57
+ }