Showing 60 of 84 total issues
Function installPeerModules
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function installPeerModules(project, dependencies, projectDir) {
var originalCwd = process.cwd();
return new Promise(function(resolve, reject) {
projectDir = typeof projectDir !== 'undefined' ? projectDir : project;
Function exports
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(Table, env, lib, repl, local) {
function Commands() {
this.help = 'Lists all of the REPL commands';
this.aliases = ['h', 'help'];
this.table = new Table({
Function Services
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Services() {
this.help = 'Lists all of the services within this project';
this.services = {};
this.table = new Table({
head: [
Function get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var get = exports.get = function(pkg, url, dir) {
if (arguments.length < 3) {
var name = pkg.name.split('@')[ 0 ];
dir = url;
url = 'https://github.com/' + pkg.owner + '/' + name + '/archive/master.tar.gz';
Function runTask
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runTask(projectFolder, command) {
var args = [].slice.call(arguments, 1);
return new Promise(function(resolve, reject) {
var cmd = !isWin ? 'grunt' : 'grunt.cmd'
Function ReplHistory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ReplHistory() {
this.help = 'Shows command history';
var maxSize = 10240
, lastLine = null
Function generateRun
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateRun(projects, tmpls, names, fn) {
async.each(
projects,
function(project, next) {
generator.fs
Function installFrontendModules
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var installFrontendModules = exports.installFrontendModules = function(location, packages) {
return new Promise(function(resolve, reject) {
async.eachSeries(
packages,
function(pkg, next) {
Function installWithBower
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.installWithBower = function(location, packages) {
return new Promise(function(resolve, reject) {
async.each(
packages,
function(pkg, next) {
Function initBar
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.initBar = function() {
if (undefined === bar) {
bar = require('node-status');
bar.clear();
Function generateScaffold
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateScaffold(project, name, filterOut, fn) {
var _path = path.join(__dirname, '..', 'templates', project.name)
, walk = require('findit')(_path)
, dirs = []
, files = []
Function bower
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var searchBower = exports.bower = function(query) {
return new Promise(function(resolve) {
var pkg = query.split('@');
_pkg.getJSON({
Function listBower
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function listBower() {
return new Promise(function(resolve) {
var repos = [];
utils.info(' Searching Bower...');
Function installNpmDependencies
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function installNpmDependencies(callback) {
var opts = {cwd: moduleDir, env: process.env}
, args = ['install', '--prefix', projectFolder].concat(deps)
, cmd = !isWin ? 'npm' : 'npm.cmd';
Function runDBMigrations
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runDBMigrations(projectFolder) {
lib.utils.warn('Running database migrations...');
return new Promise(function(resolve, reject) {
var env = process.env
Function get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var get = exports.get = function( useCWD, fn ) {
return new Promise( function( resolve, reject ) {
if ( typeof useCWD === 'function' ) {
fn = useCWD;
useCWD = false;
Function checkFiles
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.checkFiles = function(project, dirs, tmpls, names) {
return new Promise(function(resolve, reject) {
var found = false;
async.each(
Function addPeerDependenciesToMain
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addPeerDependenciesToMain(backendPath) {
return new Promise(function(resolve, reject) {
var pkgPath = path.join(backendPath.moduleDir, 'package.json')
, projectPkg = require(pkgPath)
, dependencies = {}
Function installWithNpm
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.installWithNpm = function(location, packages) {
return new Promise(function(resolve, reject) {
async.each(
packages,
function(pkg, next) {
Function walkChildren
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function walkChildren( list, seedFound, callback ) {
var newList = [];
if ( !!seedFound ) {
newList.push( seedFound );