Second Updates from Mon 23 Mar

- [ReactNative] Use deprecated ix in TabBarExample | Amjad Masad
- [ReactNative] Expanded license on obj-c files | Christopher Chedeau
- [ReactNative] Expanded license on js files | Christopher Chedeau
- [ReactNative] Fix React Devtools integration | Alex Kotliarskyi
- [Text] Account for font leading so descenders are not clipped | James Ide
- [ReactNative] Expanded license on js packager files | Christopher Chedeau
- more UIExplorer flow | Basil Hosmer
- [react-packager] Pick up package changes while running | Amjad Masad
- Added a graph view and a ReactNative metric that displays current queue and execution time for the JS thread. | Bryce Redd
- [ReactNative] Add NativeModules and DeviceEventEmitter to react-native exports | Alex Kotliarskyi
This commit is contained in:
Christopher Chedeau 2015-03-23 15:07:33 -07:00
parent fef4119be0
commit 9a6db3d6e6
56 changed files with 476 additions and 79 deletions

View File

@ -1,5 +1,10 @@
/** /**
* Copyright 2004-present Facebook. All Rights Reserved. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
'use strict'; 'use strict';
@ -8,7 +13,6 @@
var sharedBlacklist = [ var sharedBlacklist = [
__dirname, __dirname,
'website', 'website',
'node_modules/parse/node_modules/xmlhttprequest/lib/XMLHttpRequest.js',
'node_modules/react-tools/src/utils/ImmutableObject.js', 'node_modules/react-tools/src/utils/ImmutableObject.js',
'node_modules/react-tools/src/core/ReactInstanceHandles.js', 'node_modules/react-tools/src/core/ReactInstanceHandles.js',
'node_modules/react-tools/src/event/EventPropagators.js' 'node_modules/react-tools/src/event/EventPropagators.js'

View File

@ -1,4 +1,13 @@
<!doctype html> <!doctype html>
<!--
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
-->
<html> <html>
<head> <head>
<meta charset=utf-8> <meta charset=utf-8>

View File

@ -1,5 +1,11 @@
#!/usr/bin/env osascript #!/usr/bin/env osascript
-- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
on run argv on run argv
set theURL to item 1 of argv set theURL to item 1 of argv

View File

@ -1,5 +1,10 @@
/** /**
* Copyright 2004-present Facebook. All Rights Reserved. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
'use strict'; 'use strict';

View File

@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# Set terminal title # Set terminal title
echo -en "\033]0;React Packager\a" echo -en "\033]0;React Packager\a"
clear clear

View File

@ -1,5 +1,10 @@
/** /**
* Copyright 2004-present Facebook. All Rights Reserved. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
'use strict'; 'use strict';

View File

@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
ulimit -n 4096 ulimit -n 4096
THIS_DIR=$(dirname "$0") THIS_DIR=$(dirname "$0")

View File

@ -1,5 +1,10 @@
/** /**
* Copyright 2004-present Facebook. All Rights Reserved. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* *
* Wrapper on-top of `optimist` in order to properly support boolean flags * Wrapper on-top of `optimist` in order to properly support boolean flags
* and have a slightly less akward API. * and have a slightly less akward API.

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
module.exports = function() { module.exports = function() {

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var EventEmitter = require('events').EventEmitter; var EventEmitter = require('events').EventEmitter;
var servers = {}; var servers = {};
exports.createServer = function(listener) { exports.createServer = function(listener) {

View File

@ -1,4 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule bar * @providesModule bar
*/ */

View File

@ -1,4 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule foo * @providesModule foo
*/ */

View File

@ -1,6 +1,12 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule index * @providesModule index
* @jsx React.DOM
*/ */
require('main'); require('main');

View File

@ -1,4 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule Channel * @providesModule Channel
*/ */

View File

@ -1,4 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule XHR * @providesModule XHR
*/ */

View File

@ -1,4 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule code * @providesModule code
*/ */
var XHR = require('XHR'); var XHR = require('XHR');

View File

@ -1,4 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule main * @providesModule main
*/ */
var Channel = require('Channel'); var Channel = require('Channel');

