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

Commit 4aeaff6

Browse files
committed
refactor of the build process, still having two build systems :/
1 parent 42eea92 commit 4aeaff6

11 files changed

+2274
-1962
lines changed

Gruntfile.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function (grunt) {
1313
test262: {
1414
src : 'https://github.com/tc39/test262/archive/master.zip',
1515
dest: 'tmp/test262.zip',
16-
}
16+
},
1717
},
1818

1919
unzip: {
@@ -24,7 +24,7 @@ module.exports = function (grunt) {
2424
test262: {
2525
src : 'tmp/test262.zip',
2626
dest: 'tmp/',
27-
}
27+
},
2828
},
2929

3030
copy: {
@@ -36,14 +36,14 @@ module.exports = function (grunt) {
3636
'LICENSE',
3737
'test/intl402/*.js',
3838
'harness/*.js',
39-
]
39+
],
4040
},
4141
src: {
4242
expand : true,
4343
flatten: true,
4444
src : ['tmp/src/*.js'],
45-
dest : 'lib/'
46-
}
45+
dest : 'lib/',
46+
},
4747
},
4848

4949
concat: {
@@ -55,33 +55,33 @@ module.exports = function (grunt) {
5555

5656
jshint: {
5757
options: {
58-
eqeqeq: true
58+
eqeqeq: true,
5959
},
6060
src: ['src/*.js'],
6161
node: ['index.js', '*.json'],
62-
build: ['tasks/**/*.js']
62+
build: ['tasks/**/*.js'],
6363
},
6464

6565
bundle_jsnext: {
6666
dest: 'dist/Intl.js',
6767
options: {
68-
namespace: 'IntlPolyfill'
69-
}
68+
namespace: 'IntlPolyfill',
69+
},
7070
},
7171

7272
cjs_jsnext: {
73-
dest: 'tmp/'
73+
dest: 'tmp/',
7474
},
7575

7676
uglify: {
7777
options: {
78-
preserveComments: 'some'
78+
preserveComments: 'some',
7979
},
8080
build: {
8181
files: {
82-
'dist/Intl.min.js': ['dist/Intl.js']
83-
}
84-
}
82+
'dist/Intl.min.js': ['dist/Intl.js'],
83+
},
84+
},
8585
},
8686

8787
});
@@ -97,7 +97,7 @@ module.exports = function (grunt) {
9797
grunt.loadNpmTasks('grunt-zip');
9898

9999
grunt.registerTask('build', [
100-
'bundle_jsnext', 'uglify', 'cjs_jsnext', 'copy:src', 'concat:complete'
100+
'bundle_jsnext', 'uglify', 'cjs_jsnext', 'copy:src', 'concat:complete',
101101
]);
102102

103103
grunt.registerTask('cldr', ['clean:cldr', 'extract-cldr-data', 'compile-data']);

dist/Intl.complete.js

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

0 commit comments

Comments
 (0)