Skip to content

Commit 9478d8b

Browse files
author
Kevin Delisle
committed
feat(example-getting-started): migrate into monorepo
The loopback4-example-getting-started repository is now being moved into the monorepo
1 parent dc8c16d commit 9478d8b

File tree

24 files changed

+1127
-3
lines changed

24 files changed

+1127
-3
lines changed

packages/cli/generators/example/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const utils = require('../../lib/utils');
1313

1414
const EXAMPLES = {
1515
codehub: 'A GitHub-like application we used to use to model LB4 API.',
16+
'getting-started':
17+
'An application and tutorial on how to build with LoopBack 4.',
1618
};
1719
Object.freeze(EXAMPLES);
1820

packages/cli/test/example.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ describe('lb4 example', function() {
3434

3535
it('lists all example names in help', () => {
3636
const helpText = getHelpText();
37-
expect(helpText).to.match(
38-
new RegExp(Object.keys(ALL_EXAMPLES).join('.*'))
39-
);
37+
for (const key of Object.keys(ALL_EXAMPLES)) {
38+
expect(helpText).to.match(new RegExp(`${key}: (.*?)`));
39+
}
4040
});
4141

4242
function getHelpText() {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) IBM Corp. 2017,2018. All Rights Reserved.
2+
Node module: @loopback/example-getting-started
3+
This project is licensed under the MIT License, full text below.
4+
5+
--------
6+
7+
MIT license
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the "Software"), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
14+
furnished to do so, subject to the following conditions:
15+
16+
The above copyright notice and this permission notice shall be included in
17+
all copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
THE SOFTWARE.

0 commit comments

Comments
 (0)