diff --git a/.gitignore b/.gitignore index 829ac1931129..1715f06fb720 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,4 @@ api-docs **/*.tgz **/dist* **/package -packages/_sandbox .sandbox diff --git a/lerna.json b/lerna.json index 30b089495dbe..1660fde82f6f 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "lerna": "2.9.1", - "packages": ["packages/*", "examples/*", "docs"], + "packages": ["packages/*", "examples/*", "docs", "sandbox/*"], "command": { "publish": { "forcePublish": "@loopback/cli,@loopback/docs", diff --git a/packages/cli/test/acceptance/app-run.acceptance.js b/packages/cli/test/acceptance/app-run.acceptance.js index fa4041c950d8..5713da5cda16 100644 --- a/packages/cli/test/acceptance/app-run.acceptance.js +++ b/packages/cli/test/acceptance/app-run.acceptance.js @@ -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 = { diff --git a/sandbox/.gitignore b/sandbox/.gitignore new file mode 100644 index 000000000000..a27261b52804 --- /dev/null +++ b/sandbox/.gitignore @@ -0,0 +1,4 @@ +**/* +!README.md +!.gitignore + diff --git a/sandbox/README.md b/sandbox/README.md new file mode 100644 index 000000000000..9dceaef6a5f1 --- /dev/null +++ b/sandbox/README.md @@ -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.