Skip to content

Commit

Permalink
build(npm): Update build task to perform all steps (es6, es5 and npm)
Browse files Browse the repository at this point in the history
Build task now generates es6, es5, and npm files. Ready for 1.0.0 version on NPM

BREAKING CHANGE: Not really breaking, but adding it so that we get 1.0.0 from semantic-release
  • Loading branch information
Skotiniotis authored and therapon committed May 9, 2017
1 parent 77e3d05 commit d0004df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module.exports = function(grunt) {
main: {
files: [
{ expand: true,
src: ['dist/amd/es6/*.js'],
src: ['dist/amd/es5/*.js'],
dest: 'browser/scripts/ion/',
flatten: true
}
Expand Down Expand Up @@ -125,9 +125,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('remap-istanbul');
grunt.loadNpmTasks('intern');

grunt.registerTask('build', ['clean', 'ts:amd-es6', 'ts:commonjs-es6','copy:main']);
grunt.registerTask('build', ['clean', 'ts:amd-es6','copy:main']);
grunt.registerTask('toES5', ['build', 'babel']);
grunt.registerTask('build', ['clean', 'ts:amd-es6', 'ts:commonjs-es6','babel', 'copy:main']);
grunt.registerTask('test', ['build', 'intern:es6']);
grunt.registerTask('doc', ['test', 'typedoc']);
grunt.registerTask('coverage', ['doc', 'remapIstanbul']);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"JSON",
"data format"
],
"author": "The Ion Team <[email protected]> (https://amznlabs.github.io/ion-docs/)",
"author": "The Ion Team <[email protected]> (https://amzn.github.io/ion-docs/index.html)",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/amzn/ion-js/issues"
Expand Down

0 comments on commit d0004df

Please sign in to comment.