From 806f67112eaf9bcc756a7dd7e6b57225ad5309b2 Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 18 Oct 2017 20:24:58 -0500 Subject: [PATCH] chore(docs): Add step to exclude lab from other CLI apps Closes #27 --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8426ed..cdfe784 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,26 @@ createLab({ } ``` -6. Run the CLI with your lab app. +6. Update your `tsconfig.app.json` to exclude your lab files. + +```json +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/app", + "baseUrl": "./", + "module": "es2015", + "types": [] + }, + "exclude": [ + "lab.ts", + "test.ts", + "**/*.spec.ts" + ] +} +``` + +7. Run the CLI with your lab app. ```bash npm start -- --app component-lab --port 8080