moved to es6 module system

This commit is contained in:
Dolan Miu
2016-03-28 00:53:24 +01:00
parent 5c419cd3c4
commit 7a78dacf8c
19 changed files with 19265 additions and 24 deletions

8
scripts/test-prepare.js Normal file
View File

@ -0,0 +1,8 @@
var fs = require('fs');
var data = fs.readFileSync('build/tests/tests/docxTest.js'); //read existing contents into data
var fd = fs.openSync('build/tests/tests/docxTest.js', 'w+');
var buffer = new Buffer('var docx = require("../docx/docx");');
fs.writeSync(fd, buffer, 0, buffer.length); //write new data
fs.writeSync(fd, data, 0, data.length); //append old data
fs.close(fd);