upd (cli): repos bump
This commit is contained in:
parent
51f50141ab
commit
b55204ee61
@ -27,7 +27,7 @@
|
||||
"prettier": "^3.3.2",
|
||||
"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"],
|
||||
"author": "Entity Seven Group",
|
||||
"contributors": [
|
||||
|
@ -3,9 +3,22 @@ import { input, select } from '@inquirer/prompts'
|
||||
import path from 'node:path'
|
||||
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() {
|
||||
let folder
|
||||
let framework
|
||||
let folder: string | undefined
|
||||
let framework: keyof typeof choices | undefined
|
||||
|
||||
if (!folder) {
|
||||
folder = await input({
|
||||
@ -21,23 +34,17 @@ export async function initProject() {
|
||||
message: c.gray('Select front-end:'),
|
||||
default: 'react-18',
|
||||
loop: true,
|
||||
choices: [
|
||||
{
|
||||
name: 'React 18',
|
||||
value: 'react-18',
|
||||
description: 'React 18 + TypeScript (Vite) as a front-end',
|
||||
},
|
||||
],
|
||||
choices: Object.values(choices),
|
||||
})
|
||||
} else {
|
||||
console.log(c.gray('Front-end:'), framework)
|
||||
console.log(c.gray('Front-end:'), choices[framework].name)
|
||||
}
|
||||
|
||||
console.log(
|
||||
c.gray('\nScaffolding template project into'),
|
||||
folder,
|
||||
c.gray('with'),
|
||||
framework,
|
||||
choices[framework].name,
|
||||
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(
|
||||
`Project was created ar dir: ${path.join(process.cwd(), folder)}`,
|
||||
`Project was created in: ${path.join(process.cwd(), folder)}`,
|
||||
),
|
||||
)
|
||||
})
|
||||
.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'))
|
||||
})
|
||||
}
|
||||
|
@ -17,8 +17,8 @@ const choices = {
|
||||
} as const
|
||||
|
||||
export async function testRpc() {
|
||||
let folder
|
||||
let framework
|
||||
let folder: string | undefined
|
||||
let framework: keyof typeof choices | undefined
|
||||
|
||||
if (!folder) {
|
||||
folder = await input({
|
||||
@ -37,7 +37,7 @@ export async function testRpc() {
|
||||
choices: Object.values(choices),
|
||||
})
|
||||
} else {
|
||||
console.log(c.gray('Front-end:'), framework)
|
||||
console.log(c.gray('Front-end:'), choices[framework].name)
|
||||
}
|
||||
|
||||
console.log(
|
||||
@ -45,7 +45,7 @@ export async function testRpc() {
|
||||
folder,
|
||||
c.gray('with'),
|
||||
choices[framework].name,
|
||||
c.gray('as a frontend..'),
|
||||
c.gray('as a frontend'),
|
||||
)
|
||||
|
||||
cloneBranch(
|
||||
@ -62,7 +62,7 @@ export async function testRpc() {
|
||||
)
|
||||
})
|
||||
.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'))
|
||||
})
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
"publish": "lerna publish --force-publish",
|
||||
"build": "lerna run build",
|
||||
"lint": "eslint --c .eslintrc.yaml --ext .ts client/ server/ shared-types/",
|
||||
|
||||
"rebuild:browser": "cd browser && pnpm build",
|
||||
"rebuild:client": "cd client && pnpm build",
|
||||
"rebuild:server": "cd server && pnpm build",
|
||||
@ -14,9 +13,10 @@
|
||||
"@ragempcommunity/types-cef": "^2.1.8",
|
||||
"@ragempcommunity/types-client": "^2.1.8",
|
||||
"@ragempcommunity/types-server": "^2.1.8",
|
||||
"@types/node": "^22.8.1",
|
||||
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
||||
"@typescript-eslint/parser": "^7.13.0",
|
||||
"@types/node": "^22.8.1",
|
||||
"cli": "^1.0.1",
|
||||
"eslint": "^8.56.0",
|
||||
"lerna": "^8.1.3",
|
||||
"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