-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from mean-expert-official/development
Release 2.1.0-beta.11 🚀
- Loading branch information
Showing
24 changed files
with
227 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
language: node_js | ||
node_js: | ||
- "6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ console.log(chalk.green('* CONTRIBUTORS | |
console.log(chalk.green('* João Ribeiro <http://jonnybgod.ghost.io> *')); | ||
console.log(chalk.green('* Nikolay Matiushenkov <https://github.com/mnvx> *')); | ||
console.log(chalk.green('* Sylvain Dumont <https://www.weboaks.com> *')); | ||
console.log(chalk.green('* Yonggang Luo <https://github.com/lygstate> *')); | ||
console.log(chalk.green('* *')); | ||
console.log(chalk.green('* ORIGINALLY FORKED FROM *')); | ||
console.log(chalk.green('* Miroslav Bajtos\' <[email protected]> *')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ | ||
"name": "@mean-expert/loopback-sdk-builder", | ||
"version": "2.1.0-beta.10", | ||
"version": "2.1.0-beta.11", | ||
"description": "Tool for auto-generating Software Development Kits (SDKs) for LoopBack", | ||
"bin": { | ||
"lb-sdk": "bin/lb-sdk" | ||
}, | ||
"main": "index.js", | ||
"scripts": { | ||
"prepublish": "", | ||
"test": "npm run test:angular2", | ||
"pretest": "cd tests/angular2 && npm install", | ||
"test:angular2": "cd tests/angular2 && ng lint && npm run test" | ||
"test": "npm run load:api & npm run test:angular2", | ||
"pretest": "cd tests/angular2 && npm install && npm install ../../ && npm run build:sdk", | ||
"load:api": "cd tests/angular2 && NODE_ENV=testing node loopback/server", | ||
"test:angular2": "cd tests/angular2 && npm test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -44,6 +45,11 @@ | |
"name": "Sylvain Dumont", | ||
"email": "[email protected]", | ||
"url": "https://www.weboaks.com" | ||
}, | ||
{ | ||
"name": "Yonggang Luo", | ||
"email": "[email protected]", | ||
"url": "https://github.com/lygstate" | ||
} | ||
], | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# How to contribute | ||
|
||
I'm really glad you're reading this, volunteer developers to help this project are always welcome. | ||
|
||
If you haven't already, follow me ([@johncasarrubias](irc://chat.freenode.net/opengovernment) on twitter). I want you to keep informed about new features and tutorials. | ||
|
||
Here are some important resources: | ||
|
||
* [MEAN Expert Blog](http://mean.expert) tutorials about the MEAN Stack. | ||
* [WIKI](https://github.com/mean-expert-official/loopback-sdk-builder/wiki) official wiki documentation. | ||
* [Angular 2 Testing](https://angular.io/docs/ts/latest/guide/testing.html) official documentation for testing environment. | ||
* Bugs? [GitHub Issues](https://github.com/mean-expert-official/loopback-sdk-builder/issues) is where to report them | ||
|
||
## Testing | ||
|
||
Tests are being created and excecuted by using the Angular-CLI Tool, please refer to the official documentation. | ||
|
||
````sh | ||
$ cd to/loopback-sdk-builder | ||
$ npm test | ||
```` | ||
|
||
## Submitting changes | ||
|
||
Please send a [GitHub Pull Request](https://github.com/mean-expert-official/loopback-sdk-builder/pull/new/master) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)). When you send a pull request, we will love you forever if you include RSpec examples. We can always use more test coverage. Please follow our coding conventions (below) and make sure all of your commits are atomic (one feature per commit). | ||
|
||
Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this: | ||
|
||
$ git commit -m "A brief summary of the commit | ||
> | ||
> A paragraph describing what changed and its impact." | ||
|
||
Thanks, | ||
Jonathan Casarrubias, [MEAN Expert](http://mean.expert). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var net = require('net') | ||
|
||
module.exports = function(app) { | ||
if (process.NODE_ENV !== 'testing') return; | ||
var testing = false; | ||
var interval = setInterval(function () { | ||
isPortTaken(9876, function (err, taken) { | ||
if (!testing && taken) testing = true; | ||
if (testing && !taken) process.exit() | ||
}) | ||
}, 1000); | ||
}; | ||
|
||
var isPortTaken = function(port, fn) { | ||
var tester = net.createServer() | ||
.once('error', function (err) { | ||
if (err.code != 'EADDRINUSE') return fn(err) | ||
fn(null, true) | ||
}) | ||
.once('listening', function() { | ||
tester.once('close', function() { fn(null, false) }) | ||
.close() | ||
}) | ||
.listen(port) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.