Skip to content

Commit a99535b

Browse files
committed
split provider into it's own repositories
1 parent 844d05c commit a99535b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1611
-1936
lines changed

.eslintignore

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ui
2-
coverage
1+
ui
2+
coverage

.eslintrc.json

100644100755
Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
{
2-
"extends": "eslint:recommended",
3-
"env": {
4-
"node": true,
5-
"es6": true,
6-
"mocha": true
7-
},
8-
"rules": {
9-
"semi": [2, "always"],
10-
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
11-
"quotes": ["error", "single", { "avoidEscape": true } ],
12-
"space-before-function-paren": ["error", "never"]
13-
}
14-
}
1+
{
2+
"extends": "eslint:recommended",
3+
"env": {
4+
"node": true,
5+
"es6": true,
6+
"mocha": true
7+
},
8+
"rules": {
9+
"semi": [2, "always"],
10+
"strict": ["error", "global"],
11+
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
12+
"quotes": ["error", "single", { "avoidEscape": true } ],
13+
"space-before-function-paren": ["error", "never"]
14+
}
15+
}

.gitignore

100644100755
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
logs
2-
*.log
3-
npm-debug.log*
4-
pids
5-
*.pid
6-
*.seed
7-
*.rdb
8-
*.DS_STORE
9-
lib-cov
10-
coverage
11-
.nyc_output
12-
.grunt
13-
.lock-wscript
14-
build/Release
15-
node_modules
16-
jspm_packages
17-
.npm
18-
.node_repl_history
1+
logs
2+
*.log
3+
npm-debug.log*
4+
pids
5+
*.pid
6+
*.seed
7+
*.rdb
8+
*.DS_STORE
9+
lib-cov
10+
coverage
11+
.nyc_output
12+
.grunt
13+
.lock-wscript
14+
build/Release
15+
node_modules
16+
jspm_packages
17+
.npm
18+
.node_repl_history

.gitmodules

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "ui"]
2-
path = ui
3-
url = https://github.com/MiniProfiler/ui.git
1+
[submodule "ui"]
2+
path = ui
3+
url = https://github.com/MiniProfiler/ui.git

.npmignore

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
coverage
2-
tests
3-
node_modules
1+
coverage
2+
tests
3+
node_modules
4+
examples
45
.travis.yml

.travis.yml

100644100755
Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
language: node_js
2-
node_js:
3-
- "4"
4-
- "5"
5-
- "stable"
6-
7-
sudo: required
8-
9-
services:
10-
- docker
11-
12-
before_script:
13-
- npm run lint
14-
15-
after_script:
16-
- npm run coverage
17-
- npm run check-coverage
18-
- npm run update-coveralls
19-
20-
notifications:
21-
email:
22-
on_success: never
23-
on_failure: change
1+
language: node_js
2+
node_js:
3+
- "4"
4+
- "5"
5+
- "stable"
6+
7+
before_script:
8+
- npm run lint
9+
10+
after_script:
11+
- npm run coverage
12+
- npm run check-coverage
13+
- npm run update-coveralls
14+
15+
notifications:
16+
email:
17+
on_success: never
18+
on_failure: change

README.md

