mirror of
https://github.com/EDCD/coriolis-data.git
synced 2025-12-08 15:13:23 +00:00
gitignore dist
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ node_modules/*
|
|||||||
.idea
|
.idea
|
||||||
.vscode/
|
.vscode/
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
dist/
|
||||||
|
|||||||
32692
dist/index.js
vendored
32692
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
43979
dist/index.json
vendored
43979
dist/index.json
vendored
File diff suppressed because it is too large
Load Diff
@@ -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 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});
|
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.open('./dist/index.json', 'w', function() {
|
||||||
fs.writeFile('./dist/index.js', code, function(err) {});
|
fs.writeFile('./dist/index.js', code, function(err) {});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
"jasmine-no-stack": "jasmine-node --noStack spec",
|
"jasmine-no-stack": "jasmine-node --noStack spec",
|
||||||
"test": "npm run lint && npm run jasmine-no-stack",
|
"test": "npm run lint && npm run jasmine-no-stack",
|
||||||
"start": "node generate_distribution.js",
|
"start": "node generate_distribution.js",
|
||||||
"build": "node generate_distribution.js"
|
"build": "node generate_distribution.js",
|
||||||
|
"install": "node generate_distribution.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^2.2.0",
|
"eslint": "^2.2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user