Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Update build.js #101

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 11 additions & 2 deletions build.js
Expand Up @@ -310,6 +310,11 @@ build.print = function ( out, overrideVerbose ) {
}
};

if ( process.argv.indexOf('no-min') > -1 ) {
build.doMinify = false;
}


if ( process.argv.indexOf('no-min') > -1 ) {
build.doMinify = false;
}
Expand All @@ -320,9 +325,13 @@ var files = [
'./source/bot.js',
'./source/adapter.js',
'./source/users.js',
'./source/personality.js',
'./source/plugins/'
'./source/personality.js'
];

if ( process.argv.indexOf('no-plugins') < 0 ) {
files.push('./source/plugins/');
}

function filter ( fileName ) {
return (
//only .js files
Expand Down