Skip to content

Commit

Permalink
fixes #428, no more config command or documented file, delete delete …
Browse files Browse the repository at this point in the history
…delete
  • Loading branch information
dbashford committed Feb 1, 2015
1 parent b1a5a7c commit fae792a
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 242 deletions.
57 changes: 0 additions & 57 deletions lib/command/config.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var modCommands = function() {
require( './command/module/install' )( program );
require( './command/module/uninstall' )( program );
require( './command/module/list') ( program );
require( './command/module/config' )( program );
}
modCommandsAdded = true;
};
Expand All @@ -40,7 +39,6 @@ var makeTopLevelHelp = function() {
};

require( './command/watch' )( program );
require( './command/config' )( program );
require( './command/build' )( program );
require( './command/clean' )( program );
require( './command/external' )( program );
Expand Down
9 changes: 1 addition & 8 deletions lib/modules/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";
var all, allInstalled, builtIns, compilers, configModuleString, configured, configuredModules, exec, file, fs, independentlyInstalled, isMimosaModuleName, locallyInstalled, locallyInstalledNames, logger, meta, metaNames, mimosaPackage, modulesWithCommands, names, newmod, path, projectNodeModules, skels, standardlyInstalled, _,
var all, allInstalled, builtIns, compilers, configured, configuredModules, exec, file, fs, independentlyInstalled, isMimosaModuleName, locallyInstalled, locallyInstalledNames, logger, meta, mimosaPackage, modulesWithCommands, newmod, path, projectNodeModules, skels, standardlyInstalled, _,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

fs = require('fs');
Expand Down Expand Up @@ -99,12 +99,6 @@ meta = _.map(allInstalled, function(modInfo) {
}
});

metaNames = _.pluck(meta, 'name');

configModuleString = _.difference(metaNames, builtIns).length > 0 ? (names = metaNames.map(function(name) {
return name.replace('mimosa-', '');
}), JSON.stringify(names)) : void 0;

configured = function(moduleNames, callback) {
var index, processModule;
if (configuredModules) {
Expand Down Expand Up @@ -203,6 +197,5 @@ module.exports = {
installedMetadata: meta,
getConfiguredModules: configured,
all: all,
configModuleString: configModuleString,
modulesWithCommands: modulesWithCommands
};
29 changes: 0 additions & 29 deletions lib/util/config-builder.js

This file was deleted.

68 changes: 0 additions & 68 deletions src/command/config.coffee

This file was deleted.

1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ var makeTopLevelHelp = function() {
};

require( './command/watch' )( program );
require( './command/config' )( program );
require( './command/build' )( program );
require( './command/clean' )( program );
require( './command/external' )( program );
Expand Down
6 changes: 0 additions & 6 deletions src/modules/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ meta = _.map allInstalled, (modInfo) ->
logger.error "Unable to read file at [[ #{resolvedPath} ]], possibly a permission issue? \nsystem error : #{err}"
process.exit 1

metaNames = _.pluck meta, 'name'
configModuleString = if _.difference(metaNames, builtIns).length > 0
names = metaNames.map (name) -> name.replace 'mimosa-', ''
JSON.stringify names

configured = (moduleNames, callback) ->
return configuredModules if configuredModules

Expand Down Expand Up @@ -180,5 +175,4 @@ module.exports =
installedMetadata: meta
getConfiguredModules: configured
all: all
configModuleString: configModuleString
modulesWithCommands: modulesWithCommands
71 changes: 0 additions & 71 deletions src/util/config-builder.coffee

This file was deleted.

0 comments on commit fae792a

Please sign in to comment.