mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-01-25 05:06:13 +00:00
infrastructure for copying out a version of htmx for testing in the broader browser world
This commit is contained in:
13
scripts/www.js
Normal file
13
scripts/www.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user