Add test/test-build.js.

Former-commit-id: b0c28b814dec71095a927469cbbda766fd9fc701
This commit is contained in:
John-David Dalton
2012-09-08 14:03:21 -07:00
parent a228be85e2
commit 4f7323f7fc
3 changed files with 600 additions and 19 deletions

View File

@@ -361,10 +361,10 @@
var filePath = options[options.length - 1],
dirPath = path.dirname(filePath),
workingName = path.basename(filePath, '.js') + '.min',
outputPath = path.join(dirPath, workingName + '.js'),
isSilent = options.indexOf('-s') > -1 || options.indexOf('--silent') > -1,
source = fs.readFileSync(filePath, 'utf8'),
workingName = path.basename(filePath, '.js') + '.min';
source = fs.readFileSync(filePath, 'utf8');
minify(source, {
'silent': isSilent,