@adonisjs/assembler 5.6.0 → 5.6.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.
@@ -115,6 +115,7 @@ class Configure extends standalone_1.BaseCommand {
115
115
  },
116
116
  ],
117
117
  });
118
+ rcFile.addProvider('@japa/preset-adonis/TestsProvider');
118
119
  rcFile.commit();
119
120
  sink_1.logger.action('update').succeeded('.adonisrc.json');
120
121
  /**
@@ -132,6 +133,25 @@ class Configure extends standalone_1.BaseCommand {
132
133
  testEnvFile.commit();
133
134
  sink_1.logger.action('create').succeeded('.env.test');
134
135
  }
136
+ /**
137
+ * Update "tsconfig.json"
138
+ */
139
+ const tsConfig = new sink_1.files.JsonFile(this.application.appRoot, 'tsconfig.json');
140
+ const existingTypes = tsConfig.get('compilerOptions.types') || [];
141
+ if (!existingTypes.includes('@japa/preset-adonis/build/adonis-typings')) {
142
+ existingTypes.push('@japa/preset-adonis/build/adonis-typings');
143
+ }
144
+ tsConfig.set('compilerOptions.types', existingTypes);
145
+ tsConfig.commit();
146
+ sink_1.logger.action('update').succeeded('tsconfig.json');
147
+ /**
148
+ * Set additional .env variables for "web" boilerplate
149
+ */
150
+ if (this.appType === 'web') {
151
+ testEnvFile.add(['ASSETS_DRIVER=fake', 'SESSION_DRIVER=memory']);
152
+ }
153
+ testEnvFile.commit();
154
+ sink_1.logger.action('create').succeeded('.env.test');
135
155
  /**
136
156
  * Install required dependencies
137
157
  */
@@ -44,6 +44,10 @@ export declare class TestsServer {
44
44
  */
45
45
  private isTestFile;
46
46
  constructor(appRoot: string, filters: JapaFlags, nodeArgs?: string[], logger?: typeof uiLogger);
47
+ /**
48
+ * Clear terminal screen
49
+ */
50
+ private clearScreen;
47
51
  /**
48
52
  * Returns the glob paths for test suites. Returns all if no
49
53
  * filter is applied. Otherwise only the filtered suites
@@ -79,6 +79,12 @@ class TestsServer {
79
79
  });
80
80
  };
81
81
  }
82
+ /**
83
+ * Clear terminal screen
84
+ */
85
+ clearScreen() {
86
+ process.stdout.write('\u001Bc');
87
+ }
82
88
  /**
83
89
  * Returns the glob paths for test suites. Returns all if no
84
90
  * filter is applied. Otherwise only the filtered suites
@@ -129,6 +135,7 @@ class TestsServer {
129
135
  if (this.busy) {
130
136
  return;
131
137
  }
138
+ this.clearScreen();
132
139
  const filters = { ...this.filters };
133
140
  /**
134
141
  * Overwrite files filter when a specific file path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/assembler",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
4
4
  "description": "Core commands to compiler and build AdonisJs project",
5
5
  "main": "build/ace-manifest.json",
6
6
  "files": [
@@ -45,7 +45,7 @@
45
45
  "homepage": "https://github.com/adonisjs/assembler#readme",
46
46
  "devDependencies": {
47
47
  "@adonisjs/ace": "^11.2.3",
48
- "@adonisjs/core": "^5.6.2",
48
+ "@adonisjs/core": "^5.7.3",
49
49
  "@adonisjs/mrm-preset": "^5.0.3",
50
50
  "@poppinss/dev-utils": "^2.0.3",
51
51
  "@types/node": "^17.0.23",
@@ -54,7 +54,7 @@
54
54
  "cross-env": "^7.0.3",
55
55
  "cz-conventional-changelog": "^3.3.0",
56
56
  "del-cli": "^4.0.1",
57
- "eslint": "^8.12.0",
57
+ "eslint": "^8.13.0",
58
58
  "eslint-config-prettier": "^8.5.0",
59
59
  "eslint-plugin-adonis": "^2.1.0",
60
60
  "eslint-plugin-prettier": "^4.0.0",
@@ -89,14 +89,14 @@
89
89
  "anyBranch": false
90
90
  },
91
91
  "dependencies": {
92
- "@adonisjs/application": "^5.2.1",
93
- "@adonisjs/env": "^3.0.8",
92
+ "@adonisjs/application": "^5.2.3",
93
+ "@adonisjs/env": "^3.0.9",
94
94
  "@adonisjs/ioc-transformer": "^2.3.3",
95
95
  "@adonisjs/require-ts": "^2.0.11",
96
96
  "@adonisjs/sink": "^5.2.2",
97
97
  "@poppinss/chokidar-ts": "^3.3.5",
98
98
  "@poppinss/cliui": "^3.0.2",
99
- "@poppinss/utils": "^4.0.3",
99
+ "@poppinss/utils": "^4.0.4",
100
100
  "cpy": "^8.1.2",
101
101
  "emittery": "^0.10.2",
102
102
  "execa": "^5.1.1",