[cli] convert project generation to use yeoman

This commit is contained in:
Felix Oghină 2015-08-04 12:50:22 +01:00
parent 1d6f7c9cc7
commit 6ed3ba3e41
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'; 'use strict';
jest.autoMockOff(); jest.autoMockOff();
jest.setMock('chalk', {
dim: function(s) { return s; },
});
describe('Activity', function() { describe('Activity', function() {
var Activity; var Activity;

View File

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

View File

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

View File

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

View File

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