Skip to content

Commit

Permalink
0.3.0 release: es6 + babel + 52 tests + bug fixes (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusmaso committed Mar 2, 2016
1 parent 9e1252f commit 4aa6a17
Show file tree
Hide file tree
Showing 14 changed files with 1,517 additions and 1,126 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
npm-debug.log
tmp/
29 changes: 23 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,33 @@ module.exports = function(grunt) {
banner: '<%= meta.banner %>'
},
build: {
src: 'src/<%= pkg.name %>.js',
src: 'dist/<%= pkg.name %>.js',
dest: 'dist/<%= pkg.name %>.min.js'
}
},
concat: {
babel: {
options: {
presets: ['es2015']
},
dist: {
files: [
{
expand: true,
cwd: 'src/',
src: ['**/*.js'],
dest: 'tmp/'
}
]
}
},
browserify: {
options: {
banner: '<%= meta.banner %>'
},
dist: {
src: ['src/**/*.js'],
dest: 'dist/<%= pkg.name %>.js'
files: {
'dist/<%= pkg.name %>.js': ['tmp/**/*.js']
}
}
},
mocha: {
Expand All @@ -44,8 +60,9 @@ module.exports = function(grunt) {
});

grunt.loadNpmTasks('grunt-mocha');
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');

grunt.registerTask('default', ['uglify', 'concat', 'mocha']);
grunt.registerTask('default', ['babel', 'browserify', 'uglify', 'mocha']);
};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var nodes = Handlebars.parseHTML(template(context));

context.foo = 321;

Platform.performMicrotaskCheckpoint(); // older browsers support
Platform.performMicrotaskCheckpoint(); // for older browsers support (optional)
```

## Examples
Expand Down
Loading

0 comments on commit 4aa6a17

Please sign in to comment.