Skip to content

Commit

Permalink
refactor of the build process, still having two build systems :/
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy committed Feb 29, 2016
1 parent 42eea92 commit 4aeaff6
Show file tree
Hide file tree
Showing 11 changed files with 2,274 additions and 1,962 deletions.
30 changes: 15 additions & 15 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function (grunt) {
test262: {
src : 'https://github.com/tc39/test262/archive/master.zip',
dest: 'tmp/test262.zip',
}
},
},

unzip: {
Expand All @@ -24,7 +24,7 @@ module.exports = function (grunt) {
test262: {
src : 'tmp/test262.zip',
dest: 'tmp/',
}
},
},

copy: {
Expand All @@ -36,14 +36,14 @@ module.exports = function (grunt) {
'LICENSE',
'test/intl402/*.js',
'harness/*.js',
]
],
},
src: {
expand : true,
flatten: true,
src : ['tmp/src/*.js'],
dest : 'lib/'
}
dest : 'lib/',
},
},

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

jshint: {
options: {
eqeqeq: true
eqeqeq: true,
},
src: ['src/*.js'],
node: ['index.js', '*.json'],
build: ['tasks/**/*.js']
build: ['tasks/**/*.js'],
},

bundle_jsnext: {
dest: 'dist/Intl.js',
options: {
namespace: 'IntlPolyfill'
}
namespace: 'IntlPolyfill',
},
},

cjs_jsnext: {
dest: 'tmp/'
dest: 'tmp/',
},

uglify: {
options: {
preserveComments: 'some'
preserveComments: 'some',
},
build: {
files: {
'dist/Intl.min.js': ['dist/Intl.js']
}
}
'dist/Intl.min.js': ['dist/Intl.js'],
},
},
},

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

grunt.registerTask('build', [
'bundle_jsnext', 'uglify', 'cjs_jsnext', 'copy:src', 'concat:complete'
'bundle_jsnext', 'uglify', 'cjs_jsnext', 'copy:src', 'concat:complete',
]);

grunt.registerTask('cldr', ['clean:cldr', 'extract-cldr-data', 'compile-data']);
Expand Down
6 changes: 4 additions & 2 deletions dist/Intl.complete.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4aeaff6

Please sign in to comment.