comunica / jQuery-Widget.js

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

fix: duplicate queries.json file generation #159

Closed MaximStockmans closed 4 months ago

MaximStockmans commented 4 months ago

Closes #145

Problem

The queries.json file was generated twice, once in the current working directory and once in the build directory. The file was first generated in the current working directory, and then passed to webpack for bundling. This bundling copied the file to the build directory, causing the file to exist twice.

Solution

Removed the queries.json file from the entries in the webpack plugin and instead wrote a custom plugin that moves this file into the build folder when webpack is triggered.

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.

rubensworks commented 4 months ago

Thanks @MaximStockmans! Feel free to claim the bounty via https://opencollective.com/comunica-association ! (you can add VAT if needed)