fabrique 0.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.
- package/.yarnrc.yml +4 -0
- package/index.js +13 -0
- package/package.json +18 -0
package/.yarnrc.yml
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { program } from "commander";
|
|
4
|
+
|
|
5
|
+
program
|
|
6
|
+
.version("1.0.0")
|
|
7
|
+
.description("My Node CLI")
|
|
8
|
+
.option("-n, --name <type>", "Add your name")
|
|
9
|
+
.action((options) => {
|
|
10
|
+
console.log(`Hey, ${options.name}!`);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
program.parse(process.argv);
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fabrique",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "CLI to build a library",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/lifaon74/fabrique"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"publish": "npm publish --access public --registry https://registry.npmjs.org"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"author": "Valentin Richard",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"access": "public",
|
|
17
|
+
"packageManager": "yarn@4.3.1"
|
|
18
|
+
}
|