chore(create-mcfly): package info

This commit is contained in:
Ayo 2023-10-21 08:42:55 +02:00
parent e1af3a971f
commit 10561df08c
4 changed files with 19 additions and 8 deletions

3
package-lock.json generated
View file

@ -13,6 +13,9 @@
"esprima": "^4.0.1", "esprima": "^4.0.1",
"nitropack": "latest", "nitropack": "latest",
"ultrahtml": "^1.5.2" "ultrahtml": "^1.5.2"
},
"devDependencies": {
"create-mcfly": "*"
} }
}, },
"node_modules/@cloudflare/kv-asset-handler": { "node_modules/@cloudflare/kv-asset-handler": {

View file

@ -9,7 +9,8 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/ayoayco/McFly.git" "url": "git+https://github.com/ayoayco/McFly.git",
"directory": "packages/config"
}, },
"author": "Ayo Ayco", "author": "Ayo Ayco",
"license": "MIT", "license": "MIT",

8
packages/create-mcfly/index.js Normal file → Executable file
View file

@ -1,14 +1,12 @@
#!/usr/bin/env node #!/usr/bin/env node
// const fs = require('fs'); const fs = require("fs");
// const args = process.argv; const args = process.argv;
create(); create();
function create() { function create() {
console.log("Create a new McFly app!"); console.log("Create a new McFly app!");
console.log( console.log("See project details: https://ayco.io/gh/McFly#readme");
"This is not ready yet, see steps on how to create a new McFly app in our project README: https://ayco.io/gh/McFly#readme"
);
return 1; return 1;
} }

View file

@ -1,16 +1,25 @@
{ {
"name": "create-mcfly", "name": "create-mcfly",
"version": "0.0.3", "version": "0.0.3",
"bin": "./index.js", "bin": {
"create-mcfly": "./index.js"
},
"description": "Create a new McFly app", "description": "Create a new McFly app",
"main": "index.js", "main": "index.js",
"exports": {
".": "./index.js"
},
"files": [
"index.js"
],
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/ayoayco/McFly.git" "url": "https://github.com/ayoayco/McFly.git",
"directory": "packages/create-mcfly"
}, },
"author": "Ayo Ayco", "author": "Ayo Ayco",
"license": "MIT", "license": "MIT",