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.
 
 
 

10 lines
394 B

  1. const fs = require('fs');
  2. module.exports = function (data) {
  3. const serverString = `module.exports = ${JSON.stringify(data, null, '\t')};`;
  4. fs.writeFileSync('../../../src/server/config/passiveTree.js', serverString);
  5. const clientString = `define([], function() { return ${JSON.stringify(data)}; });`;
  6. fs.writeFileSync('../../../src/client/ui/templates/passives/temp.js', clientString);
  7. };