Files
htmx/scripts/www.js

13 lines
606 B
JavaScript

var config = require('../package.json');
var fs = require('fs-extra');
console.log(config.version)
var testRoot = "www/_/" + 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");