Closed nalagg closed 5 years ago
Hey, since you added it as dev dependency you need to add a command to “scripts” section in your package.json and then run it. 1) yarn add codecrumbs -D 2) add to package.json “scripts”: { “cc”: “codecrumbs -d src -e src/index.js” } 3) in terminal run: yarn cc (or npm run cc)
or you can use npx (https://github.com/zkat/npx) or install globally (it's not the best way)
inside /codecrumbs/src i only see index.dev.js
For what project are you trying to use it?
Let's do this example first to understand how everything works:
1) clone/download to your computer this project https://github.com/lucasbento/react-redux-todo (just as simple example)
2) install codecrumbs - yarn global add codecrumbs
3) go to the folder react-redux-todo (where you copied project from step 1)
4) run codecrumbs -d src -e src/index.js
5) go to the browser url http://localhost:2018 to see if it works
let me know if this works
that worked, thank you. I cloned https://github.com/Bogdan-Lyashenko/codecrumbs.git
and this gave problems.
No worries, happy to help :)
'codecrumbs' is not recognized as an internal or external command, operable program or batch file.
created a dir '\devDependencies', ran yarn