create-adonisjs 1.2.0 → 1.2.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.
- package/README.md +3 -6
- package/build/commands/main.js +9 -7
- package/package.json +15 -4
package/README.md
CHANGED
|
@@ -3,8 +3,7 @@ Scaffold a new AdonisJS application using starter kits
|
|
|
3
3
|
|
|
4
4
|
<br />
|
|
5
5
|
|
|
6
|
-
[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url]
|
|
7
|
-
|
|
6
|
+
[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url]
|
|
8
7
|
## Starter kits
|
|
9
8
|
|
|
10
9
|
You can use between one of the following official starter kits, or bring your own using the `--kit` flag.
|
|
@@ -103,10 +102,8 @@ create-adonisjs is open-sourced software licensed under the [MIT license](LICENS
|
|
|
103
102
|
|
|
104
103
|
[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/create-adonisjs/test.yml?style=for-the-badge
|
|
105
104
|
[gh-workflow-url]: https://github.com/adonisjs/create-adonisjs/actions/workflows/test.yml 'Github action'
|
|
106
|
-
[npm-image]: https://img.shields.io/npm/v
|
|
107
|
-
[npm-url]: https://www.npmjs.com/package
|
|
105
|
+
[npm-image]: https://img.shields.io/npm/v/create-adonisjs/latest.svg?style=for-the-badge&logo=npm
|
|
106
|
+
[npm-url]: https://www.npmjs.com/package/create-adonisjs/v/latest 'npm'
|
|
108
107
|
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
109
108
|
[license-url]: LICENSE.md
|
|
110
109
|
[license-image]: https://img.shields.io/github/license/adonisjs/create-adonisjs?style=for-the-badge
|
|
111
|
-
[snyk-image]: https://img.shields.io/snyk/vulnerabilities/github/adonisjs/create-adonisjs?label=Snyk%20Vulnerabilities&style=for-the-badge
|
|
112
|
-
[snyk-url]: https://snyk.io/test/github/adonisjs/create-adonisjs?targetFile=package.json 'snyk'
|
package/build/commands/main.js
CHANGED
|
@@ -17,8 +17,8 @@ import { cwd } from 'node:process';
|
|
|
17
17
|
import { existsSync } from 'node:fs';
|
|
18
18
|
import gradient from 'gradient-string';
|
|
19
19
|
import { downloadTemplate } from 'giget';
|
|
20
|
-
import { isAbsolute, join, relative } from 'node:path';
|
|
21
20
|
import detectPackageManager from 'which-pm-runs';
|
|
21
|
+
import { isAbsolute, join, relative } from 'node:path';
|
|
22
22
|
import { BaseCommand, args, flags } from '@adonisjs/ace';
|
|
23
23
|
import { copyFile, readFile, unlink, writeFile } from 'node:fs/promises';
|
|
24
24
|
import { templates } from '../src/templates.js';
|
|
@@ -208,24 +208,26 @@ export class CreateNewApp extends BaseCommand {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
__decorate([
|
|
211
|
-
args.string({ description: 'Destination directory',
|
|
211
|
+
args.string({ description: 'Destination directory', required: false })
|
|
212
212
|
], CreateNewApp.prototype, "destination", void 0);
|
|
213
213
|
__decorate([
|
|
214
|
-
flags.string({
|
|
214
|
+
flags.string({
|
|
215
|
+
description: 'Define path to a custom git repository',
|
|
216
|
+
alias: 'K',
|
|
217
|
+
})
|
|
215
218
|
], CreateNewApp.prototype, "kit", void 0);
|
|
216
219
|
__decorate([
|
|
217
220
|
flags.string({
|
|
218
221
|
description: 'Pass the authentication token to download private repositories',
|
|
219
|
-
name: 'token',
|
|
220
222
|
alias: 't',
|
|
221
223
|
})
|
|
222
224
|
], CreateNewApp.prototype, "token", void 0);
|
|
223
225
|
__decorate([
|
|
224
|
-
flags.boolean({ description: 'Skip packages installation'
|
|
226
|
+
flags.boolean({ description: 'Skip packages installation' })
|
|
225
227
|
], CreateNewApp.prototype, "skipInstall", void 0);
|
|
226
228
|
__decorate([
|
|
227
|
-
flags.boolean({ description: 'Skip git initialization'
|
|
229
|
+
flags.boolean({ description: 'Skip git initialization' })
|
|
228
230
|
], CreateNewApp.prototype, "skipGitInit", void 0);
|
|
229
231
|
__decorate([
|
|
230
|
-
flags.string({ description: 'Explicitly define the package manager to npm',
|
|
232
|
+
flags.string({ description: 'Explicitly define the package manager to npm', flagName: 'pkg' })
|
|
231
233
|
], CreateNewApp.prototype, "packageManager", void 0);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-adonisjs",
|
|
3
3
|
"description": "Scaffold new AdonisJS applications using starter kits",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build/index.js"
|
|
13
13
|
],
|
|
14
14
|
"bin": {
|
|
15
|
-
"create-adonisjs": "
|
|
15
|
+
"create-adonisjs": "build/bin/run.js"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": "./build/index.js"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@japa/assert": "^2.0.0-1",
|
|
42
42
|
"@japa/file-system": "^2.0.0-1",
|
|
43
43
|
"@japa/runner": "^3.0.0-5",
|
|
44
|
-
"@swc/core": "
|
|
44
|
+
"@swc/core": "1.3.82",
|
|
45
45
|
"@types/gradient-string": "^1.1.2",
|
|
46
46
|
"@types/node": "^20.4.1",
|
|
47
47
|
"@types/which-pm-runs": "^1.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@adonisjs/ace": "12.3.1-8",
|
|
59
|
-
"execa": "^
|
|
59
|
+
"execa": "^8.0.1",
|
|
60
60
|
"giget": "^1.1.2",
|
|
61
61
|
"gradient-string": "^2.0.2",
|
|
62
62
|
"which-pm-runs": "^1.1.0"
|
|
@@ -67,6 +67,17 @@
|
|
|
67
67
|
"adonisjs",
|
|
68
68
|
"create-adonisjs-app"
|
|
69
69
|
],
|
|
70
|
+
"directories": {
|
|
71
|
+
"test": "tests"
|
|
72
|
+
},
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/adonisjs/create-adonisjs.git"
|
|
76
|
+
},
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/adonisjs/create-adonisjs/issues"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://github.com/adonisjs/create-adonisjs#readme",
|
|
70
81
|
"eslintConfig": {
|
|
71
82
|
"extends": "@adonisjs/eslint-config/package"
|
|
72
83
|
},
|