Skip to content

Commit

Permalink
remove jsb && jsb_polyfill (cocos#2913)
Browse files Browse the repository at this point in the history
  • Loading branch information
PPpro authored and pandamicro committed Jun 28, 2018
1 parent 1f94f81 commit 8299a90
Show file tree
Hide file tree
Showing 55 changed files with 10 additions and 10,167 deletions.
18 changes: 9 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ gulp.task('build-jsb-dev', ['clean-cache', 'build-debug-infos'], function (done
}

Engine.buildJsb([
'./jsb/index.js',
], './bin/jsb_polyfill.dev.js', [], opts, done);
'./index.js',
], './bin/cocos2d-jsb.js', [], opts, done);
});

gulp.task('build-jsb-min', ['clean-cache', 'build-debug-infos'], function (done) {
Expand All @@ -81,14 +81,14 @@ gulp.task('build-jsb-min', ['clean-cache', 'build-debug-infos'], function (done
}

Engine.buildJsbMin([
'./jsb/index.js',
], './bin/jsb_polyfill.js', [], opts, done);
'./index.js',
], './bin/cocos2d-jsb-min.js', [], opts, done);
});

gulp.task('build-jsb-preview', ['build-debug-infos'], function (done) {
Engine.buildJsbPreview([
'./jsb/index.js',
], './bin/jsb_polyfill-for-preview.js', [], done);
'./index.js',
], './bin/cocos2d-jsb-for-preview.js', [], done);
});

gulp.task('build-jsb', ['build-jsb-preview', 'build-jsb-dev', 'build-jsb-min']);
Expand Down Expand Up @@ -151,7 +151,7 @@ gulp.task('clean-cache', function (done) {

// fast build, only for develop
gulp.task('build-dev', ['clean-cache', 'build-html5-preview', 'build-jsb-preview'], function (done) {
Del(['./bin/jsb_polyfill.js', './bin/jsb_polyfill.dev.js'], done);
Del(['./bin/cocos2d-jsb-min.js', './bin/cocos2d-jsb.js'], done);
});

// only build preview for html5 since it will built by editor
Expand All @@ -174,8 +174,8 @@ gulp.task('watch-preview', function () {

gulp.task('watch-jsb-polyfill', function () {
Watch.jsbPolyfill([
'./jsb/index.js',
], './bin/jsb_polyfill.dev.js');
'./index.js',
], './bin/cocos2d-jsb.js');
});

gulp.task('watch-dev-files', ['watch-preview', 'watch-jsb-polyfill']);
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,4 @@ if (CC_EDITOR) {
}
}

if (CC_JSB) {
require('./jsb/jsb-loader.js');
}

module.exports = cc;
3 changes: 0 additions & 3 deletions jsb/builtin/.babelrc

This file was deleted.

229 changes: 0 additions & 229 deletions jsb/builtin/Blob.js

This file was deleted.

1 change: 0 additions & 1 deletion jsb/builtin/base64/base64.min.js

This file was deleted.

Loading

0 comments on commit 8299a90

Please sign in to comment.