-
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 #221 from mean-expert-official/development
(WIP) 2.1.0-rc.1
- Loading branch information
Showing
100 changed files
with
3,020 additions
and
5,005 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 |
---|---|---|
@@ -1,13 +1,43 @@ | ||
#### What type of pull request are you creating? | ||
- [ ] Bug Fix | ||
- [ ] Enhancement | ||
- [ ] Documentation | ||
|
||
#### How many unit test did you write for this pull request? | ||
# 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. | ||
|
||
Write a reason if none (e.g just fixed a typo): | ||
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 | ||
|
||
#### Please add a description for your pull request: | ||
## Adding Issues | ||
If you find any bug or enhancement, you are always welcome to create a [New Issue](https://github.com/mean-expert-official/loopback-sdk-builder/issues). | ||
|
||
## Pull Request | ||
If you would like to contribute by adding new features, enhancements or by fixing bugs; please consider that you need to create an issue prior your pull request. This is important for tracking purposes in CHANGELOG. | ||
|
||
**IMPORTANT: Make sure you create a branch from `development` and then create the pull request also to development and not to master.** | ||
|
||
Please send a [GitHub Pull Request](https://github.com/mean-expert-official/loopback-sdk-builder/pull/new/development) 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 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." | ||
|
||
Most of the times you will need to add a new test or we may not be able to integrate it. Though, there are some cases when you don't need to add a unit test, like fixing a typo, adding a missing type, etc. | ||
|
||
## 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 | ||
```` | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,12 @@ | ||
# How to contribute | ||
#### What type of pull request are you creating? | ||
- [ ] Bug Fix | ||
- [ ] Enhancement | ||
- [ ] Documentation | ||
|
||
I'm really glad you're reading this, volunteer developers to help this project are always welcome. | ||
#### How many unit test did you write for this pull request? | ||
|
||
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: | ||
Write a reason if none (e.g just fixed a typo): | ||
|
||
* [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 | ||
|
||
## Adding Issues | ||
If you find any bug or enhancement, you are always welcome to create a [New Issue](https://github.com/mean-expert-official/loopback-sdk-builder/issues). | ||
|
||
## Pull Request | ||
If you would like to contribute by adding new features, enhancements or by fixing bugs; please consider that you need to create an issue prior your pull request. This is important for tracking purposes in CHANGELOG. | ||
|
||
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 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." | ||
|
||
Most of the times you will need to add a new test or we may not be able to integrate it. Though, there are some cases when you don't need to add a unit test, like fixing a typo, adding a missing type, etc. | ||
|
||
## 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 | ||
```` | ||
|
||
Thanks, | ||
Jonathan Casarrubias, [MEAN Expert](http://mean.expert). | ||
#### Please add a description for your pull request: |
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 |
---|---|---|
|
@@ -22,16 +22,20 @@ var argv = optimist | |
.usage('\n******************************************* LoopBack SDK Builder 2.0 *******************************************\n' + | ||
'\nGenerate Client SDK for your LoopBack Application.' + | ||
'\nUsage:' + | ||
'\n ./node_modules/.bin/lb-sdk server/server app/shared/sdk -d [ng4web | nativescript2] -i [enabled | disabled]') | ||
'\n ./node_modules/.bin/lb-sdk server/server app/shared/sdk -d [ng2web | ng2native | ng2universal] -i [enabled | disabled] -v [enabled | strict | disabled]') | ||
.describe('l', 'Client\'s library (angular2, react <todo>, ...)') | ||
.describe('d', 'Platform specific drivers (ng4web, nativescript2, ng2universal <todo>)') | ||
.describe('d', 'Platform specific drivers (ng2web, ng2native, ng2universal)') | ||
.describe('i', 'Enable PubSub, IO and FireLoop functionality') | ||
.describe('w', 'Automatically wipe SDK Directory') | ||
.describe('v', 'Add default values in models') | ||
.describe('f', 'Generate only FireLoop SDK + Auth Services') | ||
.default('l', 'angular2') | ||
.default('d', 'ng4web') | ||
.default('d', 'ng2web') | ||
.default('i', 'enabled') | ||
.default('w', 'disabled') | ||
.alias({ u: 'url', m: 'module-name', l: 'library', i: 'io', d: 'driver', w: 'wipe' }) | ||
.default('v', 'disabled') | ||
.default('f', 'disabled') | ||
.alias({ u: 'url', m: 'module-name', l: 'library', i: 'io', d: 'driver', w: 'wipe', v: 'default-values', v: 'fireloop-only' }) | ||
.demand(1) | ||
.argv; | ||
/** | ||
|
@@ -56,6 +60,9 @@ console.log(chalk.green('* Sylvain Dumont <https://www.w | |
console.log(chalk.green('* Yonggang Luo <https://github.com/lygstate> *')); | ||
console.log(chalk.green('* Chris Tunbridge <https://github.com/Destreyf> *')); | ||
console.log(chalk.green('* Miguel Serrano <https://github.com/Serranom4> *')); | ||
console.log(chalk.green('* Julien Ledun <https://github.com/jledun> *')); | ||
console.log(chalk.green('* Paul Robinson <http://nextfaze.com> *')); | ||
console.log(chalk.green('* Corentin Hatte <https://github.com/viki53> *')); | ||
console.log(chalk.green('* *')); | ||
console.log(chalk.green('* ORIGINALLY FORKED FROM *')); | ||
console.log(chalk.green('* Miroslav Bajtos\' <[email protected]> *')); | ||
|
@@ -89,8 +96,10 @@ var context = { | |
apiUrl: argv['url'] || app.get('restApiRoot') || '/api', | ||
outputFolder: argv._[1], | ||
isIo: argv['i'] || 'disabled', | ||
driver: argv['d'] || 'ng4web', | ||
wipe: argv['w'] || 'disabled' | ||
driver: argv['d'] || 'ng2web', | ||
wipe: argv['w'] || 'disabled', | ||
defaultValue: argv['v'] || 'disabled', | ||
fireloopOnly: argv['f'] || 'disabled' | ||
}; | ||
|
||
function verifyPath() { | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.