At the moment, the template folder does not have a package.json file included in the source code. The package.json is being generated on-the-go by the create-app.js script. This is fine for the end-users but makes local development a bit difficult.
The workaround for now is to copy the package.json generated by running npx create-dao and placing it inside the template folder. (Make sure you don't commit it)
The ideal solution is to have a utility script that generates a package.json file for local development.
Another possible solution is to store the contents of the package.json file in a dummy file (PACKAGES - for the sake of an example) and ignoring that file when copying the contents of the template folder inside the script.
At the moment, the template folder does not have a package.json file included in the source code. The package.json is being generated on-the-go by the
create-app.js
script. This is fine for the end-users but makes local development a bit difficult.The workaround for now is to copy the
package.json
generated by runningnpx create-dao
and placing it inside the template folder. (Make sure you don't commit it)The ideal solution is to have a utility script that generates a package.json file for local development.
Another possible solution is to store the contents of the
package.json
file in a dummy file (PACKAGES
- for the sake of an example) and ignoring that file when copying the contents of the template folder inside the script.