summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/www.js
blob: 00195f4444ae7668a42ca49fdb64a11bd09fd900 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
var config = require('../package.json');
var fs = require('fs-extra');

console.log(config.version)

var testRoot = "www/v/" + config.version;
fs.ensureDirSync(testRoot);
fs.copySync("node_modules/mocha/mocha.js", testRoot + "/node_modules/mocha/mocha.js");
fs.copySync("node_modules/mocha/mocha.css", testRoot + "/node_modules/mocha/mocha.css");
fs.copySync("node_modules/chai/chai.js", testRoot + "/node_modules/chai/chai.js");
fs.copySync("node_modules/sinon/pkg/sinon.js", testRoot + "/node_modules/sinon/pkg/sinon.js");
fs.copySync("test/", testRoot + "/test");
fs.copySync("src/", testRoot + "/src");