Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ api-docs
**/*.tgz
**/dist*
**/package
packages/_sandbox
.sandbox
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.9.1",
"packages": ["packages/*", "examples/*", "docs"],
"packages": ["packages/*", "examples/*", "docs", "sandbox/*"],
"command": {
"publish": {
"forcePublish": "@loopback/cli,@loopback/docs",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/acceptance/app-run.acceptance.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const build = require('@loopback/build');
describe('app-generator (SLOW)', function() {
const generator = path.join(__dirname, '../../generators/app');
const rootDir = path.join(__dirname, '../../../..');
const sandbox = path.join(__dirname, '../../../_sandbox');
const sandbox = path.join(__dirname, '../../sandbox/sandbox-app');
const cwd = process.cwd();
const appName = '@loopback/sandbox-app';
const props = {
Expand Down
4 changes: 4 additions & 0 deletions sandbox/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we do this at the top level?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to keep it isolated to the sandbox directory. But no strong objections to move it to top.

!README.md
!.gitignore

27 changes: 27 additions & 0 deletions sandbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# sandbox

This directory can be used to add applications or modules that need to be tested
against the LoopBack 4 source code (as symbolically linked dependencies). Sub
directories with `package.json` will be picked up by `lerna` as a package of the
`loopback-next` monorepo.

## Usage

To add a new package for sandbox testing:

```sh
git clone git@github.com:strongloop/loopback-next.git
cd loopback-next/sandbox
```

Now you can scaffold your Node.js modules or copy existing projects into the
`sandbox` directory.

To link the `@loopback/*` dependencies against the source code:

```sh
cd loopback/next
npm run bootstrap
```

Your project is ready against the LoopBack 4 source code now.