0

I'm writing a script that will build my app. This script is outside of my app folder. I can't figure out how to build with @angular/cli from another folder.

Let say the structure is applications/my-app/.angular-cli.json. How can I build the app from applications/.? Is there a way to tell @angular/cli to look in the ./my-app folder while building with ng build?

2
  • What are you using to create the build script? Commented Oct 25, 2017 at 10:11
  • Take a look at nrwl/nx if you're interested in multiapp setup. Commented Oct 25, 2017 at 10:14

2 Answers 2

1

Actually not. It looks up from the working directory up to the first node_modules it finds.

See github

Sign up to request clarification or add additional context in comments.

Comments

0

If you are on Windows, you can temporary change the working directory in the script. Take a look a the pushd and popd commands.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.