View File

@ -1,3 +1,13 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
html { html {
font-family: sans-serif; font-family: sans-serif;
} }

View File

@ -1,4 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<!--
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
-->
<html> <html>
<head> <head>
<link rel="stylesheet" type="text/css" href="css/index.css"> <link rel="stylesheet" type="text/css" href="css/index.css">

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var Activity = require('./src/Activity'); var Activity = require('./src/Activity');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest.autoMockOff(); jest.autoMockOff();

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var COLLECTION_PERIOD = 1000; var COLLECTION_PERIOD = 1000;

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
function ModuleDescriptor(fields) { function ModuleDescriptor(fields) {

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var fs = jest.genMockFromModule('fs'); var fs = jest.genMockFromModule('fs');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest jest

View File

@ -1,17 +1,10 @@
/** /**
* Copyright 2013 Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * This source code is licensed under the BSD-style license found in the
* you may not use this file except in compliance with the License. * LICENSE file in the root directory of this source tree. An additional grant
* You may obtain a copy of the License at * of patent rights can be found in the PATENTS file in the same directory.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
'use strict'; 'use strict';

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var ModuleDescriptor = require('../../ModuleDescriptor'); var ModuleDescriptor = require('../../ModuleDescriptor');
@ -296,6 +304,15 @@ DependecyGraph.prototype._findAndProcessPackage = function(files, root) {
} }
if (packagePath != null) { if (packagePath != null) {
return this._processPackage(packagePath);
} else {
return q();
}
};
DependecyGraph.prototype._processPackage = function(packagePath) {
var packageRoot = path.dirname(packagePath);
var self = this;
return readFile(packagePath, 'utf8') return readFile(packagePath, 'utf8')
.then(function(content) { .then(function(content) {
var packageJson; var packageJson;
@ -314,15 +331,21 @@ DependecyGraph.prototype._findAndProcessPackage = function(files, root) {
return q(); return q();
} }
packageJson._root = root; packageJson._root = packageRoot;
self._packageByRoot[root] = packageJson; self._addPackageToIndices(packageJson);
self._packagesById[packageJson.name] = packageJson;
return packageJson; return packageJson;
}); });
} else { };
return q();
} DependecyGraph.prototype._addPackageToIndices = function(packageJson) {
this._packageByRoot[packageJson._root] = packageJson;
this._packagesById[packageJson.name] = packageJson;
};
DependecyGraph.prototype._removePackageFromIndices = function(packageJson) {
delete this._packageByRoot[packageJson._root];
delete this._packagesById[packageJson.name];
}; };
/** /**
@ -436,16 +459,27 @@ DependecyGraph.prototype._processFileChange = function(eventType, filePath, root
this._debugUpdateEvents.push({event: eventType, path: filePath}); this._debugUpdateEvents.push({event: eventType, path: filePath});
var isPackage = path.basename(filePath) === 'package.json';
if (eventType === 'delete') { if (eventType === 'delete') {
if (isPackage) {
var packageJson = this._packageByRoot[path.dirname(absPath)];
if (packageJson) {
this._removePackageFromIndices(packageJson);
}
} else {
var module = this._graph[absPath]; var module = this._graph[absPath];
if (module == null) { if (module == null) {
return; return;
} }
this._deleteModule(module); this._deleteModule(module);
}
} else if (!(stat && stat.isDirectory())) { } else if (!(stat && stat.isDirectory())) {
var self = this; var self = this;
this._loading = this._loading.then(function() { this._loading = this._loading.then(function() {
if (isPackage) {
return self._processPackage(absPath);
}
return self._processModule(absPath); return self._processModule(absPath);
}); });
} }

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest.dontMock('../') jest.dontMock('../')

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var path = require('path'); var path = require('path');

View File

@ -1,17 +1,10 @@
/** /**
* Copyright 2013 Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * This source code is licensed under the BSD-style license found in the
* you may not use this file except in compliance with the License. * LICENSE file in the root directory of this source tree. An additional grant
* You may obtain a copy of the License at * of patent rights can be found in the PATENTS file in the same directory.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* *
* This pipes all of our console logging functions to native logging so that * This pipes all of our console logging functions to native logging so that
* JavaScript errors in required modules show up in Xcode via NSLog. * JavaScript errors in required modules show up in Xcode via NSLog.

View File

@ -1,5 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* The particular require runtime that we are using looks for a global * The particular require runtime that we are using looks for a global
* `ErrorUtils` object and if it exists, then it requires modules with the * `ErrorUtils` object and if it exists, then it requires modules with the
* error handler specified via ErrorUtils.setGlobalHandler by calling the * error handler specified via ErrorUtils.setGlobalHandler by calling the

View File

@ -1,17 +1,10 @@
/** /**
* Copyright 2013 Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * This source code is licensed under the BSD-style license found in the
* you may not use this file except in compliance with the License. * LICENSE file in the root directory of this source tree. An additional grant
* You may obtain a copy of the License at * of patent rights can be found in the PATENTS file in the same directory.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* *
* This pipes all of our console logging functions to native logging so that * This pipes all of our console logging functions to native logging so that
* JavaScript errors in required modules show up in Xcode via NSLog. * JavaScript errors in required modules show up in Xcode via NSLog.

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var HasteDependencyResolver = require('./haste'); var HasteDependencyResolver = require('./haste');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var Promise = require('q').Promise; var Promise = require('q').Promise;

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
module.exports = { module.exports = {

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest jest

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var EventEmitter = require('events').EventEmitter; var EventEmitter = require('events').EventEmitter;
@ -56,7 +64,7 @@ function createWatcher(root) {
} }
return detectingWatcherClass.then(function(Watcher) { return detectingWatcherClass.then(function(Watcher) {
var watcher = new Watcher(root, {glob: '**/*.js'}); var watcher = new Watcher(root, {glob: ['**/*.js', '**/package.json']});
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
var rejectTimeout = setTimeout(function() { var rejectTimeout = setTimeout(function() {

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var _ = require('underscore'); var _ = require('underscore');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
// Bug with Jest because we're going to the node_modules that is a sibling // Bug with Jest because we're going to the node_modules that is a sibling

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
// Bug with Jest because we're going to the node_modules that is a sibling // Bug with Jest because we're going to the node_modules that is a sibling

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
module.exports = function (data, callback) { module.exports = function (data, callback) {

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest jest

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest jest

View File

@ -1,4 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var fs = require('fs'); var fs = require('fs');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var transformer = require('./transformer'); var transformer = require('./transformer');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var _ = require('underscore'); var _ = require('underscore');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest.autoMockOff(); jest.autoMockOff();

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest jest

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var assert = require('assert'); var assert = require('assert');

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest.setMock('worker-farm', function() { return function() {}; }) jest.setMock('worker-farm', function() { return function() {}; })

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
var url = require('url'); var url = require('url');
@ -67,7 +75,7 @@ function Server(options) {
this._debouncedFileChangeHandler = _.debounce(function(filePath) { this._debouncedFileChangeHandler = _.debounce(function(filePath) {
self._rebuildPackages(filePath); self._rebuildPackages(filePath);
self._informChangeWatchers(); self._informChangeWatchers();
}, 50, true); }, 50);
} }
Server.prototype._onFileChange = function(type, filepath, root) { Server.prototype._onFileChange = function(type, filepath, root) {

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
module.exports = function(declared) { module.exports = function(declared) {

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict'; 'use strict';
jest.autoMockOff(); jest.autoMockOff();

View File

@ -1,4 +1,11 @@
/** /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Declares, validates and defaults options. * Declares, validates and defaults options.
* var validate = declareOpts({ * var validate = declareOpts({
* foo: { * foo: {

View File

@ -1,5 +1,10 @@
/** /**
* Copyright 2004-present Facebook. All Rights Reserved. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* *
* Note: This is a fork of the fb-specific transform.js * Note: This is a fork of the fb-specific transform.js
*/ */

View File

@ -1,7 +1,11 @@
/** /**
* Copyright 2004-present Facebook. All Rights Reserved. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
'use strict'; 'use strict';
var WebSocketServer = require('ws').Server; var WebSocketServer = require('ws').Server;