1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-Graviton-Editor

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
jakefile.js 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
marc2332 Отправлено 30.05.2022 15:29 34d26f7
const { task, desc } = require('jake')
const { spawn } = require('child_process')
// Easily run commands
const run = (what, args, where = './') => {
return new Promise((resolve, reject) => {
let proc = spawn(what, args, { cwd: where, stdio: 'inherit', shell: true});
proc.on('close', (code) => code == 0 ? resolve() : reject())
})
}
desc('Run the server in develop mode');
task('dev_server', async function () {
run('pnpm', ['run', '--filter', 'web', 'dev'])
await run('cargo run', [], './server')
});
desc('Run the desktop in develop mode');
task('dev_desktop', async function () {
await run('cargo tauri dev', [], './desktop')
});
desc('Build the desktop');
task('build_desktop', async function () {
await run('cargo tauri build', [], './desktop')
});
desc('Run tests');
task('core_tests', async function () {
await run('cargo', ['nextest', 'run'])
});
task('web_tests', async function () {
await run('pnpm', ['run', '--filter', 'web', 'test'])
});
desc('Format the code');
task('format_core', async function () {
await run('cargo', ['fmt'])
});
task('format_web', async function () {
await run('pnpm', ['run', '--filter', 'web', 'format'])
});
desc('Lint the code');
task('lint_core', async function () {
await run('cargo', ['clippy'])
});

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-Graviton-Editor.git
git@api.gitlife.ru:oschina-mirror/mirrors-Graviton-Editor.git
oschina-mirror
mirrors-Graviton-Editor
mirrors-Graviton-Editor
main