Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit d3add65

Browse files
committed
Release Candidate 1.0.0-rc1
* supporting short month format in most cases to match browser's behavior * cldr 26 from JSON data source * tested in nodejs 12 * removed any java specific step in the build
1 parent 1d96e68 commit d3add65

File tree

1,485 files changed

+1042035
-133380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,485 files changed

+1042035
-133380
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ node_modules
1515

1616
lib/
1717
tmp/
18+
data/

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
node_js:
33
- '0.10'
4-
- '0.11'
4+
- '0.12'
55

66
addons:
77
sauce_connect:

CONTRIBUTING.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ To build files in `dist/` and `lib/`:
1616

1717
grunt
1818

19-
To build files in `locale-data/` based on CLDR:
19+
20+
Updating CLDR Data
21+
------------------
22+
23+
_Note: this step is completely optional._
24+
25+
Copy fresh CLDR data in `data/`:
26+
27+
grunt update-cldr-data
28+
29+
To build files in `locale-data/` based on CLDR `data/`:
2030

2131
grunt cldr
2232

Gruntfile.js

+42-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,39 @@ module.exports = function (grunt) {
55

66
clean: {
77
dist: 'dist/',
8+
data: 'data/',
89
lib : 'lib/',
910
tmp : 'tmp/'
1011
},
1112

13+
curl: {
14+
cldr: {
15+
src : 'http://www.unicode.org/Public/cldr/26/json-full.zip',
16+
dest: 'tmp/cldr.zip',
17+
},
18+
},
19+
20+
unzip: {
21+
cldr: {
22+
src : 'tmp/cldr.zip',
23+
dest: 'tmp/cldr/',
24+
},
25+
},
26+
1227
copy: {
13-
tmp: {
28+
cldr: {
29+
expand: true,
30+
cwd : 'tmp/cldr/',
31+
dest : 'data/',
32+
src : [
33+
'*-license.*',
34+
'supplemental/parentLocales.json',
35+
'main/*/ca-*.json',
36+
'main/*/currencies.json',
37+
'main/*/numbers.json',
38+
]
39+
},
40+
src: {
1441
expand : true,
1542
flatten: true,
1643
src : ['tmp/src/*.js'],
@@ -49,7 +76,8 @@ module.exports = function (grunt) {
4976
'dist/Intl.min.js': ['dist/Intl.js']
5077
}
5178
}
52-
}
79+
},
80+
5381
});
5482

5583
grunt.loadTasks('./tasks');
@@ -59,12 +87,22 @@ module.exports = function (grunt) {
5987
grunt.loadNpmTasks('grunt-contrib-jshint');
6088
grunt.loadNpmTasks('grunt-contrib-uglify');
6189
grunt.loadNpmTasks('grunt-bundle-jsnext-lib');
90+
grunt.loadNpmTasks('grunt-extract-cldr-data');
91+
grunt.loadNpmTasks('grunt-curl');
92+
grunt.loadNpmTasks('grunt-zip');
6293

6394
grunt.registerTask('build', [
64-
'bundle_jsnext', 'uglify', 'cjs_jsnext', 'copy', 'concat'
95+
'bundle_jsnext', 'uglify', 'cjs_jsnext', 'copy:src', 'concat'
6596
]);
6697

67-
grunt.registerTask('cldr', ['compile-data']);
98+
grunt.registerTask('cldr', ['extract-cldr-data', 'compile-data']);
6899

69100
grunt.registerTask('default', ['jshint', 'clean', 'build']);
101+
102+
grunt.registerTask('update-cldr-data', [
103+
'clean',
104+
'curl',
105+
'unzip',
106+
'copy:cldr',
107+
]);
70108
};

dist/Intl.complete.js

+1-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locale-data/complete.js

+1-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)