Skip to content

Commit ec5b076

Browse files
author
Cameron Cundiff
committed
Set up node module.
- Add testing dependencies and pending test - Setup gulpfile to run tests - Add Readme - Add hound and travis config
1 parent 33e2ceb commit ec5b076

File tree

8 files changed

+74
-0
lines changed

8 files changed

+74
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.hound.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
coffee_script:
2+
enabled: true
3+
4+
java_script:
5+
enabled: true

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language:
2+
- node_js
3+
node_js:
4+
- stable
5+
before_script:
6+
- npm install -g gulp
7+
script:
8+
- gulp
9+
notifications:
10+
email: false

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Accessibility Monitoring for Your Website
2+
3+
AccessLint Monitor will alert you of accessibility errors in your website.
4+
5+
## Usage
6+
7+
Install AccessLint Monitor by including the javascript in at the end of any page
8+
you want to monitor.
9+
10+
## How it works
11+
12+
AccessLint Monitor is similar to client side performance measurement tools like
13+
NewRelic or Google Analytics in the way it is included and run on your website.
14+
When a visitor arrives at a page that has the script installed, an audit will
15+
run in the background automatically. If there are any accessibility issues on
16+
that page, AccessLint Monitor track the error for review.

gulpfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require("coffee-script/register")
2+
3+
var gulp = require("gulp");
4+
var mocha = require("gulp-mocha");
5+
6+
gulp.task("default", function() {
7+
return gulp.src("test/test.coffee", { read: false })
8+
.pipe(mocha());
9+
});

index.coffee

Whitespace-only changes.

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "accesslint-monitor",
3+
"version": "0.0.1",
4+
"description": "Monitor your webpages for accessibility errors.",
5+
"main": "index.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/accesslint/monitor.git"
9+
},
10+
"keywords": [
11+
"accessibility",
12+
"testing",
13+
"a11y"
14+
],
15+
"author": "Cameron Cundiff",
16+
"license": "MIT",
17+
"bugs": {
18+
"url": "https://github.com/accesslint/monitor/issues"
19+
},
20+
"devDependencies": {
21+
"gulp": "~3.9.0",
22+
"gulp-mocha": "~2.1.3",
23+
"chai": "~3.2.0"
24+
},
25+
"dependencies": {
26+
"coffee-script": "~1.9.3"
27+
}
28+
}

test/test.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
expect = require("chai").expect
2+
3+
describe "true", ->
4+
it "is true", ->
5+
expect(true).to.equal true

0 commit comments

Comments
 (0)