Parcel wasn't included in package.json, so running npm run build resulted in the following error (I don't have Parcel installed globally):
'parcel' is not recognized as an internal or external command,
operable program or batch file.
I added Parcel to devDependencies to fix this. As a bonus, every contributor will be automatically using the same version of Parcel. This can prevent some obscure problems caused by different versions between contributors.
I also created package-lock.json and removed it from .gitignore. It's generally suggested to include the lock file in the git repo (see e.g. https://stackoverflow.com/q/44552348/1079869). Or is there are a specific reason for not including it here?
Parcel wasn't included in
package.json
, so runningnpm run build
resulted in the following error (I don't have Parcel installed globally):I added Parcel to
devDependencies
to fix this. As a bonus, every contributor will be automatically using the same version of Parcel. This can prevent some obscure problems caused by different versions between contributors.I also created
package-lock.json
and removed it from.gitignore
. It's generally suggested to include the lock file in the git repo (see e.g. https://stackoverflow.com/q/44552348/1079869). Or is there are a specific reason for not including it here?