Skip to content

Commit c82c39e

Browse files
committed
Merge pull request #147 from webrtc/revert-146-browserify
Revert "make adapter.js the result of browserification"
2 parents 40bdcee + 34d8bcd commit c82c39e

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

Gruntfile.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
module.exports = function(grunt) {
77
grunt.initConfig({
88
pkg: grunt.file.readJSON('package.json'),
9-
browserify: {
10-
js: {
11-
src: ['adapter-core.js'],
12-
dest: 'adapter.js'
13-
}
14-
},
159
githooks: {
1610
all: {
1711
'pre-commit': 'jshint jscs'
@@ -21,10 +15,10 @@ module.exports = function(grunt) {
2115
options: {
2216
jshintrc: '.jshintrc'
2317
},
24-
files: ['adapter-core.js', 'test/*.js']
18+
files: ['adapter.js', 'test/*.js']
2519
},
2620
jscs: {
27-
src: ['adapter-core.js', 'test/*.js'],
21+
src: ['adapter.js', 'test/*.js'],
2822
options: {
2923
config: '.jscsrc',
3024
'excludeFiles': [
@@ -39,9 +33,8 @@ module.exports = function(grunt) {
3933
grunt.loadNpmTasks('grunt-contrib-jshint');
4034
grunt.loadNpmTasks('grunt-jscs');
4135
grunt.loadNpmTasks('grunt-githooks');
42-
grunt.loadNpmTasks('grunt-browserify');;
4336
grunt.registerTask('verify-require', 'Verifies the script can be required in a node context', function () {
4437
require('./adapter');
4538
});
46-
grunt.registerTask('default', ['jshint', 'jscs', 'browserify', 'verify-require']);
39+
grunt.registerTask('default', ['jshint', 'jscs', 'verify-require']);
4740
};
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.2.4",
44
"description": "Hide browser differences in WebRTC APIs (test package name)",
55
"license": "BSD-3-Clause",
6-
"main": "adapter-core.js",
6+
"main": "adapter.js",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/webrtc/adapter.git"
@@ -15,8 +15,8 @@
1515
"files": "test/test.js"
1616
},
1717
"devDependencies": {
18+
"browserify": "^10.2.1",
1819
"grunt": "^0.4.5",
19-
"grunt-browserify": "^4.0.1",
2020
"grunt-cli": ">=0.1.9",
2121
"grunt-contrib-jshint": "^0.11.2",
2222
"grunt-contrib-nodeunit": "~0.4.1",

test/test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ console.log = function() {
1515
saveConsole.apply(saveConsole, arguments);
1616
};
1717

18-
var m = require('../adapter-core.js');
18+
var m = require('../adapter.js');
1919
console.log = saveConsole;
2020

2121
test('log suppression', function(t) {
@@ -894,7 +894,6 @@ test('iceTransportPolicy relay functionality', function(t) {
894894
});
895895
});
896896

897-
/*
898897
// This MUST to be the last test since it loads adapter
899898
// again which may result in unintended behaviour.
900899
test('Non-module logging to console still works', function(t) {
@@ -932,4 +931,3 @@ test('Non-module logging to console still works', function(t) {
932931
t.end();
933932
}, 500);
934933
});
935-
*/

0 commit comments

Comments
 (0)