From 29f5441731fe749c4fe61baa08fd41e50642bddf Mon Sep 17 00:00:00 2001 From: weboko Date: Thu, 19 Jan 2023 20:05:59 +0100 Subject: [PATCH] update README, bump version and fix bin command --- create-waku-app/README.md | 2 +- create-waku-app/package-lock.json | 33 ++++++++++++ create-waku-app/package.json | 86 +++++++++++++++---------------- 3 files changed, 77 insertions(+), 44 deletions(-) diff --git a/create-waku-app/README.md b/create-waku-app/README.md index 6427100..7b489f7 100644 --- a/create-waku-app/README.md +++ b/create-waku-app/README.md @@ -9,4 +9,4 @@ Usage: For options you can specify template from which to initialize your app. Template correlates directly to the name of example you can see in this repository. #### How to add support for new example: -Extend `wakuExamples` property defined in `package.json` in this package with the name of the example and relative path to it where folder of the example should be the same as it's name. \ No newline at end of file +Just create an example in the `examples` folder in the root of the repository. \ No newline at end of file diff --git a/create-waku-app/package-lock.json b/create-waku-app/package-lock.json index 022a7c6..05c9f5a 100644 --- a/create-waku-app/package-lock.json +++ b/create-waku-app/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT OR Apache-2.0", "dependencies": { "commander": "^9.4.1", + "enquirer": "^2.3.6", "fs-extra": "^11.1.0", "semver": "^7.3.8", "validate-npm-package-name": "^5.0.0" @@ -21,6 +22,14 @@ "node": ">=16" } }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "engines": { + "node": ">=6" + } + }, "node_modules/builtins": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", @@ -37,6 +46,17 @@ "node": "^12.20.0 || >=14" } }, + "node_modules/enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dependencies": { + "ansi-colors": "^4.1.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/fs-extra": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz", @@ -117,6 +137,11 @@ } }, "dependencies": { + "ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==" + }, "builtins": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", @@ -130,6 +155,14 @@ "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz", "integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==" }, + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "requires": { + "ansi-colors": "^4.1.1" + } + }, "fs-extra": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz", diff --git a/create-waku-app/package.json b/create-waku-app/package.json index e592a92..e9044a4 100644 --- a/create-waku-app/package.json +++ b/create-waku-app/package.json @@ -1,45 +1,45 @@ { - "name": "@waku/create-app", - "version": "0.1.0", - "description": "Helper package to bootstrap Waku app ", - "repository": { - "type": "git", - "url": "https://github.com/waku-org/js-waku-examples.git", - "directory": "packages/create-app" - }, - "engines": { - "node": ">=16" - }, - "bugs": { - "url": "https://github.com/waku-org/js-waku-examples/issues" - }, - "files": [ - "index.js", - "createApp.js", - "examples" - ], - "main": "index.js", - "bin": { - "create-waku-app": "./index.js" - }, - "scripts": { - "build": "node ./build.js", - "prepublishOnly": "npm run build" - }, - "keywords": [ - "waku", - "decentralised", - "communication", - "web3", - "ethereum", - "dapps" - ], - "license": "MIT OR Apache-2.0", - "dependencies": { - "commander": "^9.4.1", - "enquirer": "^2.3.6", - "fs-extra": "^11.1.0", - "semver": "^7.3.8", - "validate-npm-package-name": "^5.0.0" - } + "name": "@waku/create-app", + "version": "0.1.1", + "description": "Helper package to bootstrap Waku app ", + "repository": { + "type": "git", + "url": "https://github.com/waku-org/js-waku-examples.git", + "directory": "packages/create-app" + }, + "engines": { + "node": ">=16" + }, + "bugs": { + "url": "https://github.com/waku-org/js-waku-examples/issues" + }, + "files": [ + "index.js", + "createApp.js", + "examples" + ], + "main": "index.js", + "bin": { + "create-app": "./index.js" + }, + "scripts": { + "build": "node ./build.js", + "prepublishOnly": "npm run build" + }, + "keywords": [ + "waku", + "decentralised", + "communication", + "web3", + "ethereum", + "dapps" + ], + "license": "MIT OR Apache-2.0", + "dependencies": { + "commander": "^9.4.1", + "enquirer": "^2.3.6", + "fs-extra": "^11.1.0", + "semver": "^7.3.8", + "validate-npm-package-name": "^5.0.0" + } }