Skip to content

Commit

Permalink
lowercase distributed files to match package name
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Oct 21, 2014
1 parent 07042d0 commit 4a6a46f
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 41 deletions.
16 changes: 7 additions & 9 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@ module.exports = function(grunt) {
build: {
files: [{
src: 'src/Immutable.js',
dest: 'dist/Immutable'
dest: 'dist/immutable'
}]
}
},
copy: {
build: {
files: [{
expand: true,
cwd: 'type-definitions',
src: ['**/*.d.ts'],
dest: 'dist/'
src: 'type-definitions/Immutable.d.ts',
dest: 'dist/immutable.d.ts'
}]
}
},
Expand Down Expand Up @@ -117,26 +115,26 @@ module.exports = function(grunt) {

grunt.registerMultiTask('stats', function () {
var done = this.async();
exec('cat dist/Immutable.js | wc -c', function (error, out) {
exec('cat dist/immutable.js | wc -c', function (error, out) {
if (error) throw new Error(error);
var rawBytes = parseInt(out);
console.log(' Concatenated: ' +
(rawBytes + ' bytes').cyan);
exec('gzip -c dist/Immutable.js | wc -c', function (error, out) {
exec('gzip -c dist/immutable.js | wc -c', function (error, out) {
if (error) throw new Error(error);
var zippedBytes = parseInt(out);
var pctOfA = Math.floor(10000 * (1 - (zippedBytes / rawBytes))) / 100;
console.log(' Compressed: ' +
(zippedBytes + ' bytes').cyan + ' ' +
(pctOfA + '%').green);
exec('cat dist/Immutable.min.js | wc -c', function (error, out) {
exec('cat dist/immutable.min.js | wc -c', function (error, out) {
if (error) throw new Error(error);
var minifiedBytes = parseInt(out);
var pctOfA = Math.floor(10000 * (1 - (minifiedBytes / rawBytes))) / 100;
console.log(' Minified: ' +
(minifiedBytes + ' bytes').cyan + ' ' +
(pctOfA + '%').green);
exec('gzip -c dist/Immutable.min.js | wc -c', function (error, out) {
exec('gzip -c dist/immutable.min.js | wc -c', function (error, out) {
if (error) throw new Error(error);
var zippedMinBytes = parseInt(out);
var pctOfA = Math.floor(10000 * (1 - (zippedMinBytes / rawBytes))) / 100;
Expand Down
2 changes: 1 addition & 1 deletion __tests__/ArraySequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>
jest.autoMockOff();

import Immutable = require('immutable');
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Conversion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Cursor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Equality.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/IndexedSequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>
jest.autoMockOff();

import jasmineCheck = require('jasmine-check');
Expand Down
2 changes: 1 addition & 1 deletion __tests__/IterableSequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>
jest.autoMockOff();

import Immutable = require('immutable');
Expand Down
2 changes: 1 addition & 1 deletion __tests__/KeyedIndexedSequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>
jest.autoMockOff();

import jasmineCheck = require('jasmine-check');
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Map.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/ObjectSequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/OrderedMap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Range.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Record.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Repeat.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Sequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Set.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Stack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/Vector.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/concat.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/count.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/flatten.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/get.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/groupBy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/interpose.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/join.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/merge.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/slice.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/sort.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/splice.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion __tests__/updateIn.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///<reference path='../resources/jest.d.ts'/>
///<reference path='../dist/Immutable.d.ts'/>
///<reference path='../dist/immutable.d.ts'/>

jest.autoMockOff();

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "git",
"url": "git://github.com/facebook/immutable-js.git"
},
"main": "dist/Immutable.js",
"main": "dist/immutable.js",
"ignore": [
"**/.*",
"__tests__",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"bugs": {
"url": "https://github.com/facebook/immutable-js/issues"
},
"main": "dist/Immutable.js",
"main": "dist/immutable.js",
"scripts": {
"test": "jest"
},
Expand Down Expand Up @@ -62,4 +62,4 @@
"iteration"
],
"license": "BSD"
}
}

0 comments on commit 4a6a46f

Please sign in to comment.