100644100755
Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
1-
##### `The project is still under development, the API will change! Use with caution. NPM package is currently outdated.`
2-
3-
# node-miniprofiler
4-
5-
Node.js implementation of Stack Exchange's MiniProfiler
6-
7-
[![NPM](https://img.shields.io/npm/v/miniprofiler.svg)](https://img.shields.io/npm/v/miniprofiler.svg)
8-
[![Build](https://travis-ci.org/MiniProfiler/node.svg)](https://travis-ci.org/MiniProfiler/node)
9-
[![Coverage](https://coveralls.io/repos/github/MiniProfiler/node/badge.svg?branch=master)](https://coveralls.io/github/MiniProfiler/node?branch=master)
10-
![Dependencies](https://david-dm.org/MiniProfiler/node.svg)
11-
![devDependencies](https://david-dm.org/MiniProfiler/node/dev-status.svg#info=devDependencies)
12-
13-
## Installation (via [npm](https://npmjs.org/package/miniprofiler))
14-
15-
```bash
16-
$ npm install miniprofiler
17-
```
18-
19-
## Usage
20-
21-
### Simple usage using express.js
22-
23-
`server.js`
24-
25-
```javascript
26-
var express = require('express')
27-
, miniprofiler = require('miniprofiler')
28-
, app = express();
29-
30-
app.set('view engine', 'pug');
31-
app.use(miniprofiler.profile());
32-
33-
app.get('/', function(req, res) {
34-
req.miniprofiler.step('Step 1', function() {
35-
req.miniprofiler.step('Step 2', function() {
36-
res.render('home');
37-
});
38-
});
39-
});
40-
41-
app.listen(8080);
42-
```
43-
44-
`home.pug`
45-
46-
```javascript
47-
doctype html
48-
html
49-
head
50-
title MiniProfiler Node.js Example
51-
body
52-
h1 Home Page
53-
| !{miniprofiler.include()}
54-
```
55-
56-
When visiting `localhost:8080`, you should see this.
57-
58-
![](/examples/images/example0.png)
59-
60-
See [tests/servers/<your web framework>](/tests/servers) for more examples.
61-
62-
![](/examples/images/example1.png)
63-
![](/examples/images/example2.png)
64-
65-
# Want to help?
66-
67-
Things to do:
68-
69-
- Refactor/Remove TODO comments
70-
- transform test cases into runnable examples (npm run example)
71-
- storing of client timings on first result postback (there's a todo in the `results` function about where to do this)
72-
- document more things
73-
- add providers for pg, mongodb, mysql, redis and more
1+
##### `The project is still under development, the API will change! Use with caution. NPM package is currently outdated.`
2+
3+
# node-miniprofiler
4+
5+
Node.js implementation of Stack Exchange's MiniProfiler
6+
7+
[![NPM](https://img.shields.io/npm/v/miniprofiler.svg)](https://img.shields.io/npm/v/miniprofiler.svg)
8+
[![Build](https://travis-ci.org/MiniProfiler/node.svg)](https://travis-ci.org/MiniProfiler/node)
9+
[![Coverage](https://coveralls.io/repos/github/MiniProfiler/node/badge.svg?branch=master)](https://coveralls.io/github/MiniProfiler/node?branch=master)
10+
![Dependencies](https://david-dm.org/MiniProfiler/node.svg)
11+
![devDependencies](https://david-dm.org/MiniProfiler/node/dev-status.svg#info=devDependencies)
12+
13+
## Installation (via [npm](https://npmjs.org/package/miniprofiler))
14+
15+
```bash
16+
$ npm install miniprofiler
17+
```
18+
19+
## Usage
20+
21+
### Simple usage using express.js
22+
23+
`server.js`
24+
25+
```javascript
26+
var express = require('express')
27+
, miniprofiler = require('miniprofiler')
28+
, app = express();
29+
30+
app.set('view engine', 'pug');
31+
app.use(miniprofiler.profile());
32+
33+
app.get('/', function(req, res) {
34+
req.miniprofiler.step('Step 1', function() {
35+
req.miniprofiler.step('Step 2', function() {
36+
res.render('home');
37+
});
38+
});
39+
});
40+
41+
app.listen(8080);
42+
```
43+
44+
`home.pug`
45+
46+
```javascript
47+
doctype html
48+
html
49+
head
50+
title MiniProfiler Node.js Example
51+
body
52+
h1 Home Page
53+
| !{miniprofiler.include()}
54+
```
55+
56+
When visiting `localhost:8080`, you should see this.
57+
58+
![](/examples/images/example0.png)
59+
60+
See [tests/servers/<your web framework>](/tests/servers) for more examples.
61+
62+
![](/examples/images/example1.png)
63+
![](/examples/images/example2.png)
64+
65+
# Want to help?
66+
67+
Things to do:
68+
69+
- Refactor/Remove TODO comments
70+
- transform test cases into runnable examples (npm run example)
71+
- storing of client timings on first result postback (there's a todo in the `results` function about where to do this)
72+
- document more things
73+
- add providers for pg, mongodb, mysql, redis and more

examples/images/example0.png

100644100755
File mode changed.

examples/images/example1.png

100644100755
File mode changed.

examples/images/example2.png

100644100755
File mode changed.

0 commit comments

Comments
 (0)