Merge pull request #2298 from foghina/yo

[cli] convert project generation to use yeoman
This commit is contained in:
Felix Oghină 2015-08-17 13:51:24 +01:00
commit f11da8affb
6 changed files with 11 additions and 17 deletions

View File

@ -1,13 +0,0 @@
/**
* 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';
module.exports = {
dim: function(s) { return s; },
};

View File

@ -9,6 +9,9 @@
'use strict';
jest.autoMockOff();
jest.setMock('chalk', {
dim: function(s) { return s; },
});
describe('Activity', function() {
var Activity;

View File

@ -22,7 +22,8 @@ jest
.dontMock('../../AssetModule')
.dontMock('../../Module')
.dontMock('../../Package')
.dontMock('../../ModuleCache');
.dontMock('../../ModuleCache')
.setMock('chalk', { dim: function(s) { return s; } });
const Promise = require('promise');

View File

@ -10,7 +10,8 @@
jest.dontMock('../')
.dontMock('q')
.dontMock('../replacePatterns');
.dontMock('../replacePatterns')
.setMock('chalk', { dim: function(s) { return s; } });
jest.mock('path');

View File

@ -13,7 +13,8 @@ jest
.dontMock('underscore')
.dontMock('../../lib/ModuleTransport')
.setMock('uglify-js')
.dontMock('../');
.dontMock('../')
.setMock('chalk', { dim: function(s) { return s; } });
jest.mock('fs');

View File

@ -18,7 +18,8 @@ jest.setMock('worker-farm', function() { return function() {}; })
}
})
.setMock('uglify-js')
.dontMock('../');
.dontMock('../')
.setMock('chalk', { dim: function(s) { return s; } });
var Promise = require('promise');