Skip to content

Commit

Permalink
Get rid of some deps, improve htmls (#4)
Browse files Browse the repository at this point in the history
* improve html pages

* get rid of some deps, improve htmls

* add files

* improve tests
  • Loading branch information
denar90 authored Sep 25, 2016
1 parent 88703a9 commit b2085e2
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 697 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Change Log
All notable changes to this project will be documented in this file.

## [0.1.2] - 2016-09-25
### Changed

* Html pages

### Removed

* Dependencies: `bluebird`, `object-assign`

## [0.1.1] - 2016-09-20
### Added

Expand All @@ -9,4 +18,5 @@ All notable changes to this project will be documented in this file.
## 0.1.0 - 2016-09-18
* Initial release

[0.1.1]: https://github.com/denar90/psi-ngrok/compare/v0.1.0...v0.1.1
[0.1.1]: https://github.com/denar90/psi-ngrok/compare/v0.1.0...v0.1.1
[0.1.2]: https://github.com/denar90/psi-ngrok/compare/v0.1.1...v0.1.2
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
'use strict';
const Promise = require('bluebird');
const psi = require('psi');
const ngrok = require('ngrok');
const url = require('url');
const objectAssign = require('object-assign');

let config = {
strategies: ['mobile', 'desktop'],
Expand All @@ -16,7 +14,7 @@ let config = {
};

const psiNgrok = function() {
return Promise.bind(this)
return Promise.resolve()
.then(() => {
return Promise.resolve().then(config.onBeforeConnect);
})
Expand All @@ -40,7 +38,7 @@ const ngrokConnect = function() {

const runPSIWithStrategy = function() {
return Promise.all(config.strategies.map(strategy => {
return runPSI(objectAssign({strategy: strategy}, config.options));
return runPSI(Object.assign({strategy: strategy}, config.options));
}));
};

Expand All @@ -55,7 +53,7 @@ const runPSI = function(options) {
};

module.exports = function(params) {
objectAssign(config, params);
Object.assign(config, params);

return psiNgrok();
};
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"localhost"
],
"dependencies": {
"bluebird": "^3.4.6",
"ngrok": "^2.2.2",
"object-assign": "^4.1.0",
"psi": "^2.0.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion recipes/grunt/gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function(grunt) {
server: {
options: {
port: 8000,
base: 'recipes/grunt/public'
base: 'recipes/public'
}
}
},
Expand Down
8 changes: 0 additions & 8 deletions recipes/grunt/public/index.html

This file was deleted.

227 changes: 0 additions & 227 deletions recipes/grunt/public/slow.html

This file was deleted.

2 changes: 1 addition & 1 deletion recipes/gulp/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var port = 8000;

var connectServer = function() {
return connect.server({
root: 'public',
root: '../public',
port: port
});
};
Expand Down
8 changes: 0 additions & 8 deletions recipes/gulp/public/index.html

This file was deleted.

Loading

0 comments on commit b2085e2

Please sign in to comment.