Skip to content

Commit e8f2817

Browse files
Merge pull request #221 from mean-expert-official/development
(WIP) 2.1.0-rc.1
2 parents 9f7b483 + 828594f commit e8f2817

100 files changed

Lines changed: 3020 additions & 5005 deletions

File tree

Some content is hidden

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

.github/CONTRIBUTING.md

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,43 @@
1-
#### What type of pull request are you creating?
2-
- [ ] Bug Fix
3-
- [ ] Enhancement
4-
- [ ] Documentation
51

6-
#### How many unit test did you write for this pull request?
2+
# How to contribute
73

4+
I'm really glad you're reading this, volunteer developers to help this project are always welcome.
85

6+
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.
97

10-
Write a reason if none (e.g just fixed a typo):
8+
Here are some important resources:
119

10+
* [MEAN Expert Blog](http://mean.expert) tutorials about the MEAN Stack.
11+
* [WIKI](https://github.com/mean-expert-official/loopback-sdk-builder/wiki) official wiki documentation.
12+
* [Angular 2 Testing](https://angular.io/docs/ts/latest/guide/testing.html) official documentation for testing environment.
13+
* Bugs? [GitHub Issues](https://github.com/mean-expert-official/loopback-sdk-builder/issues) is where to report them
1214

13-
#### Please add a description for your pull request:
15+
## Adding Issues
16+
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).
17+
18+
## Pull Request
19+
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.
20+
21+
**IMPORTANT: Make sure you create a branch from `development` and then create the pull request also to development and not to master.**
22+
23+
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).
24+
25+
Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this:
26+
27+
$ git commit -m "A brief summary of the commit
28+
>
29+
> A paragraph describing what changed and its impact."
30+
31+
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.
32+
33+
## Testing
34+
35+
Tests are being created and excecuted by using the Angular-CLI Tool, please refer to the official documentation.
36+
37+
````sh
38+
$ cd to/loopback-sdk-builder
39+
$ npm test
40+
````
41+
42+
Thanks,
43+
Jonathan Casarrubias, [MEAN Expert](http://mean.expert).

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#### What version of this module are you using?
77
- [ ] 2.0.10 (Stable)
8-
- [ ] 2.1.0-beta.14
8+
- [ ] 2.1.0-rc.n (2.1 Release Candidate n)
99
- [ ] Other
1010

1111
Write other if any:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,12 @@
1-
# How to contribute
1+
#### What type of pull request are you creating?
2+
- [ ] Bug Fix
3+
- [ ] Enhancement
4+
- [ ] Documentation
25

3-
I'm really glad you're reading this, volunteer developers to help this project are always welcome.
6+
#### How many unit test did you write for this pull request?
47

5-
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.
68

7-
Here are some important resources:
9+
Write a reason if none (e.g just fixed a typo):
810

9-
* [MEAN Expert Blog](http://mean.expert) tutorials about the MEAN Stack.
10-
* [WIKI](https://github.com/mean-expert-official/loopback-sdk-builder/wiki) official wiki documentation.
11-
* [Angular 2 Testing](https://angular.io/docs/ts/latest/guide/testing.html) official documentation for testing environment.
12-
* Bugs? [GitHub Issues](https://github.com/mean-expert-official/loopback-sdk-builder/issues) is where to report them
1311

14-
## Adding Issues
15-
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).
16-
17-
## Pull Request
18-
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.
19-
20-
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).
21-
22-
Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this:
23-
24-
$ git commit -m "A brief summary of the commit
25-
>
26-
> A paragraph describing what changed and its impact."
27-
28-
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.
29-
30-
## Testing
31-
32-
Tests are being created and excecuted by using the Angular-CLI Tool, please refer to the official documentation.
33-
34-
````sh
35-
$ cd to/loopback-sdk-builder
36-
$ npm test
37-
````
38-
39-
Thanks,
40-
Jonathan Casarrubias, [MEAN Expert](http://mean.expert).
12+
#### Please add a description for your pull request:

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
This file is created to keep history of the LoopBack SDK Builder, it does not consider or keeps any history of its parent module `loopback-sdk-angular`.
44

5+
## Release 2.1.0-rc1
6+
7+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/232
8+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/231
9+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/228
10+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/201
11+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/223
12+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/220
13+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/31
14+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/199
15+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/210
16+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/209
17+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/208
18+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/207
19+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/206
20+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/36
21+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/205
22+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/204
23+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/203
24+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/202
25+
526
## Release 2.1.0-beta.17
627

728
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/190

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![npm version](https://badge.fury.io/js/%40mean-expert%2Floopback-sdk-builder.svg)](https://badge.fury.io/js/%40mean-expert%2Floopback-sdk-builder) [![Build Status](https://travis-ci.org/mean-expert-official/loopback-sdk-builder.svg?branch=development)](https://travis-ci.org/mean-expert-official/loopback-sdk-builder) [![dependencies](https://david-dm.org/mean-expert-official/loopback-sdk-builder.png)](https://david-dm.org/mean-expert-official/loopback-sdk-builder) [![Known Vulnerabilities](https://snyk.io/test/npm/@mean-expert/loopback-sdk-builder/badge.svg)](https://snyk.io/test/npm/@mean-expert/loopback-sdk-builder)
1+
[![npm version](https://badge.fury.io/js/%40mean-expert%2Floopback-sdk-builder.svg)](https://badge.fury.io/js/%40mean-expert%2Floopback-sdk-builder) [![Build Status](https://travis-ci.org/mean-expert-official/loopback-sdk-builder.svg?branch=development)](https://travis-ci.org/mean-expert-official/loopback-sdk-builder) [![dependencies](https://david-dm.org/mean-expert-official/loopback-sdk-builder.png)](https://david-dm.org/mean-expert-official/loopback-sdk-builder)
22

33
![LoopBack SDK Builder](https://storage.googleapis.com/mean-expert-images/sdk-builder.jpg)
44

bin/lb-sdk

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,20 @@ var argv = optimist
2222
.usage('\n******************************************* LoopBack SDK Builder 2.0 *******************************************\n' +
2323
'\nGenerate Client SDK for your LoopBack Application.' +
2424
'\nUsage:' +
25-
'\n ./node_modules/.bin/lb-sdk server/server app/shared/sdk -d [ng4web | nativescript2] -i [enabled | disabled]')
25+
'\n ./node_modules/.bin/lb-sdk server/server app/shared/sdk -d [ng2web | ng2native | ng2universal] -i [enabled | disabled] -v [enabled | strict | disabled]')
2626
.describe('l', 'Client\'s library (angular2, react <todo>, ...)')
27-
.describe('d', 'Platform specific drivers (ng4web, nativescript2, ng2universal <todo>)')
27+
.describe('d', 'Platform specific drivers (ng2web, ng2native, ng2universal)')
2828
.describe('i', 'Enable PubSub, IO and FireLoop functionality')
2929
.describe('w', 'Automatically wipe SDK Directory')
30+
.describe('v', 'Add default values in models')
31+
.describe('f', 'Generate only FireLoop SDK + Auth Services')
3032
.default('l', 'angular2')
31-
.default('d', 'ng4web')
33+
.default('d', 'ng2web')
3234
.default('i', 'enabled')
3335
.default('w', 'disabled')
34-
.alias({ u: 'url', m: 'module-name', l: 'library', i: 'io', d: 'driver', w: 'wipe' })
36+
.default('v', 'disabled')
37+
.default('f', 'disabled')
38+
.alias({ u: 'url', m: 'module-name', l: 'library', i: 'io', d: 'driver', w: 'wipe', v: 'default-values', v: 'fireloop-only' })
3539
.demand(1)
3640
.argv;
3741
/**
@@ -56,6 +60,9 @@ console.log(chalk.green('* Sylvain Dumont <https://www.w
5660
console.log(chalk.green('* Yonggang Luo <https://github.com/lygstate> *'));
5761
console.log(chalk.green('* Chris Tunbridge <https://github.com/Destreyf> *'));
5862
console.log(chalk.green('* Miguel Serrano <https://github.com/Serranom4> *'));
63+
console.log(chalk.green('* Julien Ledun <https://github.com/jledun> *'));
64+
console.log(chalk.green('* Paul Robinson <http://nextfaze.com> *'));
65+
console.log(chalk.green('* Corentin Hatte <https://github.com/viki53> *'));
5966
console.log(chalk.green('* *'));
6067
console.log(chalk.green('* ORIGINALLY FORKED FROM *'));
6168
console.log(chalk.green('* Miroslav Bajtos\' <miroslav@strongloop.com> *'));
@@ -89,8 +96,10 @@ var context = {
8996
apiUrl: argv['url'] || app.get('restApiRoot') || '/api',
9097
outputFolder: argv._[1],
9198
isIo: argv['i'] || 'disabled',
92-
driver: argv['d'] || 'ng4web',
93-
wipe: argv['w'] || 'disabled'
99+
driver: argv['d'] || 'ng2web',
100+
wipe: argv['w'] || 'disabled',
101+
defaultValue: argv['v'] || 'disabled',
102+
fireloopOnly: argv['f'] || 'disabled'
94103
};
95104

96105
function verifyPath() {

lib/angular2/drivers/nativescript2/socket.driver.ejs

Lines changed: 0 additions & 9 deletions
This file was deleted.

lib/angular2/drivers/ng4web/storage.driver.ejs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)