FortAwesome / fa-icon-chooser

an icon chooser implemented as a web component
MIT License
15 stars 6 forks source link

Local Development Set Up Issues #37

Closed talbs closed 2 years ago

talbs commented 3 years ago

@mlwilkerson I hit a few small snags when trying to set this repo and project up locally using your awesome DEVELOPMENT.md docs...

Tokens

I had neither NPM_TOKEN nor CLOUDSMITH_API_TOKEN set up locally and received an error (below) when running npm install initially.

Error: Failed to replace env in config: ${CLOUDSMITH_API_TOKEN}
Error: Failed to replace env in config: ${CLOUDSMITH_API_TOKEN}

I skirted this with @robmadole's help and a cheeky NPM_TOKEN= CLOUDSMITH_API_TOKEN= npm install. But should these tokens be something I have to set up locally? If so, can you guide a designer on how to do that?


local.json's location

You've referenced a couple of places to put this file (packages/fa-icon-chooser/local.json and packages/fa-icon-chooser/src/local.json). Neither of those worked for me. Placing it in packages/fa-icon-chooser/dev/local.json is the location that worked for me.


npm run

DEVELOPMENT's set up instructions mention the npm run command. That one didn't work for me, but running the start script did with npm run start.

Let me know if I can help with any documentation updates or more details around these.