upd (cli): repos bump
This commit is contained in:
parent
51f50141ab
commit
b55204ee61
@ -27,7 +27,7 @@
|
|||||||
"prettier": "^3.3.2",
|
"prettier": "^3.3.2",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "^5.4.5"
|
||||||
},
|
},
|
||||||
"description": "CLI to scaffold a preview for Rage-FW",
|
"description": "CLI to scaffold a preview for Rage FW",
|
||||||
"keywords": ["create-rage-fw","ragefw-cli", "ragefw", "rage-fw", "ragemp", "rage:mp", "rage", "gta5"],
|
"keywords": ["create-rage-fw","ragefw-cli", "ragefw", "rage-fw", "ragemp", "rage:mp", "rage", "gta5"],
|
||||||
"author": "Entity Seven Group",
|
"author": "Entity Seven Group",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
|
@ -3,9 +3,22 @@ import { input, select } from '@inquirer/prompts'
|
|||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import { cloneBranch } from '../utils/cloner'
|
import { cloneBranch } from '../utils/cloner'
|
||||||
|
|
||||||
|
const choices = {
|
||||||
|
'react-18': {
|
||||||
|
name: 'React 18',
|
||||||
|
value: 'react-18',
|
||||||
|
description: 'React 18 + TypeScript (Vite) as a front-end',
|
||||||
|
},
|
||||||
|
'svelte-5': {
|
||||||
|
name: 'Svelte 5',
|
||||||
|
value: 'svelte-5',
|
||||||
|
description: 'Svelte 5 + TypeScript (Vite) as a front-end',
|
||||||
|
},
|
||||||
|
} as const
|
||||||
|
|
||||||
export async function initProject() {
|
export async function initProject() {
|
||||||
let folder
|
let folder: string | undefined
|
||||||
let framework
|
let framework: keyof typeof choices | undefined
|
||||||
|
|
||||||
if (!folder) {
|
if (!folder) {
|
||||||
folder = await input({
|
folder = await input({
|
||||||
@ -21,23 +34,17 @@ export async function initProject() {
|
|||||||
message: c.gray('Select front-end:'),
|
message: c.gray('Select front-end:'),
|
||||||
default: 'react-18',
|
default: 'react-18',
|
||||||
loop: true,
|
loop: true,
|
||||||
choices: [
|
choices: Object.values(choices),
|
||||||
{
|
|
||||||
name: 'React 18',
|
|
||||||
value: 'react-18',
|
|
||||||
description: 'React 18 + TypeScript (Vite) as a front-end',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log(c.gray('Front-end:'), framework)
|
console.log(c.gray('Front-end:'), choices[framework].name)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
c.gray('\nScaffolding template project into'),
|
c.gray('\nScaffolding template project into'),
|
||||||
folder,
|
folder,
|
||||||
c.gray('with'),
|
c.gray('with'),
|
||||||
framework,
|
choices[framework].name,
|
||||||
c.gray('as a front-end..'),
|
c.gray('as a front-end..'),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -50,12 +57,12 @@ export async function initProject() {
|
|||||||
console.log(c.gray('Scaffolded project into'), folder)
|
console.log(c.gray('Scaffolded project into'), folder)
|
||||||
console.log(
|
console.log(
|
||||||
c.gray(
|
c.gray(
|
||||||
`Project was created ar dir: ${path.join(process.cwd(), folder)}`,
|
`Project was created in: ${path.join(process.cwd(), folder)}`,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
console.log(c.red('Error occured: \n', e))
|
console.log(c.red('Error occurred: \n', e))
|
||||||
console.log(c.red('Please open an issue if you see this'))
|
console.log(c.red('Please open an issue if you see this'))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@ const choices = {
|
|||||||
} as const
|
} as const
|
||||||
|
|
||||||
export async function testRpc() {
|
export async function testRpc() {
|
||||||
let folder
|
let folder: string | undefined
|
||||||
let framework
|
let framework: keyof typeof choices | undefined
|
||||||
|
|
||||||
if (!folder) {
|
if (!folder) {
|
||||||
folder = await input({
|
folder = await input({
|
||||||
@ -37,7 +37,7 @@ export async function testRpc() {
|
|||||||
choices: Object.values(choices),
|
choices: Object.values(choices),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log(c.gray('Front-end:'), framework)
|
console.log(c.gray('Front-end:'), choices[framework].name)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
@ -45,7 +45,7 @@ export async function testRpc() {
|
|||||||
folder,
|
folder,
|
||||||
c.gray('with'),
|
c.gray('with'),
|
||||||
choices[framework].name,
|
choices[framework].name,
|
||||||
c.gray('as a frontend..'),
|
c.gray('as a frontend'),
|
||||||
)
|
)
|
||||||
|
|
||||||
cloneBranch(
|
cloneBranch(
|
||||||
@ -62,7 +62,7 @@ export async function testRpc() {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
console.log(c.red('Error occured: \n', e))
|
console.log(c.red('Error occurred: \n', e))
|
||||||
console.log(c.red('Please open an issue if you see this'))
|
console.log(c.red('Please open an issue if you see this'))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"publish": "lerna publish --force-publish",
|
"publish": "lerna publish --force-publish",
|
||||||
"build": "lerna run build",
|
"build": "lerna run build",
|
||||||
"lint": "eslint --c .eslintrc.yaml --ext .ts client/ server/ shared-types/",
|
"lint": "eslint --c .eslintrc.yaml --ext .ts client/ server/ shared-types/",
|
||||||
|
|
||||||
"rebuild:browser": "cd browser && pnpm build",
|
"rebuild:browser": "cd browser && pnpm build",
|
||||||
"rebuild:client": "cd client && pnpm build",
|
"rebuild:client": "cd client && pnpm build",
|
||||||
"rebuild:server": "cd server && pnpm build",
|
"rebuild:server": "cd server && pnpm build",
|
||||||
@ -14,9 +13,10 @@
|
|||||||
"@ragempcommunity/types-cef": "^2.1.8",
|
"@ragempcommunity/types-cef": "^2.1.8",
|
||||||
"@ragempcommunity/types-client": "^2.1.8",
|
"@ragempcommunity/types-client": "^2.1.8",
|
||||||
"@ragempcommunity/types-server": "^2.1.8",
|
"@ragempcommunity/types-server": "^2.1.8",
|
||||||
|
"@types/node": "^22.8.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
||||||
"@typescript-eslint/parser": "^7.13.0",
|
"@typescript-eslint/parser": "^7.13.0",
|
||||||
"@types/node": "^22.8.1",
|
"cli": "^1.0.1",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"lerna": "^8.1.3",
|
"lerna": "^8.1.3",
|
||||||
"prettier": "^3.3.1",
|
"prettier": "^3.3.1",
|
||||||
|
6601
pnpm-lock.yaml
generated
Normal file
6601
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user