@kenn.eth, @thecil.
I’m also trying to create a gh page for this application.But kinda lost here.
npm install gh-pages --save-dev
Used above command in the client folder of the Daap.
package.json
{
"name": "academy-kitties-template",
"version": "1.0.0",
"description": "",
"main": "truffle-config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tagupta/Crypto-kitties-clone.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/tagupta/Crypto-kitties-clone/issues"
},
"homepage": "https://tagupta.github.io/Crypto-kitties-clone",
"dependencies": {
"@truffle/hdwallet-provider": "^1.4.2",
"dotenv": "^10.0.0"
},
"devDependencies": {
"gh-pages": "^3.2.3"
}
}
again in the same client folder was running npm run deploy, but got some error messages, saying-
D:\BlockChain\Ethereum-201\CryptoKitties\academy-kitties-template\client>npm run deploy
[email protected] predeploy D:\BlockChain\Ethereum-201\CryptoKitties\academy-kitties-template
> npm run build
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2021-08-25T14_23_42_851Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] predeploy: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] predeploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2021-08-25T14_23_42_936Z-debug.log
Here’s the repo