mirror of
https://github.com/EDCD/coriolis-data.git
synced 2025-12-08 23:23:23 +00:00
gitignore dist
This commit is contained in:
@@ -7,6 +7,10 @@ var exportString = JSON.stringify({ Ships: Ships, Modules: Modules, Modification
|
||||
var ast = UglifyJS.parse(['module.exports = ', JSON.stringify({ Ships: Ships, Modules: Modules, Modifications: Modifications }), ';'].join(''));
|
||||
var code = ast.print_to_string({beautify: true, indent_level: 2});
|
||||
|
||||
if (!fs.existsSync('./dist')){
|
||||
fs.mkdirSync('./dist');
|
||||
}
|
||||
|
||||
fs.open('./dist/index.json', 'w', function() {
|
||||
fs.writeFile('./dist/index.js', code, function(err) {});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user