forked from andyearnshaw/Intl.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
55 lines (46 loc) · 1.35 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// This file is only needed to update test 262 used to test this polyfill
// by using the command: `$ grunt update-test262`
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
test262: ['tmp/test262**', 'data/test262**', 'tests/test262/']
},
curl: {
test262: {
src : 'https://github.com/tc39/test262/archive/master.zip',
dest: 'tmp/test262.zip'
}
},
unzip: {
test262: {
src : 'tmp/test262.zip',
dest: 'tmp/'
}
},
copy: {
test262: {
expand: true,
cwd : 'tmp/test262-master/',
dest : 'tests/test262',
src : [
'LICENSE',
'test/intl402/**/*.js',
'harness/*.js'
]
}
}
});
grunt.loadTasks('./tasks');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-curl');
grunt.loadNpmTasks('grunt-zip');
grunt.registerTask('update-test262', [
'clean:test262',
'curl:test262',
'unzip:test262',
'copy:test262',
'update-tests'
]);
};