nico-tools 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +0 -0
  2. package/bin/cli.js +37 -0
  3. package/package.json +28 -0
package/README.md ADDED
File without changes
package/bin/cli.js ADDED
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env node
2
+ import yargs from "yargs/yargs";
3
+ import { hideBin } from "yargs/helpers";
4
+
5
+ yargs(hideBin(process.argv))
6
+ .command(
7
+ "create-project",
8
+ "Crée un nouveau projet",
9
+ (yargs) => {
10
+ return yargs.option("name", {
11
+ describe: "Nom du projet",
12
+ type: "string",
13
+ demandOption: true,
14
+ });
15
+ },
16
+ (argv) => {
17
+ console.log(`Création du projet : ${argv.name}`);
18
+ // Logique de création de projet ici
19
+ }
20
+ )
21
+ .command(
22
+ "translate",
23
+ "Gère les traductions",
24
+ (yargs) => {
25
+ return yargs.option("lang", {
26
+ describe: "Langue cible",
27
+ type: "string",
28
+ demandOption: true,
29
+ });
30
+ },
31
+ (argv) => {
32
+ console.log(`Gestion des traductions pour : ${argv.lang}`);
33
+ // Logique de gestion des traductions ici
34
+ }
35
+ )
36
+ .demandCommand(1, "Vous devez spécifier une commande")
37
+ .help().argv;
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "nico-tools",
3
+ "version": "1.0.0",
4
+ "description": "Une suite d'outils dédiés à mes projets",
5
+ "main": "lib/index.js",
6
+ "bin": {
7
+ "nico-tools": "./bin/cli.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [
13
+ "cli",
14
+ "toolkit",
15
+ "project-scaffolding"
16
+ ],
17
+ "author": "Nicolas T",
18
+ "license": "MIT",
19
+ "files": [
20
+ "lib",
21
+ "bin",
22
+ "templates"
23
+ ],
24
+ "dependencies": {
25
+ "yargs": "^18.0.0"
26
+ },
27
+ "type": "module"
28
+ }