Stable URL (v2.0.17, 21 March 2016) - http://www.softwareishard.com/har/viewer/
Up-to-date master - http://gitgrimbo.github.io/harviewer/master/ (and https)
- Author: Jan Odvarko, [email protected]
- http://www.softwareishard.com/
- Issue list: https://github.com/janodvarko/harviewer/issues
- Project home: https://github.com/janodvarko/harviewer
HAR Viewer is free and open source software distributed under the BSD License.
- Application Components:
- RequireJS: http://requirejs.org/
- jQuery: http://jquery.com/
- jQuery JSON plugin: Jim Dalton ([email protected]), based on http://www.JSON.org/json2.js
- Domplate + Domplate based templates: http://getfirebug.com
- Downloadify: http://github.com/dcneiner/Downloadify/
- SWFObject 2.0: http://code.google.com/p/swfobject/
- Code Syntax Highlighter: http://alexgorbatchev.com/SyntaxHighlighter/
- JSON Query: https://github.com/JasonSmith/jsonquery, http://www.sitepen.com/blog/2008/07/16/jsonquery-data-querying-beyond-jsonpath/
- Java 8 (for Nashorn/jjs build)
- Ant: http://ant.apache.org/
- js-build-tools: http://code.google.com/p/js-build-tools/
- js-min (ant task): http://code.google.com/p/jsmin-ant-task/
- JSDoc: http://usejsdoc.org/
- Rhino: http://www.mozilla.org/rhino/
- Node.js: https://nodejs.org/
- ESLint: http://eslint.org/
- Selenium: http://seleniumhq.org/
- Intern: https://theintern.github.io/ (preferred, see tests)
- PHPUnit: http://www.phpunit.de/ (deprecated, see tests)
HAR Viewer uses ESLint for linting. It will be installed when you run npm install
from the project root.
To show lint errors only:
npm run eslint
To show lint errors and warnings:
npm run eslint-full
The HAR Viewer build process uses Ant as its build tool. To see a list of available tasks, use ant -p
at the command line.
A build can be performed in one of three ways.
This is the default and preferred method. Node.js must be installed. To start a build, go to the project directory and execute the following command:
ant build
(Indicative build time - about 9 seconds. Node.js v6.0.0)
To build using the jjs command, Java 8 must be installed. Execute the following command:
ant -Drjs.runner=nashorn build
(Indicative build time - about 1 minute 37 seconds. nashorn 1.8.0_92)
To build using Java 7 or earlier, execute the following command:
ant -Drjs.runner=java build
You will have to set the optimize build configuration value to "closure"
, for example:
optimize: "closure",
(Indicative build time - about 42 seconds)
4) Build with r.js
` cd webapp/scripts
node ../../r.js/dist/r.js -o app.build.js `
Certain build properties can be overridden at the command line. For example, to provide the VERSION
and GOOGLE-ANALYTICS-PROFILE
values:
ant build -DVERSION=3.0.0 -DGOOGLE-ANALYTICS-PROFILE=TRACKING_ID_HERE