Skip to content

Commit 2c6acbe

Browse files
Added gh-pages (which just redirects to the Mocha test page for now)
1 parent 01e0f70 commit 2c6acbe

File tree

10 files changed

+36
-20
lines changed

10 files changed

+36
-20
lines changed

.codeclimate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ exclude_paths:
66
- "tests/*"
77
- "coverage/*"
88
- "karma.conf.js"
9+
- "www"

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
**/.DS_Store
77
npm-debug.log
88
/.idea
9-
/bower_components
109
/coverage
1110
/dist/*.test.js
1211
/node_modules

.jscsrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"excludeFiles": [
33
"coverage/**",
4+
"tests/**",
45
"dist/**",
6+
"www/**",
57
"node_modules/**"
68
],
79
"requireCurlyBraces": [

.jshintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/coverage
22
/dist
3+
/www
34
/node_modules
45
/tests

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
**/.DS_Store
44
npm-debug.log
55
/.idea
6-
/bower_components
76
/coverage
87
/dist/*.test.js
98
/tests
9+
/www
1010
/.*

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ node_js:
1010
- '0.12'
1111
branches:
1212
only:
13-
- /^v\d\.\d\.\d/ # only build version-tagged commits (rather than EVERY commit)
14-
- /^PR / # pull requests
13+
- /^v\d\.\d\.\d/ # only build tagged versions (rather than EVERY push)
14+
- /^PR / # also build pull requests
1515
before_script:
1616
- export DISPLAY=:99.0
1717
- sh -e /etc/init.d/xvfb start

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ono (Oh No!)
1313
[![Bower](http://img.shields.io/bower/v/ono.svg)](#bower)
1414
[![License](https://img.shields.io/npm/l/ono.svg)](LICENSE)
1515

16-
[![Browser Compatibility](https://saucelabs.com/browser-matrix/bigstickcarpet-ono.svg)](https://saucelabs.com/u/bigstickcarpet-ono)
16+
[![Browser Compatibility](https://saucelabs.com/browser-matrix/bigstickcarpet-ono.svg)](http://bigstickcarpet.github.io/ono)
1717

1818
Features
1919
--------------------------

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<html>
2+
<head>
3+
<meta http-equiv="refresh" content="0; url=tests">
4+
</head>
5+
<body>
6+
<script>
7+
window.location = 'tests';
8+
</script>
9+
</body>
10+
</html>

karma.conf.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
// https://karma-runner.github.io/0.12/config/configuration-file.html
55
module.exports = function(config) {
66
var baseConfig = {
7-
frameworks: ['mocha', 'chai', 'sinon'],
7+
frameworks: ['mocha'],
88
reporters: ['mocha'],
9-
109
files: [
11-
// ono
10+
// Third-Party Libraries
11+
'www/bower_components/chai/chai.js',
12+
'www/bower_components/sinon-js/sinon.js',
13+
'www/bower_components/useragent-parser/src/useragent-parser.js',
14+
15+
// Ono
1216
'dist/ono.min.js',
1317

14-
// Unit tests
15-
'tests/helper.js',
18+
// Unit Tests
19+
'tests/**/_*.js',
1620
'tests/**/*.spec.js'
1721
]
1822
};

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
"homepage": "https://github.com/bigstickcarpet/ono",
2121
"main": "lib/index.js",
2222
"scripts": {
23-
"build": "npm run lint && npm run browserify",
2423
"lint": "jshint . --verbose && jscs . --verbose",
24+
"build": "npm run lint && npm run browserify",
2525
"browserify": "simplifyify lib/index.js --outfile dist/ono.js --standalone ono --debug --minify",
26+
"watch": "npm run browserify -- --watch",
2627
"test": "istanbul cover _mocha -- --bail --recursive tests && npm run karma",
2728
"mocha": "mocha --bail --recursive tests",
2829
"karma": "karma start --single-run",
29-
"upgrade": "ncu --upgradeAll && npm update",
30+
"upgrade": "ncu --upgradeAll && npm update && bower update",
3031
"bump": "bump --prompt --tag --push --all",
3132
"release": "npm run upgrade && npm run build && npm test && npm run bump && npm publish"
3233
},
@@ -35,30 +36,28 @@
3536
"url": "https://github.com/bigstickcarpet/ono.git"
3637
},
3738
"devDependencies": {
38-
"simplifyify": "^1.1.1",
39+
"simplifyify": "^1.2.0",
40+
"bower": "^1.4.1",
3941
"karma": "^0.13.3",
40-
"karma-chai": "^0.1.0",
4142
"karma-chrome-launcher": "^0.2.0",
4243
"karma-cli": "0.1.0",
43-
"karma-coverage": "^0.4.2",
4444
"karma-firefox-launcher": "^0.1.6",
4545
"karma-ie-launcher": "^0.2.0",
4646
"karma-mocha": "^0.2.0",
47-
"karma-mocha-reporter": "^1.0.3",
47+
"karma-mocha-reporter": "^1.0.4",
4848
"karma-phantomjs-launcher": "^0.2.0",
4949
"karma-safari-launcher": "^0.1.1",
50-
"karma-sinon": "^1.0.4",
5150
"istanbul": "^0.3.17",
5251
"coveralls": "^2.11.3",
5352
"mocha": "^2.2.5",
5453
"chai": "^3.2.0",
5554
"sinon": "^1.15.4",
5655
"jscs": "^2.0.0",
5756
"jshint": "^2.8.0",
58-
"npm-check-updates": "^2.0.0",
57+
"npm-check-updates": "^2.0.1",
5958
"version-bump-prompt": "^1.4.2",
6059
"karma-sauce-launcher": "^0.2.14",
61-
"useragent-lite": "0.0.2"
60+
"karma-sinon": "^1.0.4"
6261
},
6362
"dependencies": {}
64-
}
63+
}

0 commit comments

Comments
 (0)