Skip to content

Commit 067b521

Browse files
rxaviersRafael Xavier de Souza
authored and
Rafael Xavier de Souza
committed
Package.json: Drop cldr-data peer dependency
Fixes #638
1 parent 397b520 commit 067b521

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.bowerrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"directory": "external",
33
"scripts": {
4-
"preinstall": "npm install [email protected]",
54
"postinstall": "node ./node_modules/cldr-data-downloader/bin/download.js -i external/cldr-data/index.json -o external/cldr-data/"
65
}
76
}

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ Globalize("es").formatDate(new Date());
183183
// > "27/11/2015"
184184
```
185185

186+
Note `cldr-data` is an optional module, read [CLDR content](#cldr-content) section below for more information on how to get CLDR from different sources.
187+
186188
Read the [Locales section](#locales) for more information about supported locales. For AMD, bower and other usage examples, see [Examples section](#examples).
187189

188190
### Installation
@@ -194,7 +196,7 @@ and download the latest available Globalize package.
194196

195197
*By using a package manager...*
196198

197-
Use bower `bower install globalize`, or npm `npm install globalize cldr-data`.
199+
Use bower `bower install globalize`, or npm `npm install globalize`.
198200

199201
*By using source files...*
200202

@@ -405,7 +407,7 @@ Figure out the deduced information by looking at the
405407
```js
406408
var Globalize = require( "globalize" );
407409
Globalize.load( require( "cldr-data" ).entireSupplemental() );
408-
Globalize("en").cldr.attributes.maxLanguageId;
410+
Globalize( "en" ).cldr.attributes.maxLanguageId;
409411
// > "en-Latn-US"
410412
```
411413

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"bower.json"
99
],
1010
"dependencies": {
11-
"cldrjs": "^0.4.4",
12-
"cldr-data": ">=25"
11+
"cldrjs": "^0.4.4"
1312
},
1413
"devDependencies": {
14+
"cldr-data": ">=25",
1515
"es5-shim": "3.4.0",
1616
"make-plural": "eemeli/make-plural.js#3.0.0",
1717
"messageformat": "SlexAxton/messageformat.js#v0.3.0-1",

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,10 @@
6565
"url": "http://github.com/jquery/globalize/issues"
6666
},
6767
"dependencies": {
68-
"cldrjs": "^0.4.4"
69-
},
70-
"peerDependencies": {
71-
"cldr-data": ">=25"
68+
"cldrjs": "^0.4.6"
7269
},
7370
"devDependencies": {
71+
"cldr-data-downloader": "^0.2.5",
7472
"grunt": "0.4.5",
7573
"grunt-check-dependencies": "0.6.0",
7674
"grunt-commitplease": "0.0.5",

0 commit comments

Comments
 (0)