Skip to content

Commit

Permalink
split provider into it's own repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed Jun 1, 2016
1 parent 844d05c commit a99535b
Show file tree
Hide file tree
Showing 41 changed files with 1,611 additions and 1,936 deletions.
4 changes: 2 additions & 2 deletions .eslintignore 100644 → 100755
@@ -1,2 +1,2 @@
ui
coverage
ui
coverage
29 changes: 15 additions & 14 deletions .eslintrc.json 100644 → 100755
@@ -1,14 +1,15 @@
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"semi": [2, "always"],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"quotes": ["error", "single", { "avoidEscape": true } ],
"space-before-function-paren": ["error", "never"]
}
}
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"semi": [2, "always"],
"strict": ["error", "global"],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"quotes": ["error", "single", { "avoidEscape": true } ],
"space-before-function-paren": ["error", "never"]
}
}
36 changes: 18 additions & 18 deletions .gitignore 100644 → 100755
@@ -1,18 +1,18 @@
logs
*.log
npm-debug.log*
pids
*.pid
*.seed
*.rdb
*.DS_STORE
lib-cov
coverage
.nyc_output
.grunt
.lock-wscript
build/Release
node_modules
jspm_packages
.npm
.node_repl_history
logs
*.log
npm-debug.log*
pids
*.pid
*.seed
*.rdb
*.DS_STORE
lib-cov
coverage
.nyc_output
.grunt
.lock-wscript
build/Release
node_modules
jspm_packages
.npm
.node_repl_history
6 changes: 3 additions & 3 deletions .gitmodules 100644 → 100755
@@ -1,3 +1,3 @@
[submodule "ui"]
path = ui
url = https://github.com/MiniProfiler/ui.git
[submodule "ui"]
path = ui
url = https://github.com/MiniProfiler/ui.git
7 changes: 4 additions & 3 deletions .npmignore 100644 → 100755
@@ -1,4 +1,5 @@
coverage
tests
node_modules
coverage
tests
node_modules
examples
.travis.yml
41 changes: 18 additions & 23 deletions .travis.yml 100644 → 100755
@@ -1,23 +1,18 @@
language: node_js
node_js:
- "4"
- "5"
- "stable"

sudo: required

services:
- docker

before_script:
- npm run lint

after_script:
- npm run coverage
- npm run check-coverage
- npm run update-coveralls

notifications:
email:
on_success: never
on_failure: change
language: node_js
node_js:
- "4"
- "5"
- "stable"

before_script:
- npm run lint

after_script:
- npm run coverage
- npm run check-coverage
- npm run update-coveralls

notifications:
email:
on_success: never
on_failure: change
146 changes: 73 additions & 73 deletions README.md 100644 → 100755
@@ -1,73 +1,73 @@
##### `The project is still under development, the API will change! Use with caution. NPM package is currently outdated.`

# node-miniprofiler

Node.js implementation of Stack Exchange's MiniProfiler

[![NPM](https://img.shields.io/npm/v/miniprofiler.svg)](https://img.shields.io/npm/v/miniprofiler.svg)
[![Build](https://travis-ci.org/MiniProfiler/node.svg)](https://travis-ci.org/MiniProfiler/node)
[![Coverage](https://coveralls.io/repos/github/MiniProfiler/node/badge.svg?branch=master)](https://coveralls.io/github/MiniProfiler/node?branch=master)
![Dependencies](https://david-dm.org/MiniProfiler/node.svg)
![devDependencies](https://david-dm.org/MiniProfiler/node/dev-status.svg#info=devDependencies)

## Installation (via [npm](https://npmjs.org/package/miniprofiler))

```bash
$ npm install miniprofiler
```

## Usage

### Simple usage using express.js

`server.js`

```javascript
var express = require('express')
, miniprofiler = require('miniprofiler')
, app = express();

app.set('view engine', 'pug');
app.use(miniprofiler.profile());

app.get('/', function(req, res) {
req.miniprofiler.step('Step 1', function() {
req.miniprofiler.step('Step 2', function() {
res.render('home');
});
});
});

app.listen(8080);
```

`home.pug`

```javascript
doctype html
html
head
title MiniProfiler Node.js Example
body
h1 Home Page
| !{miniprofiler.include()}
```

When visiting `localhost:8080`, you should see this.

![](/examples/images/example0.png)

See [tests/servers/<your web framework>](/tests/servers) for more examples.

![](/examples/images/example1.png)
![](/examples/images/example2.png)

# Want to help?

Things to do:

- Refactor/Remove TODO comments
- transform test cases into runnable examples (npm run example)
- storing of client timings on first result postback (there's a todo in the `results` function about where to do this)
- document more things
- add providers for pg, mongodb, mysql, redis and more
##### `The project is still under development, the API will change! Use with caution. NPM package is currently outdated.`

# node-miniprofiler

Node.js implementation of Stack Exchange's MiniProfiler

[![NPM](https://img.shields.io/npm/v/miniprofiler.svg)](https://img.shields.io/npm/v/miniprofiler.svg)
[![Build](https://travis-ci.org/MiniProfiler/node.svg)](https://travis-ci.org/MiniProfiler/node)
[![Coverage](https://coveralls.io/repos/github/MiniProfiler/node/badge.svg?branch=master)](https://coveralls.io/github/MiniProfiler/node?branch=master)
![Dependencies](https://david-dm.org/MiniProfiler/node.svg)
![devDependencies](https://david-dm.org/MiniProfiler/node/dev-status.svg#info=devDependencies)

## Installation (via [npm](https://npmjs.org/package/miniprofiler))

```bash
$ npm install miniprofiler
```

## Usage

### Simple usage using express.js

`server.js`

```javascript
var express = require('express')
, miniprofiler = require('miniprofiler')
, app = express();

app.set('view engine', 'pug');
app.use(miniprofiler.profile());

app.get('/', function(req, res) {
req.miniprofiler.step('Step 1', function() {
req.miniprofiler.step('Step 2', function() {
res.render('home');
});
});
});

app.listen(8080);
```

`home.pug`

```javascript
doctype html
html
head
title MiniProfiler Node.js Example
body
h1 Home Page
| !{miniprofiler.include()}
```

When visiting `localhost:8080`, you should see this.

![](/examples/images/example0.png)

See [tests/servers/<your web framework>](/tests/servers) for more examples.

![](/examples/images/example1.png)
![](/examples/images/example2.png)

# Want to help?

Things to do:

- Refactor/Remove TODO comments
- transform test cases into runnable examples (npm run example)
- storing of client timings on first result postback (there's a todo in the `results` function about where to do this)
- document more things
- add providers for pg, mongodb, mysql, redis and more
Empty file modified examples/images/example0.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/images/example1.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/images/example2.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a99535b

Please sign in to comment.