Permalink
Browse files

Package.json: Drop cldr-data peer dependency

Fixes #638
  • Loading branch information...
rxaviers authored and Rafael Xavier de Souza committed Nov 7, 2016
1 parent 397b520 commit 067b521b730875d7f7d9a1b023cf7fe320516bb0
Showing with 8 additions and 9 deletions.
  1. +0 −1 .bowerrc
  2. +4 −2 README.md
  3. +2 −2 bower.json
  4. +2 −4 package.json
View
@@ -1,7 +1,6 @@
{
"directory": "external",
"scripts": {
- "preinstall": "npm install cldr-data-downloader@0.2.x",
"postinstall": "node ./node_modules/cldr-data-downloader/bin/download.js -i external/cldr-data/index.json -o external/cldr-data/"
}
}
View
@@ -183,6 +183,8 @@ Globalize("es").formatDate(new Date());
// > "27/11/2015"
```
+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.
+
Read the [Locales section](#locales) for more information about supported locales. For AMD, bower and other usage examples, see [Examples section](#examples).
### Installation
@@ -194,7 +196,7 @@ and download the latest available Globalize package.
*By using a package manager...*
-Use bower `bower install globalize`, or npm `npm install globalize cldr-data`.
+Use bower `bower install globalize`, or npm `npm install globalize`.
*By using source files...*
@@ -405,7 +407,7 @@ Figure out the deduced information by looking at the
```js
var Globalize = require( "globalize" );
Globalize.load( require( "cldr-data" ).entireSupplemental() );
-Globalize("en").cldr.attributes.maxLanguageId;
+Globalize( "en" ).cldr.attributes.maxLanguageId;
// > "en-Latn-US"
```
View
@@ -8,10 +8,10 @@
"bower.json"
],
"dependencies": {
- "cldrjs": "^0.4.4",
- "cldr-data": ">=25"
+ "cldrjs": "^0.4.4"
},
"devDependencies": {
+ "cldr-data": ">=25",
"es5-shim": "3.4.0",
"make-plural": "eemeli/make-plural.js#3.0.0",
"messageformat": "SlexAxton/messageformat.js#v0.3.0-1",
View
@@ -65,12 +65,10 @@
"url": "http://github.com/jquery/globalize/issues"
},
"dependencies": {
- "cldrjs": "^0.4.4"
- },
- "peerDependencies": {
- "cldr-data": ">=25"
+ "cldrjs": "^0.4.6"
},
"devDependencies": {
+ "cldr-data-downloader": "^0.2.5",
"grunt": "0.4.5",
"grunt-check-dependencies": "0.6.0",
"grunt-commitplease": "0.0.5",

0 comments on commit 067b521

Please sign in to comment.