Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for CommonJS module loaders (e.g. Webpack) #19

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

# ngMidwayTester [![Build Status](https://travis-ci.org/yearofmoo/ngMidwayTester.png?branch=master)](https://travis-ci.org/yearofmoo/ngMidwayTester)

A pure-javascript integration tester for AngularJS that can be run inline with application code.

## Installation

1. run `npm install ng-midway-tester`.
2. include `./node_modules/ngMidwayTester/src/ngMidwayTester.js` into your test runner.
2. If using Webpack or Browserify then simply use `var ngMidwayTester = require('ng-midway-tester');`.
3. Otherwise, include `./node_modules/ngMidwayTester/src/ngMidwayTester.js` into your test runner.

## Getting Started

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require('./src/ngMidwayTester');
module.exports = window.ngMidwayTester;
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-midway-tester",
"version": "2.0.5",
"version": "2.0.6",
"repository": {
"type": "git",
"url": "git@github.com:yearofmoo/ngMidwayTester.git"
Expand All @@ -16,18 +16,18 @@
"grunt-shell": "~0.5.0",
"grunt-open": "~0.2.2",
"karma-script-launcher": "~0.1.0",
"karma-chrome-launcher": "~0.1.0",
"karma-firefox-launcher": "~0.1.0",
"karma-chrome-launcher": "~0.2.0",
"karma-firefox-launcher": "~0.1.6",
"karma-html2js-preprocessor": "~0.1.0",
"karma-jasmine": "~0.1.3",
"karma-requirejs": "~0.1.0",
"karma-coffee-preprocessor": "~0.1.0",
"karma-phantomjs-launcher": "~0.1.0",
"karma": "~0.10.2",
"grunt-karma": "~0.6.2",
"karma-requirejs": "~0.2.2",
"karma-coffee-preprocessor": "~0.3.0",
"karma-phantomjs-launcher": "~0.2.0",
"karma": "~0.12.37",
"grunt-karma": "~0.11.2",
"mocha": "~1.13.0",
"karma-mocha": "~0.1.0",
"chai": "~1.8.1",
"karma-coverage": "~0.1.0"
"karma-coverage": "~0.4.2"
}
}
2 changes: 2 additions & 0 deletions src/ngMidwayTester.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,5 @@
}
};
};

window.ngMidwayTester = ngMidwayTester;