buildfunctions 0.0.1
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/README.md +1 -0
- package/index.js +13 -0
- package/package.json +22 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# cli
|
package/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
function sayHello() {
|
|
4
|
+
console.log("Hello, world! A deploy command executed from the CLI");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
if (require.main === module) {
|
|
8
|
+
// If the script is run directly from the command line, execute the function.
|
|
9
|
+
sayHello();
|
|
10
|
+
} else {
|
|
11
|
+
// If the script is required by another module, export the function.
|
|
12
|
+
module.exports = sayHello;
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "buildfunctions",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "CLI coming soon",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"deploy": "./index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"start": "node index.js"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/buildfunctions/cli.git"
|
|
16
|
+
},
|
|
17
|
+
"author": "Buildfunctions",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/buildfunctions/cli/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/buildfunctions/cli#readme"
|
|
22
|
+
}
|