create-web3-dapp icon indicating copy to clipboard operation
create-web3-dapp copied to clipboard

Help with testing locally

Open ghost opened this issue 3 years ago • 6 comments

i am trying to contribute some changes, but have some hard time testing changes locally, never used parcel before. i saw the package.json has two scripts.

yarn start yarn build yarn build index.ts these all three are failing how can i exactly test these locally ?

"scripts": {
                "test": "echo \"Error: no test specified\" && exit 1",
                "lint": "eslint . --ext .ts && yarn prettier --write .",
                "start": "parcel index.html",
                "build": "parcel build ./dist/index.js"
        }

ghost avatar Aug 09 '22 10:08 ghost

i am trying to contribute some changes, but have some hard time testing changes locally, never used parcel before. i saw the package.json has two scripts.

yarn start yarn build yarn build index.ts these all three are failing how can i exactly test these locally ?

"scripts": {
                "test": "echo \"Error: no test specified\" && exit 1",
                "lint": "eslint . --ext .ts && yarn prettier --write .",
                "start": "parcel index.html",
                "build": "parcel build ./dist/index.js"
        }

npx tsc to compile the typescript source code. node dist/index.js to run the script.

I got no idea about the start and build script either.

kenryu42 avatar Aug 09 '22 11:08 kenryu42

We need to remove these scripts from the package.json!

P

i am trying to contribute some changes, but have some hard time testing changes locally, never used parcel before. i saw the package.json has two scripts. yarn start yarn build yarn build index.ts these all three are failing how can i exactly test these locally ?

"scripts": {
                "test": "echo \"Error: no test specified\" && exit 1",
                "lint": "eslint . --ext .ts && yarn prettier --write .",
                "start": "parcel index.html",
                "build": "parcel build ./dist/index.js"
        }

npx tsc to compile the typescript source code. node dist/index.js to run the script.

I got no idea about the start and build script either.

This is the actual flow

Eversmile12 avatar Aug 09 '22 11:08 Eversmile12

@kenryu42 @Eversmile12 and also i have tested the when you create the dapp. the cleanUpScriptRuns but the hidden .git stays.. which in returns shows files as changes in the new dapp created. i have created the pull-request but was closed without merge https://github.com/Eversmile12/create-web3-dapp/pull/5

Screenshot 2022-08-09 at 5 10 55 PM

Hussainzz avatar Aug 09 '22 11:08 Hussainzz

Ah! @Hussainzz mb, can you open a new one?

Eversmile12 avatar Aug 09 '22 12:08 Eversmile12

Ah! @Hussainzz mb, can you open a new one?

DOne

Hussainzz avatar Aug 09 '22 12:08 Hussainzz

Ah! @Hussainzz mb, can you open a new one?

DOne

Merged!

Eversmile12 avatar Aug 09 '22 12:08 Eversmile12