Skip to content

Commit

Permalink
Rename underscore.js to underscore-umd.js, keep underscore.js as alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Mar 9, 2021
1 parent 5c0cb90 commit 57a4a0e
Show file tree
Hide file tree
Showing 17 changed files with 1,874 additions and 55 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ coverage
test-treeshake/*-umd.js
amd
cjs
/underscore.js
/underscore-min.js
/underscore-min.js.map
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

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

* 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.
* 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.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "underscore",
"main": "underscore.js",
"main": "underscore-umd.js",
"keywords": ["util", "functional", "server", "client", "browser"],
"ignore" : ["docs", "test", "*.yml", "CNAME", "index.html", "favicon.ico", "CONTRIBUTING.md", ".*", "package.json", "karma.*"]
}
22 changes: 11 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -482,17 +482,17 @@ <h2>v1.12.0 Downloads <i style="padding-left: 12px; font-size:12px;">(Right-clic
</td>
</tr>
<tr>
<td class="dl-link"><a href="underscore.js">UMD (Development)</a></td>
<td class="dl-link"><a href="underscore-umd.js">UMD (Development)</a></td>
<td>
<i>67.45kb, Uncompressed with Bountiful Comments</i>
&nbsp;<small>(<a href="underscore.js.map">Source Map</a>)</small>
&nbsp;<small>(<a href="underscore-umd.js.map">Source Map</a>)</small>
</td>
</tr>
<tr>
<td class="dl-link"><a href="underscore-min.js">UMD (Production)</a></td>
<td class="dl-link"><a href="underscore-umd-min.js">UMD (Production)</a></td>
<td>
<i>7.39kb, Minified and Gzipped</i>
&nbsp;<small>(<a href="underscore-min.js.map">Source Map</a>)</small>
&nbsp;<small>(<a href="underscore-umd-min.js.map">Source Map</a>)</small>
</td>
</tr>
<tr>
Expand All @@ -503,7 +503,7 @@ <h2>v1.12.0 Downloads <i style="padding-left: 12px; font-size:12px;">(Right-clic
<td><i>Unreleased, current <tt>master</tt>, use by your own judgement and at your own risk</i></td>
</tr>
<tr>
<td class="dl-link"><a href="https://raw.github.com/jashkenas/underscore/master/underscore.js">Edge UMD</a></td>
<td class="dl-link"><a href="https://raw.github.com/jashkenas/underscore/master/underscore-umd.js">Edge UMD</a></td>
<td><i>Unreleased, current <tt>master</tt>, use if you’re feeling lucky</i></td>
</tr>
</table>
Expand All @@ -512,25 +512,25 @@ <h2>v1.12.0 CDN URLs <i style="padding-left: 12px; font-size:12px;">(Use with <t

<ul>
<li>
<tt>https://cdn.jsdelivr.net/npm/underscore@1.12.0/underscore-min.js</tt>
<tt>https://cdn.jsdelivr.net/npm/underscore@1.12.0/underscore-umd-min.js</tt>
</li>
<li>
<tt>https://cdn.jsdelivr.net/npm/underscore@1.12.0/underscore-esm-min.js</tt>
</li>
<li>
<tt>https://unpkg.com/underscore@1.12.0/underscore-min.js</tt>
<tt>https://unpkg.com/underscore@1.12.0/underscore-umd-min.js</tt>
</li>
<li>
<tt>https://unpkg.com/underscore@1.12.0/underscore-esm-min.js</tt>
</li>
<li>
<tt>https://pagecdn.io/lib/underscore/1.12.0/underscore-min.js</tt>
<tt>https://pagecdn.io/lib/underscore/1.12.0/underscore-umd-min.js</tt>
</li>
<li>
<tt>https://pagecdn.io/lib/underscore/1.12.0/underscore-esm-min.js</tt>
</li>
<li>
<tt>https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.0/underscore-min.js</tt>
<tt>https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.0/underscore-umd-min.js</tt>
</li>
<li>
<tt>https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.12.0/underscore-esm-min.js</tt>
Expand Down Expand Up @@ -564,7 +564,7 @@ <h2>Monolithic Import</h2>
<b>CommonJS</b> <tt>var _ = require('underscore');</tt>
</li>
<li>
<b>ExtendScript</b> <tt>#include "underscore.js"</tt>
<b>ExtendScript</b> <tt>#include "underscore-umd.js"</tt>
</li>
</ul>

Expand Down Expand Up @@ -3893,7 +3893,7 @@ <h2 id="changelog">Change Log</h2>
</div>

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

</body>
Expand Down
2 changes: 1 addition & 1 deletion karma.conf-sauce.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function(config) {
files: [
'test/vendor/qunit-extras.js',
'test/qunit-setup.js',
'underscore.js',
'underscore-umd.js',
'test/*.js'
],

Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(config) {
// list of files / patterns to load in the browser
files: [
'test/qunit-setup.js',
'underscore.js',
'underscore-umd.js',
'test/*.js'
],

Expand Down
Loading

0 comments on commit 57a4a0e

Please sign in to comment.