Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have faced that <em>problem</em> lately, too. There are several ways to deal with it:</p> <ul> <li><p>use the performance optimized versions, for instance <strong>bootstrap.min.js</strong> instead of <strong>bootstrap.js</strong> etc. <a href="https://github.com/github/linguist/blob/master/lib/linguist/repository.rb#L83" rel="noreferrer">GitHub uses the file size</a> to determine the language proportion of each repository. This won't reduce it to zero, but at least it reduces the proportion</p></li> <li><p><strong>This might be what you want:</strong> GitHub has a <a href="https://github.com/github/linguist/blob/master/lib/linguist/vendor.yml" rel="noreferrer">vendor list with regular expressions</a> which are exluced from the language graph. There you will see, that jQuery is already part of the exclusion. There is also a pending pull request to add Twitter Bootstrap. If this does not get pass you can always add the files to a directory called <strong>vendor</strong> there they will be excluded from the statistics.</p></li> <li><p>use the <a href="http://maven.apache.org/plugins/maven-antrun-plugin/" rel="noreferrer">Maven AntRun Plugin</a>: With it you could simply download the JavaScript library files on request with <a href="http://ant.apache.org/manual/Tasks/get.html" rel="noreferrer">Ant Get</a></p></li> <li><p>there are also Maven repositories for these JavaScript libraries: <a href="https://github.com/efsavage/Bootstrap-Maven" rel="noreferrer">Bootstrap-Maven</a>. However, the files are mounted at <code>/ext/bootstrap/</code> and I have no idea how this helps</p></li> <li><p>there are even more solutions, like <a href="http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html" rel="noreferrer">Maven War Plugin using overlays</a>.</p></li> </ul> <p>Finally my advice: just put the files into your repository. I have looked into some bigger projects on GitHub using jQuery and Twitter Bootstrap and they <strong>all</strong> put their JavaScript library files into the repository.</p> <p>The advantage of these JavaScript library files is that they don't have to be compiled what so ever. Use this advantage and don't add additional burdens for the sake of aesthetic. Best practice seems to be adding it to the repository and live with the stupid language graph. Who knows, maybe certain files will be ignored in the future.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload