Skip to content

Commit 57a4a0e

Browse files
committed
Rename underscore.js to underscore-umd.js, keep underscore.js as alias
1 parent 5c0cb90 commit 57a4a0e

17 files changed

+1874
-55
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ coverage
88
test-treeshake/*-umd.js
99
amd
1010
cjs
11+
/underscore.js
12+
/underscore-min.js
13+
/underscore-min.js.map

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/underscore/blob/master/modules/index.js).
1414

15-
* In your pull request, do not add documentation or re-build the minified `underscore-min.js` file. We'll do those things before cutting a new release.
15+
* In your pull request, do not add documentation or re-build the minified `underscore-umd-min.js` file. We'll do those things before cutting a new release.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "underscore",
3-
"main": "underscore.js",
3+
"main": "underscore-umd.js",
44
"keywords": ["util", "functional", "server", "client", "browser"],
55
"ignore" : ["docs", "test", "*.yml", "CNAME", "index.html", "favicon.ico", "CONTRIBUTING.md", ".*", "package.json", "karma.*"]
66
}

index.html

+11-11
Original file line numberDiff line numberDiff line change
@@ -482,17 +482,17 @@ <h2>v1.12.0 Downloads <i style="padding-left: 12px; font-size:12px;">(Right-clic
482482
</td>
483483
</tr>
484484
<tr>
485-
<td class="dl-link"><a href="underscore.js">UMD (Development)</a></td>
485+
<td class="dl-link"><a href="underscore-umd.js">UMD (Development)</a></td>
486486
<td>
487487
<i>67.45kb, Uncompressed with Bountiful Comments</i>
488-
&nbsp;<small>(<a href="underscore.js.map">Source Map</a>)</small>
488+
&nbsp;<small>(<a href="underscore-umd.js.map">Source Map</a>)</small>
489489
</td>
490490
</tr>
491491
<tr>
492-
<td class="dl-link"><a href="underscore-min.js">UMD (Production)</a></td>
492+
<td class="dl-link"><a href="underscore-umd-min.js">UMD (Production)</a></td>
493493
<td>
494494
<i>7.39kb, Minified and Gzipped</i>
495-
&nbsp;<small>(<a href="underscore-min.js.map">Source Map</a>)</small>
495+
&nbsp;<small>(<a href="underscore-umd-min.js.map">Source Map</a>)</small>
496496
</td>
497497
</tr>
498498
<tr>
@@ -503,7 +503,7 @@ <h2>v1.12.0 Downloads <i style="padding-left: 12px; font-size:12px;">(Right-clic
503503
<td><i>Unreleased, current <tt>master</tt>, use by your own judgement and at your own risk</i></td>
504504
</tr>
505505
<tr>
506-
<td class="dl-link"><a href="https://raw.github.com/jashkenas/underscore/master/underscore.js">Edge UMD</a></td>
506+
<td class="dl-link"><a href="https://raw.github.com/jashkenas/underscore/master/underscore-umd.js">Edge UMD</a></td>
507507
<td><i>Unreleased, current <tt>master</tt>, use if you’re feeling lucky</i></td>
508508
</tr>
509509
</table>
@@ -512,25 +512,25 @@ <h2>v1.12.0 CDN URLs <i style="padding-left: 12px; font-size:12px;">(Use with <t
512512

513513
<ul>
514514
<li>
515-
<tt>https://cdn.jsdelivr.net/npm/[email protected]/underscore-min.js</tt>
515+
<tt>https://cdn.jsdelivr.net/npm/[email protected]/underscore-umd-min.js</tt>
516516
</li>
517517
<li>
518518
<tt>https://cdn.jsdelivr.net/npm/[email protected]/underscore-esm-min.js</tt>
519519
</li>
520520
<li>
521-
<tt>https://unpkg.com/[email protected]/underscore-min.js</tt>
521+
<tt>https://unpkg.com/[email protected]/underscore-umd-min.js</tt>
522522
</li>
523523
<li>
524524
<tt>https://unpkg.com/[email protected]/underscore-esm-min.js</tt>
525525
</li>
526526
<li>
527-
<tt>https://pagecdn.io/lib/underscore/1.12.0/underscore-min.js</tt>
527+
<tt>https://pagecdn.io/lib/underscore/1.12.0/underscore-umd-min.js</tt>
528528
</li>
529529
<li>
530530
<tt>https://pagecdn.io/lib/underscore/1.12.0/underscore-esm-min.js</tt>
531531
</li>
532532
<li>
533-
<tt>https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.0/underscore-min.js</tt>
533+
<tt>https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.0/underscore-umd-min.js</tt>
534534
</li>
535535
<li>
536536
<tt>https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.0/underscore-esm-min.js</tt>
@@ -564,7 +564,7 @@ <h2>Monolithic Import</h2>
564564
<b>CommonJS</b> <tt>var _ = require('underscore');</tt>
565565
</li>
566566
<li>
567-
<b>ExtendScript</b> <tt>#include "underscore.js"</tt>
567+
<b>ExtendScript</b> <tt>#include "underscore-umd.js"</tt>
568568
</li>
569569
</ul>
570570

@@ -3893,7 +3893,7 @@ <h2 id="changelog">Change Log</h2>
38933893
</div>
38943894

38953895
<!-- Include Underscore, so you can play with it in the console. -->
3896-
<script type="text/javascript" src="underscore.js"></script>
3896+
<script type="text/javascript" src="underscore-umd.js"></script>
38973897
<script type="text/javascript" src="docs/main.js"></script>
38983898

38993899
</body>

karma.conf-sauce.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = function(config) {
6363
files: [
6464
'test/vendor/qunit-extras.js',
6565
'test/qunit-setup.js',
66-
'underscore.js',
66+
'underscore-umd.js',
6767
'test/*.js'
6868
],
6969

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function(config) {
1515
// list of files / patterns to load in the browser
1616
files: [
1717
'test/qunit-setup.js',
18-
'underscore.js',
18+
'underscore-umd.js',
1919
'test/*.js'
2020
],
2121

0 commit comments

Comments
 (0)