Skip to content

Commit e72ee8c

Browse files
authored
Merge pull request #494 from kool-dev/improvements-node
Improvements to Presets - Node & others
2 parents a1f9b2c + cc6b955 commit e72ee8c

File tree

13 files changed

+40
-19
lines changed

13 files changed

+40
-19
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: [ 'JS' ]
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:

presets/expressjs/config.yml

Lines changed: 1 addition & 1 deletion
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: [ 'JS' ]
2+
tags: [ 'Javascript' ]
33

44
name: 'ExpressJS'
55

presets/golang-cli/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ tags: [ 'Golang' ]
33

44
name: 'CLI App'
55

6+
create:
7+
- name: Creating new Golang CLI Application
8+
actions:
9+
- scripts:
10+
- mkdir -p $CREATE_DIRECTORY
11+
612
# Preset defines the workflow for installing this preset in the current working directory
713
preset:
814
- name: 'Copy basic config files'

presets/golang-cli/kool.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ scripts:
55
- kool run install
66

77
# Runs go CLI with proper version for kool development
8-
go: kool docker --volume=gopath:/go --env='GOOS=$GOOS' golang:1.16.0 go
8+
go: kool docker --volume=cli_gopath:/go --env='GOOS=$GOOS' golang:1.21 go
99

1010
# Compiling cli itself. In case you are on MacOS make sure to have your .env
1111
# file properly setting GOOS=darwin so you will be able to use the binary.
1212
compile: kool run go build -o my-cli
1313
install:
1414
- mv my-cli /usr/local/bin/my-cli
1515
fmt: kool run go fmt ./...
16-
lint: kool docker --volume=gopath:/go golangci/golangci-lint:v1.31.0 golangci-lint run -v
16+
lint: kool docker --volume=cli_gopath:/go golangci/golangci-lint:v1.54.1 golangci-lint run -v

presets/nestjs/config.yml

Lines changed: 2 additions & 2 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: [ 'Typescript' ]
2+
tags: [ 'Typescript', 'Javascript' ]
33

44
name: 'NestJS'
55

@@ -9,7 +9,7 @@ create:
99
actions:
1010
- scripts:
1111
- docker pull -q kooldev/node:20
12-
- kool docker kooldev/node:20 npx -y @nestjs/cli new -l Typescript -p npm $CREATE_DIRECTORY
12+
- recipe: create-nestjs
1313

1414
# Preset defines the workflow for installing this preset in the current working directory
1515
preset:

presets/nextjs/config.yml

Lines changed: 1 addition & 1 deletion
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: [ 'JS' ]
2+
tags: [ 'Javascript' ]
33

44
name: 'NextJS'
55

presets/nodejs/config.yml

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

4-
name: 'Hello World'
4+
name: 'Vanilla Node.js'
55

66
# Create defines the workflow for creating a new Project where this preset can then be installed
77
create:
8-
- name: Creating new Node application
8+
- name: Creating new Node.js application
99
actions:
1010
- scripts:
1111
- mkdir $CREATE_DIRECTORY

presets/nuxtjs/config.yml

Lines changed: 1 addition & 1 deletion
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: [ 'JS' ]
2+
tags: [ 'Javascript' ]
33

44
name: 'NuxtJS'
55

presets/php/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
tags: [ 'PHP' ]
33

44
# Name of the preset
5-
name: 'Hello World (PHP+Nginx)'
5+
name: 'Vanilla PHP (Nginx+PHP-FPM)'
66

77
# Create defines the workflow for creating a new Project where this preset can then be installed
88
create:

recipes/create-nestjs.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
title: "Creating NestJS Application"
2+
3+
actions:
4+
- prompt: 'Which language do you want to use?'
5+
ref: 'node-pick-ts-js'
6+
default: 'Typescript'
7+
options:
8+
- name: 'Typescript'
9+
actions:
10+
- scripts:
11+
- kool docker kooldev/node:20 npx -y @nestjs/cli new -l Typescript -p npm $CREATE_DIRECTORY
12+
- name: 'Javascript'
13+
actions:
14+
- scripts:
15+
- kool docker kooldev/node:20 npx -y @nestjs/cli new -l Javascript -p npm $CREATE_DIRECTORY
16+

0 commit comments

Comments
 (0)