feat(seed): "unpack" and "repack" scripts
add "npm run seed" as alias to "node seed" unpack tests and solution into HTML file; add titles and help text; style unpacked file enable running unpacked assert tests in browser Using browserify, compile "tape", "lodash", jQuery into "unpacked-bundle.js" for use during in-browser unpacked tests feat(seed): diff after repacking feat(seed): unpacked tests use Browser TAP chrome dev tool if available
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
c754880476
commit
590f646263
18
unpacked.js
Normal file
18
unpacked.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/* eslint-disable no-unused-vars,max-len */
|
||||
window._ = require('lodash');
|
||||
window.test = require('tape').test;
|
||||
|
||||
// check for Browser TAP chrome extension, available here:
|
||||
// https://chrome.google.com/webstore/detail/browser-tap/ncfblaiipckncgeipgmpdioedcdmofei?hl=en
|
||||
if (window.tapExtension) {
|
||||
window.test = window.tapExtension(window.test);
|
||||
}
|
||||
|
||||
window.addAssertsToTapTest = require('./addAssertsToTapTest');
|
||||
window.$ = require('jquery');
|
||||
|
||||
test('framework', function(t) {
|
||||
t.plan(1);
|
||||
t.equal(1, 1, 'one equals one');
|
||||
});
|
||||
|
Reference in New Issue
Block a user