Skip to content

Commit 3d919fc

Browse files
committed
update adonis preset to TS+node20
1 parent ec6f1c3 commit 3d919fc

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

presets/adonis/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Which tags are related to this preset; used for branching the choices on preset wizard
2-
tags: [ 'Javascript' ]
2+
tags: [ 'Typescript' ]
33

44
name: 'AdonisJS'
55

@@ -8,9 +8,8 @@ create:
88
- name: Creating new Adonis Application
99
actions:
1010
- scripts:
11-
- docker pull -q kooldev/node:18
12-
- kool docker kooldev/node:18 npx -y @adonisjs/cli new $CREATE_DIRECTORY
13-
- kool docker kooldev/node:18 npm --prefix=$CREATE_DIRECTORY i @adonisjs/cli
11+
- docker pull -q kooldev/node:20
12+
- kool docker kooldev/node:20 npm init -y adonis-ts-app@latest $CREATE_DIRECTORY
1413

1514
# Preset defines the workflow for installing this preset in the current working directory
1615
preset:

templates/app/node-adonis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
app:
3-
image: kooldev/node:18
4-
command: ["npx", "adonis", "serve", "--dev"]
3+
image: kooldev/node:20
4+
command: ["npm", "run", "dev"]
55
ports:
66
- "${KOOL_APP_PORT:-3333}:3333"
77
environment:

templates/scripts/npm-adonis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ scripts:
44
npx: kool exec app npx
55

66
setup:
7-
- kool docker kooldev/node:18 npm install
7+
- kool docker kooldev/node:20 npm install
88
- kool start

templates/scripts/yarn-adonis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ scripts:
33
yarn: kool exec app yarn
44

55
setup:
6-
- kool docker kooldev/node:18 yarn install
6+
- kool docker kooldev/node:20 yarn install
77
- kool start

0 commit comments

Comments
 (0)