Skip to content

Commit

Permalink
feat(example-getting-started): migrate into monorepo
Browse files Browse the repository at this point in the history
The loopback4-example-getting-started repository is now being moved into the monorepo
  • Loading branch information
Kevin Delisle committed Jan 19, 2018
1 parent dc8c16d commit 395a34e
Show file tree
Hide file tree
Showing 24 changed files with 1,127 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/cli/generators/example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const utils = require('../../lib/utils');

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

Expand Down
6 changes: 3 additions & 3 deletions packages/cli/test/example.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ describe('lb4 example', function() {

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

function getHelpText() {
Expand Down
1 change: 1 addition & 0 deletions packages/example-getting-started/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
25 changes: 25 additions & 0 deletions packages/example-getting-started/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright (c) IBM Corp. 2017,2018. All Rights Reserved.
Node module: @loopback/example-getting-started
This project is licensed under the MIT License, full text below.

--------

MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 395a34e

Please sign in to comment.