You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
559 B
16 lines
559 B
|
6 years ago
|
var combine = require('./lib/combine'),
|
||
|
|
dep = require('./lib/dependency'),
|
||
|
|
fs = require('fs'),
|
||
|
|
path = require('path'),
|
||
|
|
config = require('./lib/config'),
|
||
|
|
UglifyJS = require("uglify-js");
|
||
|
|
|
||
|
|
config.parse( path.join(__dirname, 'config.json') );
|
||
|
|
dep.init(config);
|
||
|
|
combine.init(dep, config);
|
||
|
|
|
||
|
|
var testUri = path.resolve(__dirname, '../', 'client/js/mindmap.js'),
|
||
|
|
testOutput = path.resolve(__dirname, '../', 'client/js/mindmap.min.js');
|
||
|
|
|
||
|
|
combine.combineFile(testUri, testOutput);
|
||
|
|
fs.writeFileSync(testOutput, UglifyJS.minify(testOutput).code);
|