comunica / jQuery-Widget.js

🖼 A jQuery widget to query heterogeneous interfaces using Comunica SPARQL
http://query.linkeddatafragments.org/
MIT License
18 stars 35 forks source link

Make yarn-run-dev not move queries.json to build folder #162

Open simonvbrae opened 1 month ago

simonvbrae commented 1 month ago

This is a draft PR, I am still making changes.

Calling yarn run dev would result in the queries.json file being moved to build/ after generation resulting in missing data sources and queries in the development server. This PR changes lets that move happen outside of webpack so it doesn't happen when running yarn run dev, only when running yarn run build.

simonvbrae commented 3 days ago

Thanks @simonvbrae, looks good!

Can you confirm build and serving works correctly in these cases? (because the CI currently only checks one of these)

  • yarn run dev (yarn run dev-prod should be the same)
  • yarn run build
  • node bin/generate.js

If yes, I'll merge this right away!

I have tested all of the options, it's ready for merge!