SPB Git

Repository Public

cli.ts 2.4 KB 61 lines typescript

1#!/usr/bin/env node2/**3 * =============================================================================4 *                  SP BOUCHER | SOFTWARE & RESEARCH5 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING6 * =============================================================================7 *8 * Project          : KA Maps Engine9 * File             : sdk/web/src/cli.ts10 * Module           : sdk11 * Repository       : https://git.spboucher.ai/ka-maps-engine12 * Created          : 2026-12-0113 * Last Modified    : 2026-12-0114 *15 * Author           : Simon-Pierre Boucher16 * Position         : Professor of Finance17 * Institution      : Université du Québec en Outaouais (UQO)18 * Organization     : SP Boucher19 * Website          : https://spboucher.ai20 * Git              : https://git.spboucher.ai21 *22 * Preferred Contact: support@spboucher.ai23 * Development      : dev@spboucher.ai24 * Support          : support@spboucher.ai25 * Security/Admin   : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License          : None specified (no license file in this repository)34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243// npx ka-maps-assets [dossier-public]44// Copie les actifs du moteur dans <dossier-public>/ka-maps/<version>/ (défaut : ./public).4546import { resolve } from 'node:path';47import { copyAssets, VERSION } from './assets-node.js';4849const arg = process.argv[2];50if (arg === '-h' || arg === '--help') {51  console.log('usage : ka-maps-assets [dossier-public]   (défaut : ./public)\nCopie km_wasm_bg.wasm et ka-maps-worker.js dans <dossier-public>/ka-maps/' + VERSION + '/');52  process.exit(0);53}54try {55  const { dir, written } = copyAssets(resolve(arg ?? 'public'));56  console.log(`@ka/maps ${VERSION} : actifs dans ${dir} (${written.length ? `${written.length} fichier(s) écrit(s)` : 'déjà à jour'})`);57} catch (e) {58  console.error(String((e as Error)?.message ?? e));59  process.exit(1);60}61
Files main
Menu

Theme