danwrong / loadbuilder Goto Github PK
View Code? Open in Web Editor NEWNode package for building combine minified JavaScript files for use with Loadrunner
Node package for building combine minified JavaScript files for use with Loadrunner
Our project manually manages dependencies, so we just want to pass a authoritative list of files to the builder.
[jacob@TW-MBP13-JThornton ~/workspace/loadbuilder/test (master)]$ expresso shot.js
Loading file: [ 'mod1-simple', 'modules/mod1-simple.js' ]
Loading file: [ 'mod1_a', 'modules/mod1_a.js' ]
Loading file: [ 'sub/mod1_b', 'modules/sub/mod1_b.js' ]
shot.js testScript: AssertionError: "mod4_a" == "javascripts/script1.js"
at /Users/jacob/workspace/loadbuilder/test/shot.js:113:12
at Array.forEach (native)
at /Users/jacob/workspace/loadbuilder/test/shot.js:112:27
at next (/usr/local/lib/node_modules/expresso/bin/expresso:790:25)
at next (/usr/local/lib/node_modules/expresso/bin/expresso:804:26)
at next (/usr/local/lib/node_modules/expresso/bin/expresso:804:26)
at next (/usr/local/lib/node_modules/expresso/bin/expresso:804:26)
at next (/usr/local/lib/node_modules/expresso/bin/expresso:804:26)
at runSuite (/usr/local/lib/node_modules/expresso/bin/expresso:808:6)
at check (/usr/local/lib/node_modules/expresso/bin/expresso:714:16)
Failures: 1
if i clone master and run tests they fail... am i missing something?
I was attempting to install per the instructions and npm
kicked back an error:
npm info using [email protected]
npm info using [email protected]
npm info calculating sha1 [REDACTED]/.node_libraries/.npm/.cache/loadbuilder/0.1.1/package.tgz
npm info shasum cd9261a4dd18e7e674fe960550a95f6537c4f1b7
npm ERR! Error: Using '>=' with 0.x.x makes no sense. Don't do it.
I'm did a fresh pull from master and I still see the issue. Is there some minimum/maximum version of npm
?
Using provide("foo", function () {})
logs this to the console string thing is null
(which i'm assuming is an error).
Not sure if anything bad is actually happening... but removing "foo" and just using provide(fn)
does the trick.
Should "mkdir -p" on the output file.
Or at least throw an error if it can't write to it.
Create generateManifest method to produce a list of files in bundles.
Also update loadrunner to efficiently process this list.
Because of the mkdir.
Not sure if this would be possible... but in node, something that I really like is being able to specify an index.js file, which will load when a directory is passed to require.
Soo... if you had directory foo in your root, which contained an index.js file, you could load it by doing:
var foo = require('foo');
This could be nice when you're trying to avoid stuff like:
using ('components/modal/modal', function () {}); //where modal.js is one of many modal files
Bad!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.